• No results found

HCDA EN LAB-content.pdf

N/A
N/A
Protected

Academic year: 2021

Share "HCDA EN LAB-content.pdf"

Copied!
284
0
0

Loading.... (view fulltext now)

Full text

(1)i.. we. hu a. g.. rn in. ea. :/ /l. ht tp. :. 取. 料 获. 资. 多. co m/. cn.

(2) cn co m/ we. hu a. HCDA-HNTD. i.. Huawei Certification. 更. 多. 资. 料 获. 取. :. ht tp. :/ /l. ea. rn in. Lab Guide. g.. Huawei Networking Technology and Device. Huawei Technologies Co.,Ltd.

(3) cn co m/. )UV_XOMNZj.[G]KO:KINTURUMOKY)U2ZJ'RRXOMNZYXKYKX\KJ. i.. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd.. we. :XGJKSGXQYGTJ6KXSOYYOUTY. hu a. and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document the property of their respective holders.. g.. 4UZOIK. :/ /l. ea. rn in. The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute the warranty of any kind, express or implied.. .[G]KO)KXZOLOIGZOUT. 更. 多. 资. 料 获. . 取. :. ht tp. .)*'.4:*.[G]KO4KZ]UXQOTM:KINTURUM_GTJ*K\OIK 2GH-[OJK . +JOZOUT\ .

(4) cn co m/. Huawei Certification System. i.. Relaying on its strong technical and professional training system, according to different customers at different levels of ICT technology, Huawei certification is committed to provide customs with authentic, professional certification.. hu a. we. Based on characteristics of ICT technologies and customers’needs at different levels, Huawei certification provides customers with certification system of four levels.. rn in. g.. HCDA (Huawei Certification Datacom Associate) is primary for IP network maintenance engineers, and any others who want to learn the IP network knowledge. HCDA certification covers the TCP/IP basics, routing, switching and other common foundational knowledge of IP networks, together with Huawei communications products, versatile routing platform VRP characteristics and basic maintenance.. :/ /l. ea. HCDP (Huawei Certification Datacom Professional-Enterprise) is aimed at enterprise-class network maintenance engineers, network design engineers, and any others who want to in depth grasp routing, switching, network adjustment and optimization technologies. HCDP-Enterprise is consist of IESN (Implementing Enterprise Switch Networks), IERN (Implementing Enterprise Routing Networks), and IENP (Improving Enterprise Network performance), which includes advanced IPv4 routing and switching technology principle, IP technology of network security, high availability and Qos, as well as the implementation in Huawei products.. 更. 多. 资. 料 获. 取. :. ht tp. HCIE (Huawei Certified Internetwork Expert) is designed to endue engineers with a variety of IP network technology and proficiency in maintenance, diagnostics and troubleshooting of Huawei products, which equips the engineers with competence in planning, design and optimization of large-scale IP network..

(5) i.. we. hu a. g.. rn in. ea. :/ /l. ht tp. :. 取. 料 获. 资. 多. 更. co m/. cn.

(6) cn co m/. Referenced icon. 29]OZIN. 29]OZIN. ,OXK]GRR. 4KZIRU[J. 9KXOGRROTK. 更. 多. 资. 料 获. 取. :. ht tp. :/ /l. ea. +ZNKXTKZROTK . rn in. g.. 8U[ZKX. hu a. we. i.. . .

(7) cn co m/. Lab environment specification. i.. :NK2GHKT\OXUTSKTZOYY[MMKYZKJHKRU] . *K\OIK. 59\KXYOUT. 8. '8. <KXYOUT<8)96). 8. '8. <KXYOUT<8)96). 8. '8. <KXYOUT<8)96). 9. 9)+/9. 9. 9)+/9. 9. 9:6+/'). <KXYOUT<8)96). 9. 9:6+/'). <KXYOUT<8)96). ,=. ;9-. <KXYOUT<8)96). g.. rn in. <KXYOUT<8)96). ea. <KXYOUT<8)96). :/ /l. ht tp : 取. 料 获 资 多. hu a. /JKTZOLOKX. . 更. we. .

(8) CONTENTS. i.. Chapter 1 Basic Operations on the VRP Platform ............................................................................................... 1. we. Lab 1-1 Basic Operations on the VRP Platform ............................................................................................... 1. hu a. Chapter 2 Configuring Static Routes and Default Routes .................................................................................. 23 Lab 2-1 Configuring Static Routes and Default Routes .................................................................................. 23. g.. Chapter 3 RIP Configuration ............................................................................................................................. 41 Lab 3-1 Configuring RIPv1 and RIPv2 ............................................................................................................ 41. rn in. Lab 3-2 RIPv2 Route Aggregation and Authentication .................................................................................. 58 Chapter 4 OSPF Configuration .......................................................................................................................... 74. ea. Lab 4-1 OSPF Single-area Configuration ....................................................................................................... 74 Lab 4-2 OSPF Multi-area and Authentication Configuration ......................................................................... 89. :/ /l. Chapter 5 RIP and OSPF Route Import ............................................................................................................ 103 Lab 5-1 RIP and OSPF Route Import ........................................................................................................... 103. ht tp. Chapter 6 Ethernet and STP ........................................................................................................................... 114 Lab 6-1 Ethernet Interface and Link Configuration ..................................................................................... 114 Lab 6-2 STP Configuration .......................................................................................................................... 121. :. Lab 6-3 VLAN Configuration ....................................................................................................................... 134 Chapter 7 Layer3 Configuration and VRRP...................................................................................................... 145. 取. Lab 7-1 Configuring Layer 3 Switching ........................................................................................................ 145. 料 获. Lab 7-2 Configuring the VRRP .................................................................................................................... 159 Chapter 8 WAN Configuration ........................................................................................................................ 174. 更. 多. 资. Lab 8-1 HDLC and PPP Configuration.......................................................................................................... 174 Lab 8-2 FR Configuration (Back to Back) ..................................................................................................... 190. HC Series. cn. co m/. HCDA-HNTD Content. HUAWEI TECHNOLOGIES. Page1.

(9) cn co m/. HCDA-HNTD CONTENTS. Lab 8-3 FR Configuration (Using FR Switch) ................................................................................................ 211 Chapter 9 Firewall Configuration.................................................................................................................... 228. i.. Lab 9-1 USG Firewall Configuration............................................................................................................ 228. we. Lab 9-2 USG Firewall Zone Configuration ................................................................................................... 241 Lab 9-3 NAT Configuration on the USG Firewall ......................................................................................... 257. hu a. Chapter 10 Comprehensive Exercise............................................................................................................... 270. 更. 多. 资. 料 获. 取. :. ht tp. :/ /l. ea. rn in. g.. Lab 10-1 Comprehensive Exercise .............................................................................................................. 270. Page2. HUAWEI TECHNOLOGIES. HC Series.

(10) we. Learning Objectives. i.. Chapter 1 Basic Operations on the VRP Platform Lab 1-1 Basic Operations on the VRP Platform. x. ea. rn in. g.. Configure the connection from a personal computer (PC) to a router using the Windows built-in terminal software. Configure a device name, time, and time zone. Configure the value for Console port idle timeout. Configure the login information. Configure the login password and super password. Save and delete a configuration file. Configure IP addresses for router interfaces. Test the connectivity between two routers that are connected directly. Control a router after using Telnet to another router. Copy configuration files from one router to another using File Transfer Protocol (FTP). Restart a router.. :/ /l. x x x x x x x x x. hu a. The objectives of this lab are to learn and understand how to perform the following operations: x. 取. :. ht tp. Topology. 料 获. Figure 1.1 Lab topology of the basic operations on the VRP platform. 更. 多. 资. Scenario A company purchases two AR G3 routers. You need to commission the two. HC Series. HUAWEI TECHNOLOGIES. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. Page1.

(11) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. AR G3 routers before using them. Items to be commissioned include configuration modes, device names, time, passwords, file management, and restart operations.. we. i.. Tasks. hu a. Step 1 Connect devices.. This step describes how to connect to a router using the Windows XP built-in HyperTerminal.. :. ht tp. :/ /l. ea. rn in. g.. Connect a PC to a router using a console cable. Run a terminal emulation program such as Windows XP HyperTerminal on the PC to create a as shown in Figure 3.1. The name and icon provided in the figure are only examples.Creating a connection.. 更. 多. 资. 料 获. 取. Select a COM port.Selecting a COM port.. Page2. HUAWEI TECHNOLOGIES. HC Series.

(12) rn in. g.. hu a. we. i.. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. 料 获. 取. :. ht tp. :/ /l. ea. If the PC has multiple COM ports, select a proper one. The serial port of a PC is usually COM1.Setting port communication parameters.. 更. 多. 资. In the COM1 Properties dialog box, click Restore Defaults to retain the default settings. Click OK. HC Series. HUAWEI TECHNOLOGIES. Page3.

(13) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. i.. Turn on the power switch to start the router. If the preceding parameters are set properly, the terminal window displays the startup information until the startup process is complete, and the system asks you to press Enter. If the command prompt, such as <Huawei>, is displayed on the user interface, you have successfully entered the user view configuration environment.. we. Step 2 View the system information.. hu a. Run the display version command to view the software version and hardware information for the system. <Huawei>display version. g.. Huawei Versatile Routing Platform Software. VRP (R) software, Version 5.90 (AR2200 V200R001C01SPC300) Copyright (C) 2011 HUAWEI TECH CO., LTD. rn in. Huawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 2 minutes BKP 0 version information: ......output omit....... ea. The command output includes the VRP operating system version, device model, and startup time.. :/ /l. Step 3 Change the system time parameter. The system automatically saves the time. If the time is incorrect, run the clock datetime command in the user view to change the system time.. ht tp. <Huawei>clock datetime 12:00:00 2011-09-15. Run the display clock command to check that the new system time has taken effect.. :. <Huawei>display clock 2011-09-15 12:00:21 Thursday. 取. Time Zone(Default Zone Name) : UTC+00:00. 料 获. Step 4 Use the question mark (?) or press Tab to enter. 更. 多. 资. commands.. The question mark (?) is a wildcard, and the Tab is used as a shortcut to. Page4. HUAWEI TECHNOLOGIES. HC Series.

(14) enter commands. <Huawei>display ? aaa. AAA User access. accounting-scheme acl. Accounting scheme. i.. access-user. <Group> acl command group Ipv4 information. adp-mpls. Adp-mpls module. anti-attack. Specify anti-attack configurations <Group> arp command group. arp-limit. hu a. we. adp-ipv4. arp. Display the number of limitation. atm. ATM status and configuration information Authentication scheme. authorization-scheme. Display AAA authorization scheme. g.. authentication-scheme. rn in. ......output omit....... ht tp. :/ /l. ea. If you want to display all the commands that start with a specific letter or string of letters, enter the desired letters and the question mark (?). The system displays all the commands that start with the letters you enter. For example, if you enter dis?, the system displays all the commands that start with dis. Make sure that there is a space between the string and the question mark (?). The system identifies the command corresponding to the string and displays the parameters of the command. For example, if you enter dis ? and only the display command starts with dis, the system displays the parameters of the display command. If multiple commands start with dis, the system displays an error. You can also press Tab to complete a command. For example, if you enter dis and press Tab, the system completes the display command. If multiple commands start with dis, you can select the appropriate one.. :. If there are no other commands start with the same letters, you can type dis or disp to indicate display, and int or inter to indicate interface.. 取. Step 5 Access the system view.. 料 获. Run the system-view command to access the system view where you configure interfaces and protocols.. <Huawei>system-view Enter system view, return user view with Ctrl+Z.. 更. 多. 资. [Huawei]. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. HUAWEI TECHNOLOGIES. Page5.

(15) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. Step 6 Change device names.. i.. To more easily identify devices, set device names during the device configuration. Change device names based on the lab topology, as shown below:. we. Change the name of the R1 router to R1. [Huawei]sysname R1. hu a. [R1]. Change the name of the R2 router to R2.. g.. [Huawei]sysname R2. rn in. [R2]. Step 7 Configure the login information.. Configure the login information to indicate the login result.. ea. [R1]header shell information "Welcome to Huawei certification lab". :/ /l. Run the preceding command to configure the login information. To check whether the login information has been changed, quit out of the router command line interface, and log back in to view the login information. [R1]quit. ht tp. <R1>quit. Configuration console exit, please press any key to log on Welcome to Huawei certification lab. :. <R1>. 取. Note: Login information usually provides warnings of illegal logins. Do not use words that are welcoming.. 料 获. Step 8 Configure the login authentication mode and timeout interval of the console port.. 更. 多. 资. The console port by default does not have a login password. Therefore, users can log in to the device without passwords.. Page6. HUAWEI TECHNOLOGIES. HC Series.

(16) cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. This presents a serious risk to the device. You need to change the login mode of the console port to the password authentication mode. The password in the password authentication mode is huawei in plain text.. we. i.. If there is no activity on the console port for the period of time specified by the timeout interval, the system automatically exits. When this occurs, you need to log in to the system again using the password.. hu a. The default timeout interval is 10 minutes. If 10 minutes are not a reasonable amount of time for the timeout interval, change the timeout interval to 20 minutes. [R1]user-interface console 0 [R1-ui-console0]authentication-mode password. g.. [R1-ui-console0]set authentication password simple huawei. rn in. [R1-ui-console0]idle-timeout 20 0. Run the display this command to check the configuration results. [R1-ui-console0]display this [V200R001C01SPC300]. ea. # user-interface con 0 authentication-mode password. idle-timeout 20 0. :/ /l. set authentication password simple huawei. ht tp. Log out of the system and log back in to verify that you need to enter the password. [R1-ui-console0]return <R1>quit. :. Configuration console exit, please press any key to log on Welcome to Huawei certification lab. 取. <R1>. 料 获. Step 9 Configure IP addresses and descriptions for the interfaces.. 更. 多. 资. Configure an IP address for the S1/0/0 interface of R1. The IP address can use the subnet mask length or use a complete subnet mask, such as 24 or 255.255.255.0. HC Series. HUAWEI TECHNOLOGIES. Page7.

(17) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform [R1]interface Serial 1/0/0 [R1-Serial1/0/0]ip address 10.0.12.1 24 [R1-Serial1/0/0]description This interface connects to R2-S1/0/0. i.. Run the display this command to check the configuration results. [R1-Serial1/0/0]display this. we. [V200R001C01SPC300] #. hu a. interface Serial1/0/0 link-protocol ppp description This interface connect to R2-S1/0/0 ip address 10.0.12.1 255.255.255.0. g.. #. rn in. Return. Run the display interface command to view the interface description. [R1-Serial1/0/0]display interface Serial2/0/0 Serial1/0/0 current state : UP Line protocol current state : UP. ea. Last line protocol up time : 2011-09-15 17:38:48 Description:This interface connect to R2-S1/0/0. :/ /l. Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 10.0.12.1/24 Link layer protocol is PPP LCP opened, IPCP stopped Last physical up time. : 2011-09-16 17:38:45. ht tp. Last physical down time : 2011-09-16 17:38:34 Current system time: 2011-09-16 17:42:58 Physical layer is synchronous, Baudrate is 64000 bps Interface is DCE, Cable type is V35, Clock mode is DCECLK Last 300 seconds input rate 2 bytes/sec 16 bits/sec 0 packets/sec. :. Last 300 seconds output rate 2 bytes/sec 16 bits/sec 0 packets/sec Input: 212 packets, 2944 bytes. 取. broadcasts:. 0, multicasts: 0, runts:. CRC:. 0, align errors:. 料 获. errors:. dribbles: frame errors:. 0, aborts:. 0 0, giants:. 0. 0, overruns:. 0. 0, no buffers:. 0. 0, collisions:. 0. 0. 资. Output: 216 packets, 2700 bytes errors:. 0, underruns:. deferred:. 0. 更. 多. DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP. Page8. HUAWEI TECHNOLOGIES. HC Series.

(18) Input bandwidth utilization : 0.13% Output bandwidth utilization : 0.13%. i.. [R1-Serial1/0/0]. we. The command output shows that the physical status and protocol status of the interface are UP, and the corresponding physical layer and data link layer are functional.. hu a. The interface link cables are V.35 DCE.. Once you have verified the status, configure the IP address and description for the interface of R2.. g.. [R2]interface Serial 1/0/0. [R2-Serial1/0/0]ip address 10.0.12.2 255.255.255.0. rn in. [R2-Serial1/0/0]description This interface connect to R1-S1/0/0 [R2-Serial1/0/0]. ea. After completing the configuration, run the ping command to test the connection between R1 and R2. [R1]ping 10.0.12.2. PING 10.0.12.2: 56 data bytes, press CTRL_C to break. :/ /l. Reply from 10.0.12.2: bytes=56 Sequence=1 ttl=255 time=35 ms Reply from 10.0.12.2: bytes=56 Sequence=2 ttl=255 time=32 ms Reply from 10.0.12.2: bytes=56 Sequence=3 ttl=255 time=32 ms Reply from 10.0.12.2: bytes=56 Sequence=4 ttl=255 time=32 ms Reply from 10.0.12.2: bytes=56 Sequence=5 ttl=255 time=32 ms. ht tp. --- 10.0.12.2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. :. round-trip min/avg/max = 32/32/35 ms. Configure the telnet login mode.. 取. Step 10. 料 获. Set the telnet login mode of R1 to password authentication mode, password to huawei, and user privilege level to 3.. [R1]user-interface vty 0 4 [R1-ui-vty0-4]authentication-mode password [R1-ui-vty0-4]set authentication password simple huawei. 更. 多. 资. [R1-ui-vty0-4]user privilege level 3. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. HUAWEI TECHNOLOGIES. Page9.

(19) cn. Run the display this command to check the configuration results. [R1-ui-vty0-4]display this [V200R001C01SPC300]. i.. #. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. user-interface con 0. we. authentication-mode password set authentication password simple huawei. hu a. idle-timeout 20 0 user-interface vty 0 4 user privilege level 3 set authentication password simple huawei. g.. user-interface vty 16 20 #. rn in. Return. Set the telnet login mode of R2 to user name and password authentication mode. [R2]user-interface vty 0 4. ea. [R2-ui-vty0-4]authentication-mode aaa. :/ /l. [R2-ui-vty0-4]quit. Note: You can run the quit command to return to the previous view or the return command to return to the user view. [R2]aaa. ht tp. [R2-aaa]local-user huawei password simple huawei [R2-aaa]local-user huawei privilege level 15 [R2-aaa]local-user huawei service-type telnet. Run the display this command to check the configuration results.. :. [R2-aaa]display this. # aaa. 取. [V200R001C01SPC300]. 料 获. authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin. 更. 多. 资. local-user admin password simple admin. Page10. HUAWEI TECHNOLOGIES. HC Series.

(20) local-user admin service-type http local-user huawei password simple huawei local-user huawei privilege level 15 local-user huawei service-type telnet. i.. # Return. we. Telnet to R2 from R1.. hu a. <R1>telnet 10.0.12.2 Press CTRL_] to quit telnet mode Trying 10.0.12.2 .... g.. Connected to 10.0.12.2 .... rn in. Login authentication. Username:huawei Password:. ----------------------------------------------------------------------------. ea. User last login information:. IP-Address : 10.0.12.1 Time. :/ /l. ---------------------------------------------------------------------------Access Type: Telnet. : 2011-09-14 13:19:59+00:00. ht tp. ---------------------------------------------------------------------------<R2>. Based on the output above, the login is successful.. :. Telnet to R1 from R2. <R2>telnet 10.0.12.1. Press CTRL_] to quit telnet mode. 取. Trying 10.0.12.1 .... 料 获. Connected to 10.0.12.1 .... Login authentication. Password:. Welcome to Huawei certification lab. 更. 多. 资. <R1>. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. HUAWEI TECHNOLOGIES. Page11.

(21) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. Step 11. Configure a super password for the device.. i.. Based on the output above, the login is successful.. hu a. we. When there are low user rights, for example, the value of user privilege level is 0 or 1 for the telnet login, you can use the super command to increase the user rights. To minimize risks caused by illegal right elevations, set super passwords.. g.. Set a super password for R1. The super password is stored in simple (plain text) mode.. rn in. [R1]super password simple Huawei. Run the display current-configuration command to check the configuration results. [R1]display current-configuration. ea. ......output omit...... #. :/ /l. super password level 3 simple huawei user-interface con 0. authentication-mode password ......output omit....... ht tp. As shown in the command output, the super password is stored in plain text, which is relatively unsecure and unsafe. Set a super password for R2. The super password is stored in cipher (cipher text) mode.. :. [R2]super password cipher huawei [R2]display current-configuration. #. 取. ......output omit....... super password level 3 cipher Q;L]@C0S3[%;LEEP8+INFQ!!. 料 获. user-interface con 0 authentication-mode password. ......output omit....... 更. 多. 资. As shown in the command output, the super password is stored in cipher text, which is more secure and safe. Page12. HUAWEI TECHNOLOGIES. HC Series.

(22) Step 12. View the file list stored on the current device.. i.. Run the dir command in the user view to display the list of files in the current directory.. we. <R1>dir. Idx Attr. Size(Byte) Date. hu a. Directory of sd1:/. Time(LMT) FileName. 1,738,816 Sep 14 2011 11:50:24. 1 -rw-. 68,288,896 Jul 12 2011 14:17:58. web.zip. ar2220_V200R001C01SPC300.cc. g.. 0 -rw-. rn in. 1,927,476 KB total (1,856,548 KB free). <R2>dir Directory of sd1:/. Idx Attr. Size(Byte) Date. Time(LMT) FileName. 1,738,816 Sep 14 2011 11:50:58. 1 -rw-. 68,288,896 Jul 12 2011 14:19:02. web.zip. ar2220_V200R001C01SPC300.cc. :/ /l. ea. 0 -rw-. 1,927,476 KB total (1,855,076 KB free). Step 13. Upload and download files between R1 and R2 using. ht tp. FTP.. :. Routers are considered as FTP clients by default. In this lab, R1 is considered as an FTP client, and R2 is considered as an FTP server. Enable the FTP server function on R2.. 取. [R2]ftp server enable Info: Succeeded in starting the FTP server. 料 获. [R2]set default ftp-directory sd1:/. Create a local account Āftpuserā as the FTP login account on R2.. [R2]aaa. [R2-aaa]local-user ftpuser password cipher huawei. 资. [R2-aaa]local-user ftpuser service-type ftp. 更. 多. [R2-aaa]local-user ftpuser privilege level 15. HC Series. HUAWEI TECHNOLOGIES. Page13. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform.

(23) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. Log in to R2 from R1 using FTP. <R1>ftp 10.0.12.2 Trying 10.0.12.2 .... i.. Press CTRL+K to abort Connected to 10.0.12.2.. we. 220 FTP service ready. User(10.0.12.2:(none)):ftpuser. hu a. 331 Password required for ftpuser. Enter password: 230 User logged in.. g.. [R1-ftp]. rn in. If the [R1-ftp] prompt is displayed, you have successfully logged in to the R2 FTP server. Transfer a file from R1 to the R2 FTP server using FTP. [R1-ftp]put hq-r.cfg file-from-R1.bak. ea. 200 Port command okay.. 150 Opening ASCII mode data connection for file-from-R1.bak.. :/ /l. 226 Transfer complete.. FTP: 0 byte(s) sent in 0.627 second(s) 0.00byte(s)/sec. [R1-ftp]. ht tp. Note: The source file names on the lab device may be different. You need to use the actual file name. Run the dir command in the R1 user view to check the file names in the file list. Run the dir command to view the result of the transfer. [R1-ftp]dir. :. 200 Port command okay.. 150 Opening ASCII mode data connection for *. 1 noone. 取. -rwxrwxrwx -rwxrwxrwx. 1 noone. nogroup. 1738816 Sep 14 11:50 web.zip. nogroup 68288896 Jul 12 14:19. ar2220_V200R001C01SPC300.cc. 料 获. -rwxrwxrwx. 1 noone. nogroup. 0 Sep 14 14:10 file-from-r1.bak. 226 Transfer complete. FTP: 551 byte(s) received in 0.619 second(s) 890.14byte(s)/sec.. 更. 多. 资. The command output lists files on the R2 FTP server.. Page14. HUAWEI TECHNOLOGIES. HC Series.

(24) Download the file-from-r1.bak file from the R2 FTP server to R1 and change the file name to file-from-r2.bak. [R1-ftp]get file-from-r1.bak file-from-r2.bak 200 Port command okay.. hu a. FTP: 0 byte(s) received in 0.591 second(s) 0.00byte(s)/sec.. we. 226 Transfer complete.. i.. 150 Opening ASCII mode data connection for file-from-r1.bak.. Exit from the R2 FTP server and check the file list on R1. Make sure that the file-from-r2.bak file has been downloaded successfully.. g.. [R1-ftp]quit 221 Server closing. <R1>dir. Idx Attr. rn in. Directory of sd1:/. Size(Byte) Date. Time(LMT) FileName. 0 -rw-. 1,738,816 Sep 16 2011 18:44:54. 1 -rw-. 68,288,896 Jul 12 2011 14:17:58 0 Sep 16 2011 19:13:00. ea. 2 -rw-. web.zip. ar2220_V200R001C01SPC300.cc. file-from-r2.bak. :/ /l. 1,927,476 KB total (1,856,548 KB free) <R1>. Delete the files on the devices.. ht tp. x Warning: Delete only the two lab files file-from-r1.bak and file-from-r2.bak. Do not delete other files; otherwise, the devices may fail to boot.. :. Delete the file-from-r1.bak file from R2. <R2>dir. 取. Directory of sd1:/. Idx Attr. Size(Byte) Date. Time(LMT) FileName. 1,738,816 Sep 14 2011 11:50:58. 1 -rw-. 68,288,896 Jul 12 2011 14:19:02. 料 获. 0 -rw-. 2 -rw-. 0 Sep 14 2011 14:10:08. web.zip ar2220_V200R001C01SPC300.cc file-from-r1.bak. 1,927,476 KB total (1,855,076 KB free) <R2>delete /unreserved file-from-r1.bak. 更. 多. 资. Warning: The contents of file sd1:/file-from-r1.bak cannot be recycled. Continue?. HC Series. HUAWEI TECHNOLOGIES. Page15. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform.

(25) cn. (y/n)[n]:y Info: Deleting file sd1:/file-from-r1.bak...succeed.. <R2>dir Directory of sd1:/. Size(Byte) Date. Time(LMT) FileName. 0 -rw-. 1,738,816 Sep 14 2011 11:50:58. 1 -rw-. 68,288,896 Jul 12 2011 14:19:02. web.zip. ar2220_V200R001C01SPC300.cc. g.. 1,927,476 KB total (1,855,076 KB free). hu a. Idx Attr. we. i.. The /unreserved parameter indicates that the file is to be deleted permanently and cannot be restored. Use this parameter with caution.. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. Delete the file-from-r2.bak file from R1. <R1>delete /unreserved file-from-r2.bak. rn in. Compare the file list with the preceding file list and make sure that the file-from-r1.bak file has been deleted.. ea. Warning: The contents of file sd1:/file-from-r2.bak cannot be recycled. Continue? (y/n)[n]:y. <R1>dir Directory of sd1:/. Idx Attr. :/ /l. Info: Deleting file sd1:/file-from-r2.bak...succeed.. Size(Byte) Date. Time(LMT) FileName. 1,738,816 Sep 16 2011 18:44:54. 1 -rw-. 68,288,896 Jul 12 2011 14:17:58. ht tp. 0 -rw-. web.zip ar2220_V200R001C01SPC300.cc. 1,927,476 KB total (1,856,548 KB free). Manage configuration files of a device.. 取. Step 14. :. <R1>. 料 获. Save the current configuration file. <R1>save. The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y. It will take several minutes to save configuration file, please wait............. 更. 多. 资. Configuration file had been saved successfully Note: The configuration file will take effect after being activated. Page16. HUAWEI TECHNOLOGIES. HC Series.

(26) Run the following command to view the saved configuration information: <R1>display saved-configuration. # sysname R1. we. header shell information "Welcome to Huawei certification lab". i.. [V200R001C01SPC300]. #. hu a. board add 0/1 1SA board add 0/2 1SA. g.. ĂĂoutput omitĂĂ. Run the following command to view the current configuration information:. rn in. <R1>display current-configuration [V200R001C01SPC300] # sysname R1. header shell information "Welcome to Huawei certification lab". ea. # board add 0/1 1SA. ĂĂoutput omitĂĂ. :/ /l. board add 0/2 1SA board add 0/3 2FE. ht tp. A router can store multiple configuration files. You can select the configuration file to be used after the next startup of the router as required. <R1>startup saved-configuration iascfg.zip This operation will take several minutes, please wait......... Info: Succeeded in setting the file for booting system. :. <R1>. 取. Run the following command to select the configuration file to be used after the next startup:. 料 获. <R1>display startup MainBoard: Startup system software:. sd1:/ar2220_V200R001C01SPC300.cc. Next startup system software:. sd1:/ar2220_V200R001C01SPC300.cc. 更. 多. 资. Backup system software for next startup:. Startup saved-configuration file:. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. null null. HUAWEI TECHNOLOGIES. Page17.

(27) Next startup saved-configuration file: Startup license file:. cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform sd1:/iascfg.zip null. Next startup license file:. null. Startup patch package:. null null. Startup voice-files:. i.. Next startup patch package:. null null. we. Next startup voice-files:. hu a. Delete configuration files from the flash memory. <R1>reset saved-configuration. This will delete the configuration in the flash memory.. The device configurations will be erased to reconfigure.. g.. Are you sure? (y/n)[n]:y. Clear the configuration in the device successfully.. Step 15. rn in. <R1>. Restart a router.. ea. Run the reboot command to restart a router. <R1>reboot. :/ /l. Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n. System will reboot! Continue ? [y/n]:y. ht tp. Info: system is rebooting ,please wait.... :. The system asks whether you want to save the current configuration. Determine whether to save the current configuration based on the requirements for the lab. If you are unsure whether you should save the current confirmation, do not save it.. 取. Additional Exercises: Analyzing and Verifying. 料 获. 1. You can use USB cables to connect to the USB ports of AR G3 routers to perform configuration management. For more information, see the related product guide.. 更. 多. 资. 2. Currently, most laptops do not have COM ports. How do we configure routers without laptop COM ports? List all the methods you have in mind.. Page18. HUAWEI TECHNOLOGIES. HC Series.

(28) Final Configurations [R1]display current-configuration. i.. [V200R001C01SPC300] # sysname R1. we. tftp client-source -i Serial2/0/0. header shell information "Welcome to Huawei certification lab". hu a. # voice # http server enable. g.. # drop illegal-mac alarm. rn in. # l2tp aging 0 # aaa authentication-scheme default. ea. authorization-scheme default accounting-scheme default. domain default_admin. :/ /l. domain default. local-user admin password simple admin local-user admin service-type http #. ht tp. interface Ethernet3/0/0 #. interface Ethernet3/0/1 #. interface Serial1/0/0. :. link-protocol ppp. description This interface connect to R2-S2/0/0. 取. ip address 10.0.12.1 255.255.255.0 #. interface Serial2/0/0. 料 获. link-protocol ppp. #. interface GigabitEthernet0/0/0 #. interface GigabitEthernet0/0/1. 更. 多. 资. #. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. HUAWEI TECHNOLOGIES. Page19.

(29) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform interface GigabitEthernet0/0/2 # interface Cellular0/0/0 link-protocol ppp. i.. # interface Cellular0/0/1. we. link-protocol ppp # interface NULL0. hu a. # super password level 3 simple huawei user-interface con 0. set authentication password simple huawei idle-timeout 10 0. rn in. user-interface vty 0 4. g.. authentication-mode password. user privilege level 3. user-interface vty 16 20 # return. [V200R001C01SPC300] # sysname R2 ftp server enable. :/ /l. [R2]display current-configuration. ea. set authentication password simple huawei. ht tp. set default ftp-directory sd1:/ #. board add 0/1 1SA. board add 0/2 1SA board add 0/3 2FE. :. # voice. 取. #. http server enable. 料 获. #. drop illegal-mac alarm. #. l2tp aging 0. #. 资. dhcp enable. 更. 多. #. Page20. HUAWEI TECHNOLOGIES. HC Series.

(30) aaa authentication-scheme default authorization-scheme default accounting-scheme default. domain default_admin local-user admin password simple admin local-user admin service-type http local-user ftpuser password cipher N`C55QK<`=/Q=^Q`MAF4<1!!. hu a. local-user ftpuser privilege level 15 local-user ftpuser service-type ftp local-user huawei password simple huawei. #. # interface Ethernet3/0/1 # interface Serial1/0/0 link-protocol ppp. ea. rn in. interface Ethernet3/0/0. g.. local-user huawei privilege level 15 local-user huawei service-type telnet ftp. we. i.. domain default. description This interface connect to R1-S2/0/0. interface Serial2/0/0 link-protocol ppp #. :/ /l. ip address 10.0.12.2 255.255.255.0 #. ht tp. interface GigabitEthernet0/0/0 #. interface GigabitEthernet0/0/1 #. interface GigabitEthernet0/0/2. :. #. interface Cellular0/0/0. 取. link-protocol ppp #. 料 获. interface Cellular0/0/1 link-protocol ppp. #. interface NULL0 #. 资. super password level 3 cipher Q;L]@C0S3[%;LEEP8+INFQ!!. 更. 多. user-interface con 0. HC Series. cn. co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform. HUAWEI TECHNOLOGIES. Page21.

(31) cn co m/. HCDA-HNTD Chapter 1 Basic Operations on the VRP Platform user-interface vty 0 4 authentication-mode aaa user-interface vty 16 20 #. 更. 多. 资. 料 获. 取. :. ht tp. :/ /l. ea. rn in. g.. hu a. we. i.. return. Page22. HUAWEI TECHNOLOGIES. HC Series.

(32) Chapter 2 Configuring Static Routes and Default. we. Lab 2-1 Configuring Static Routes and Default Routes. i.. Routes. hu a. Learning Objectives. The objectives of this lab are to learn and understand:. x x. 更. 多. g.. rn in. 资. 料 获. 取. :. ht tp. x. ea. x x. Advantages of static routes and default routes over dynamic routes Routing functions and operation processes Procedure for configuring a static route with the next hop as an interface Procedure for configuring a static route with the next hop as an IP address Method of testing connectivity of a static route Method of implementing interconnection between the distal network and external network by configuring a default route Procedure for testing a default route Procedure for configuring a backup static route on a router with redundant links Method of testing a backup static route. :/ /l. x x x x. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page23.

(33) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. :/ /l. ea. rn in. g.. hu a. we. i.. Topology. ht tp. Figure 2.1 Lab topology of static routes and default routes. Scenario. 取. :. Assume that you are a network administrator of a company with a headquarters (HQ) and two branches. R1 is the router in the HQ, and the HQ has a network segment. R2 and R3 are the routers in the two branches. R1 is connected to R2 and R3 through the Ethernet and serial cables. R2 and R3 are connected through serial cables.. 更. 多. 资. 料 获. Because the network scale is small, static routes and default routes are used to implement interworking. For the IP addressing information, see Figure 2.1.. Page24. HUAWEI TECHNOLOGIES. HC Series.

(34) Tasks. Perform basic configurations and configure IP. i.. Step 16. we. addresses.. Configure the device names and IP addresses for R1, R2, and R3.. hu a. <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1. g.. [R1]interface Serial 1/0/0 [R1-Serial1/0/0]ip address 10.0.12.1 24. [R1-Serial1/0/0]quit [R1]interface GigabitEthernet 0/0/0. rn in. [R1-Serial1/0/0]description this port connect to R2-S1/0/0. [R1-GigabitEthernet0/0/0]ip address 10.0.13.1 24. [R1-GigabitEthernet0/0/0]description this port connect to R3-G0/0/0 [R1-GigabitEthernet0/0/0]interface loopback 0. :/ /l. ea. [R1-LoopBack0]ip address 10.0.1.1 24. Run the display current-configuration command to check the configurations. [R1-LoopBack0]display current-configuration ......output omit....... ht tp. #. interface GigabitEthernet 0/0/0. description this port connect to R3-G0/0/0 ip address 10.0.13.1 255.255.255.0. :. #. interface Ethernet3/0/1 #. 取. interface Serial1/0/0 link-protocol ppp. 料 获. description this port connect to R2-S1/0/0 ip address 10.0.12.1 255.255.255.0. #. ......output omit...... interface LoopBack0. 资. ip address 10.0.1.1 255.255.255.0. 多. #. 更. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HC Series. HUAWEI TECHNOLOGIES. Page25.

(35) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes ......output omit....... <Huawei>system-view Enter system view, return user view with Ctrl+Z.. [R2]interface serial 1/0/0 [R2-Serial1/0/0]ip address 10.0.12.2 24 [R2-Serial1/0/0]description this port connect to R1-S1/0/0 [R2-Serial1/0/0]interface serial 2/0/0. hu a. [R2-Serial2/0/0]ip address 10.0.23.2 24. we. i.. [Huawei]sysname R2. [R2-Serial2/0/0]description this port connect to R3-S2/0/0 [R2-Serial2/0/0]interface loopback0. [R2-LoopBack0]display current-configuration ......output omit....... rn in. interface Serial1/0/0. g.. [R2-LoopBack0]ip address 10.0.2.2 24. link-protocol ppp. description this port connect to R1-S1/0/0 ip address 10.0.12.2 255.255.255.0 #. ea. interface Serial2/0/0 link-protocol ppp. :/ /l. description this port connect to R3-S2/0/0 ip address 10.0.23.2 255.255.255.0 # ......output omit...... #. ht tp. interface LoopBack0. ip address 10.0.2.2 255.255.255.0. <Huawei>system-view. Enter system view, return user view with Ctrl+Z.. :. [Huawei]sysname R3. [R3]interface Serial 2/0/0. 取. [R3-Serial2/0/0]ip address 10.0.23.3 24 [R3-Serial2/0/0]description this port connect to R2-S2/0/0. 料 获. [R3-Serial2/0/0]quit [R3]interface GigabitEthernet 0/0/0 [R3-GigabitEthernet0/0/0]ip address 10.0.13.3 24 [R3-GigabitEthernet0/0/0]description this port connect to R1-G0/0/0 [R3-GigabitEthernet0/0/0]interface loopback 0. 资. [R3-LoopBack0]ip address 10.0.3.3 24. 更. 多. [R3-LoopBack0]display current-configuration. Page26. HUAWEI TECHNOLOGIES. HC Series.

(36) ......output omit...... # interface Serial2/0/0 link-protocol ppp. i.. description this port connect to R2-S2/0/0 ip address 10.0.23.3 255.255.255.0. we. # interface GigabitEthernet0/0/0 description this port connect to R1-G0/0/0. hu a. ip address 10.0.13.3 255.255.255.0 # ......output omit....... g.. interface LoopBack0 ip address 10.0.3.3 255.255.255.0 #. rn in. ......output omit....... Run the ping command to test network connectivity. <R1>ping 10.0.12.2. ea. PING 10.0.12.2: 56 data bytes, press CTRL_C to break. Reply from 10.0.12.2: bytes=56 Sequence=1 ttl=255 time=30 ms Reply from 10.0.12.2: bytes=56 Sequence=2 ttl=255 time=30 ms. :/ /l. Reply from 10.0.12.2: bytes=56 Sequence=3 ttl=255 time=30 ms Reply from 10.0.12.2: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 10.0.12.2: bytes=56 Sequence=5 ttl=255 time=30 ms. ht tp. --- 10.0.12.2 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. :. round-trip min/avg/max = 30/30/30 ms. <R1>ping 10.0.13.3. PING 10.0.13.2: 56 data bytes, press CTRL_C to break. 取. Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=6 ms Reply from 10.0.13.3: bytes=56 Sequence=2 ttl=255 time=2 ms. 料 获. Reply from 10.0.13.3: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 10.0.13.3: bytes=56 Sequence=4 ttl=255 time=2 ms Reply from 10.0.13.3: bytes=56 Sequence=5 ttl=255 time=2 ms. 更. 多. 资. --- 10.0.13.3 ping statistics --5 packet(s) transmitted. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page27.

(37) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/6 ms. PING 10.0.23.3: 56 data bytes, press CTRL_C to break. we. Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=255 time=31 ms. i.. <R2>ping 10.0.23.3. Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=255 time=31 ms Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=255 time=41 ms. hu a. Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=255 time=31 ms Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=255 time=41 ms. g.. --- 10.0.23.3 ping statistics --5 packet(s) transmitted. 0.00% packet loss round-trip min/avg/max = 31/35/41 ms. Test connectivity from R2 to 10.0.13.0/24 and. ea. Step 17. rn in. 5 packet(s) received. [R2]ping 10.0.13.3. :/ /l. 10.0.3.0/24.. PING 10.0.13.3: 56 data bytes, press CTRL_C to break Request time out Request time out. ht tp. Request time out Request time out Request time out. :. --- 10.0.13.3 ping statistics --5 packet(s) transmitted 0 packet(s) received. 取. 100.00% packet loss. 料 获. [R2]ping 10.0.3.3 PING 10.0.3.3: 56 data bytes, press CTRL_C to break Request time out Request time out. 更. 多. 资. Request time out Request time out. Page28. HUAWEI TECHNOLOGIES. HC Series.

(38) Request time out. --- 10.0.3.3 ping statistics --5 packet(s) transmitted. i.. 0 packet(s) received 100.00% packet loss. hu a. we. Note: If R2 needs to communicate with the network segment 10.0.3.0, the routes destined for this network segment must be configured on R2, and the routes destined for the R2 interface must be configured on R3.. g.. The preceding test result shows that R2 cannot communicate with 10.0.3.3 and 10.0.13.3.. rn in. Run the display ip routing-table command to view the routing table of R2. The routing table does not contain the routes of the two networks. [R2]display ip routing-table. Route Flags: R - relay, D - download to fib. ---------------------------------------------------------------------------Routing Tables: Public. Proto. Pre Cost. Flags NextHop. :/ /l. Destination/Mask. Routes : 15. ea. Destinations : 15. Interface. 10.0.2.0/24 Direct 0. 0. D. 10.0.2.2. LoopBack0. 10.0.2.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.0/24 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. ht tp. 10.0.2.255/32 Direct 0. 0. D. 10.0.12.1. Serial1/0/0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.23.0/24 Direct 0. 0. D. 10.0.23.2. Serial2/0/0. 10.0.23.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0 Serial2/0/0. :. 10.0.12.1/32 Direct 0 10.0.12.2/32 Direct 0. 0. D. 10.0.23.3. 0. D. 127.0.0.1. InLoopBack0. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. 取. 10.0.23.3/32 Direct 0 10.0.23.255/32 Direct 0 127.0.0.0/8. 127.0.0.1. InLoopBack0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 更. 多. 资. 料 获. D. 127.255.255.255/32 Direct 0. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page29.

(39) Step 18. cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. Configure static routes on R2.. we. i.. Configure a static route for destination networks 10.0.13.0/24 and 10.0.3.0/24, with the next hop as R3 interface's IP address 10.0.23.3 , preference of 60 is the default and not needed to be set. Also in the example the preference is not set. <R2>system-view. hu a. Enter system view, return user view with Ctrl+Z. [R2]ip route-static 10.0.13.0 24 10.0.23.3 [R2]ip route-static 10.0.3.0 24 10.0.23.3. g.. Note: In the ip route-static command, 24 indicates the subnet mask length, which can also be expressed in 255.255.255.0.. Configure backup static routes.. rn in. Step 19. ea. The data exchanged between R2 and 10.0.13.3 and 10.0.3.3 is transmitted through the link between R2 and R3. R2 fails to communicate with 10.0.13.3 and 10.0.3.3 if the link between R2 and R3 is faulty.. :/ /l. According to the topology, R2 can communicate with R3 through R1 after the link between R2 and R3 is faulty. You can configure a backup static route to solve the preceding problem. Backup static routes do not take effect in normal cases. If the link between R2 and R3 is faulty, backup static routes are used to transfer data.. ht tp. You must configure preferences for backup static routes to ensure that the backup static routes are used only when the primary link is faulty. In this example, the preference of the backup static route is set to 80.. :. [R1]ip route-static 10.0.3.0 24 10.0.13.3. [R2]ip route-static 10.0.13.0 255.255.255.0 Serial 1/0/0 preference 80. 取. [R2]ip route-static 10.0.3.0 24 Serial 1/0/0 preference 80. 料 获. [R3]ip route-static 10.0.12.0 24 10.0.13.1. Step 20. Test the static routes.. 更. 多. 资. View the routing table of R2.. Page30. HUAWEI TECHNOLOGIES. HC Series.

(40) [R2]display ip routing-table Route Flags: R - relay, D - download to fib. ---------------------------------------------------------------------------Routing Tables: Public. Proto. Pre Cost. Flags NextHop. Interface. 0. 10.0.2.2. 10.0.2.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.2.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. D. 10.0.12.2. 10.0.23.3. 10.0.12.1/32 Direct 0. 0. D. 10.0.12.1. 10.0.12.2/32 Direct 0. 0. D. 127.0.0.1. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. 10.0.13.0/24 Static 60. 0. RD. 10.0.23.0/24 Direct 0. 0. D. Serial2/0/0 Serial1/0/0. g.. RD. 0. Serial1/0/0. InLoopBack0. InLoopBack0. rn in. 0. 10.0.12.0/24 Direct 0. LoopBack0. hu a. 10.0.2.0/24 Direct 0. 10.0.3.0/24 Static 60. D. i.. Destination/Mask. Routes : 17. we. Destinations : 17. 10.0.23.3. Serial2/0/0. 10.0.23.2. Serial2/0/0 InLoopBack0. 0. D. 127.0.0.1. 0. D. 10.0.23.3. Serial2/0/0. 10.0.23.255/32 Direct 0. 0. D. 127.0.0.1. ea. 10.0.23.2/32 Direct 0 10.0.23.3/32 Direct 0. InLoopBack0. 0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. :/ /l. 127.0.0.0/8. 127.255.255.255/32 Direct. ht tp. The routing table contains two static routes that are configured in step 3. The value of the Proto field is Static, indicating a static route. The value of the Pre field is 60, indicating the default preference of a route. Test network connectivity when the link between R2 and R3 works properly. [R2]ping 10.0.13.3. :. PING 10.0.13.3: 56 data bytes, press CTRL_C to break Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=34 ms. 取. Reply from 10.0.13.3: bytes=56 Sequence=2 ttl=255 time=34 ms Reply from 10.0.13.3: bytes=56 Sequence=3 ttl=255 time=34 ms. 料 获. Reply from 10.0.13.3: bytes=56 Sequence=4 ttl=255 time=34 ms Reply from 10.0.13.3: bytes=56 Sequence=5 ttl=255 time=34 ms. --- 10.0.13.3 ping statistics --5 packet(s) transmitted. 更. 多. 资. 5 packet(s) received 0.00% packet loss. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page31.

(41) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes round-trip min/avg/max = 34/34/34 ms <R2>ping 10.0.3.3 PING 10.0.3.3: 56 data bytes, press CTRL_C to break Reply from 10.0.3.3: bytes=56 Sequence=1 ttl=255 time=41 ms. i.. Reply from 10.0.3.3: bytes=56 Sequence=2 ttl=255 time=41 ms Reply from 10.0.3.3: bytes=56 Sequence=3 ttl=255 time=41 ms. we. Reply from 10.0.3.3: bytes=56 Sequence=4 ttl=255 time=41 ms Reply from 10.0.3.3: bytes=56 Sequence=5 ttl=255 time=41 ms. hu a. --- 10.0.3.3 ping statistics --5 packet(s) transmitted 5 packet(s) received. g.. 0.00% packet loss round-trip min/avg/max = 41/41/41 ms. rn in. The command output shows that communication is normal. You can also run the tracert command to view the routers through which data is transferred. <R2>tracert 10.0.13.3. press CTRL_C to break. <R2>tracert 10.0.3.3. :/ /l. 1 10.0.23.3 40 ms 31 ms 30 ms. ea. traceroute to 10.0.13.3(10.0.13.3), max hops: 30 ,packet length: 40,. traceroute to 10.0.3.3(10.0.3.3), max hops: 30 ,packet length: 40, press CTRL_C to break. ht tp. 1 10.0.23.3 40 ms 30 ms 30 ms. Test the backup static routes.. 取. Step 21. :. The command output shows that R2 directly sends data to R3.. Disable Serial2/0/0 on R2 and observe the changes in the routing tables.. 料 获. Compare the routing tables with the previous routing tables before Serial2/0/0 was disabled.. [R2]int Serial 2/0/0 [R2-Serial2/0/0]shutdown. 资. [R2-Serial2/0/0]quit. 更. 多. [R2]display ip routing-table. Page32. HUAWEI TECHNOLOGIES. HC Series.

(42) Route Flags: R - relay, D - download to fib. ---------------------------------------------------------------------------Routing Tables: Public. Proto. Pre Cost. i.. Destination/Mask. Routes : 13. Flags NextHop. Interface. we. Destinations : 13. 10.0.2.0/24 Direct 0. 0. D. 10.0.2.2. LoopBack0. 10.0.2.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. D. 127.0.0.1. InLoopBack0. D. 10.0.12.2. Serial1/0/0. 10.0.12.0/24 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. 10.0.12.1/32 Direct 0. 0. D. 10.0.12.1. 10.0.12.2/32 Direct 0. 0. D. 127.0.0.1. Serial1/0/0 InLoopBack0. 0. D. 127.0.0.1. 10.0.13.0/24 Static 80. 0. D. 10.0.12.2. InLoopBack0. 127.0.0.0/8. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. Serial1/0/0. rn in. 10.0.12.255/32 Direct 0. hu a. 0 0. 10.0.3.0/24 Static 80. g.. 10.0.2.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. ea. 127.255.255.255/32 Direct 0. :/ /l. The next hops and preferences of the two routes in the preceding information are changed. Test connectivity between R2 and the destination addresses 10.0.13.3 and 10.0.3.3 on R2. <R2>ping 10.0.3.3. ht tp. PING 10.0.3.3: 56 data bytes, press CTRL_C to break Reply from 10.0.3.3: bytes=56 Sequence=1 ttl=255 time=3 ms Reply from 10.0.3.3: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 10.0.3.3: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 10.0.3.3: bytes=56 Sequence=4 ttl=255 time=2 ms. :. Reply from 10.0.3.3: bytes=56 Sequence=5 ttl=255 time=2 ms. 取. --- 10.0.3.3 ping statistics --5 packet(s) transmitted. 料 获. 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/3 ms. <R2>ping 10.0.13.3. 更. 多. 资. PING 10.0.13.3: 56 data bytes, press CTRL_C to break Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=3 ms. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page33.

(43) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes Reply from 10.0.13.3: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 10.0.13.3: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 10.0.13.3: bytes=56 Sequence=4 ttl=255 time=2 ms. i.. Reply from 10.0.13.3: bytes=56 Sequence=5 ttl=255 time=2 ms. --- 10.0.13.3 ping statistics ---. we. 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. hu a. round-trip min/avg/max = 2/2/3 ms. g.. The network is not disconnected when the link between R2 and R3 is shut down.. <R2>tracert 10.0.13.3. rn in. You can also run the tracert command to view the routers through which data is transferred.. 1 10.0.12.1 40 ms 21 ms 21 ms 2 10.0.13.3 30 ms 21 ms 21 ms. :/ /l. <R2>tracert 10.0.3.3. ea. traceroute to 10.0.13.3(10.0.13.3), max hops: 30 ,packet length: 40,press CTRL_C to break. traceroute to 10.0.3.3(10.0.3.3), max hops: 30 ,packet length: 40,press CTRL_C to break. 1 10.0.12.1 40 ms 21 ms 21 ms. ht tp. 2 10.0.13.3 30 ms 21 ms 21 ms. Step 22. :. The command output shows that the data sent by R2 reaches R3 through R1.. Configure a default route on R1 to implement. 料 获. 取. network connectivity. Enable the interface that was disabled in step 6 on R2.. [R2]int Serial 2/0/0. 更. 多. 资. [R2-Serial2/0/0]undo shutdown. Test connectivity between R1 and R3.. Page34. HUAWEI TECHNOLOGIES. HC Series.

(44) [R1]ping 10.0.23.3 PING 10.0.23.3: 56 data bytes, press CTRL_C to break Request time out Request time out. i.. Request time out Request time out. we. Request time out. --- 10.0.23.3 ping statistics ---. hu a. 5 packet(s) transmitted 0 packet(s) received 100.00% packet loss. rn in. g.. R3 cannot be pinged because the route destined for 10.0.23.3 is not configured on R1. You can configure a default route on R1 to implement network connectivity. [R1]ip route-static 0.0.0.0 0.0.0.0 10.0.13.3. ea. After the configuration is complete, test connectivity between R1 and 10.0.23.3.. :/ /l. [R1]ping 10.0.23.3. PING 10.0.23.3: 56 data bytes, press CTRL_C to break Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=255 time=3 ms Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=255 time=2 ms. ht tp. Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=255 time=2 ms Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=255 time=2 ms. --- 10.0.23.3 ping statistics --5 packet(s) transmitted. :. 5 packet(s) received 0.00% packet loss. 取. round-trip min/avg/max = 2/2/3 ms. 料 获. Step 23. Configure a backup default route.. 更. 多. 资. If the link between R1 and R3 is faulty, R1 can communicate with 10.0.23.3 and 10.0.3.3 through R2. However, R1 does not learn about this route by default. You can also. HC Series. HUAWEI TECHNOLOGIES. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. Page35.

(45) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. configure a backup default route in this step. [R1]ip route-static 0.0.0.0 0.0.0.0 10.0.12.2 preference 80. Test the backup default route.. we. Step 24. i.. [R3]ip route-static 10.0.12.0 24 10.0.23.2 preference 80. hu a. View the routes of R1 when the link between R1 and R3 works properly. <R1>display ip routing-table Route Flags: R - relay, D - download to fib. Routing Tables: Public. Destination/Mask. 0.0.0.0/0. Proto. Routes : 16. Pre Cost. Static 60. 0. RD. rn in. Destinations : 16. g.. ----------------------------------------------------------------------------. Flags NextHop. 10.0.13.3. Interface. GigabitEthernet0/0/0. 0. D. 10.0.1.1. 10.0.1.1/32 Direct 0. 0. D. 127.0.0.1. LoopBack0 InLoopBack0. 10.0.1.255/32 Direct 0. 0. D. 127.0.0.1. ea. 10.0.1.0/24 Direct 0. InLoopBack0. 10.0.12.0/24 Direct 0. 0. D. 10.0.12.1. Serial1/0/0. 10.0.12.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.2/32 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.13.0/24 Direct 0. 0. 0. RD. 10.0.13.3. :/ /l. 10.0.3.0/24 Static 60. D. 10.0.13.1. GigabitEthernet0/0/0. 0. D. 127.0.0.1. InLoopBack0. ht tp. 10.0.13.1/32 Direct 0. 10.0.13.255/32 Direct 0. GigabitEthernet0/0/0. 0. D. 127.0.0.1. InLoopBack0. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. 127.0.0.0/8. 127.0.0.1. InLoopBack0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 取. :. D. 127.255.255.255/32 Direct 0. 料 获. Disable GigabitEthernet0/0/0 on R1 and disable GigabitEthernet0/0/0 on R3, and then view the routes of R1. Compare the current routes with the routes before GigabitEthernet0/0/0 was disabled.. [R1]interface GigabitEthernet0/0/0 [R1-GigabitEthernet0/0/0]shutdown. 更. 多. 资. [R1-GigabitEthernet0/0/0]quit. Page36. HUAWEI TECHNOLOGIES. HC Series.

(46) [R3]interface GigabitEthernet0/0/0 [R3-GigabitEthernet0/0/0]shutdown [R3-GigabitEthernet0/0/0]quit. i.. [R1]display ip routing-table Route Flags: R - relay, D - download to fib. we. ---------------------------------------------------------------------------Routing Tables: Public. Pre Cost. 0. RD. 10.0.1.0/24 Direct 0. Static 80. 0. D. Flags NextHop. 10.0.12.2 10.0.1.1. Interface. Serial1/0/0 LoopBack0. 10.0.1.1/32 Direct 0. 0. D. 127.0.0.1. 10.0.1.255/32 Direct 0. 0. D. 127.0.0.1. 10.0.12.0/24 Direct 0. 0. D. 10.0.12.1. Serial1/0/0. 10.0.12.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.2/32 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. ea. 0.0.0.0/0. Proto. hu a. Destination/Mask. Routes : 12. g.. Destinations : 12. D. 127.0.0.1. InLoopBack0. D. 127.0.0.1. InLoopBack0. D. InLoopBack0. 0. :/ /l. 127.255.255.255/32 Direct 0 255.255.255.255/32 Direct 0. 0. InLoopBack0 InLoopBack0. rn in. 127.0.0.0/8. 127.0.0.1. ht tp. According to the preceding routing table, the value of 80 in the Pre column indicates that backup default route 0.0.0.0 is valid. Test network connectivity on R1. [R1]ping 10.0.23.3. PING 10.0.23.3: 56 data bytes, press CTRL_C to break. :. Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=254 time=76 ms Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=254 time=250 ms. 取. Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=254 time=76 ms Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=254 time=76 ms. 料 获. Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=254 time=76 ms. --- 10.0.23.3 ping statistics --5 packet(s) transmitted 5 packet(s) received. 更. 多. 资. 0.00% packet loss round-trip min/avg/max = 76/110/250 ms. HC Series. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. HUAWEI TECHNOLOGIES. Page37.

(47) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes [R1]tracert 10.0.23.3. traceroute to 10.0.23.3(10.0.23.2), max hops: 30 ,packet length: 40,press CTRL_C to break 1 10.0.12.2 30 ms 26 ms 26 ms. The data packets reach R3 through R2.. hu a. 'JJOZOUTGR+^KXIOYKY 'TGR_`OTMGTJ<KXOL_OTM. we. i.. 2 10.0.23.3 60 ms 53 ms 56 ms. g.. You can run the ping command to control other information about forwarded data packets, such as the source address, data packet size, and data packet quantity. Consider the following questions:. rn in. 1. What is the source address of the ping data packets sent from a router by default? 2. In this lab, is connectivity implemented for all the network segments?. ea. 3. What is the simplest static route configuration for this lab topology if only static route are configured to implement connectivity?. ht tp. :/ /l. 4. You can specify the next hop address or an interface when configuring a static route. Consider the differences between the two configurations. How do non-Huawei vendors configure static routes?. :. 'VVKTJO^ '  *KLG[RZ 6XKLKXKTIK UL +GIN 8U[ZOTM 6XUZUIUR. 取. UL.[G]KO8U[ZKXY. Preference. Direct. 0. OSPF. 10. IS-IS. 15. 更. 多. 资. 料 获. Routing Protocol and Routing Type. Page38. HUAWEI TECHNOLOGIES. HC Series.

(48) RIP. 100. OSPF ASE. 150. BGP. 255. i.. 60. we. Static. hu a. ,OTGR)UTLOM[XGZOUTY <R1>display current-configuration [V200R001C01SPC300]. g.. # sysname R1. interface Serial1/0/0 link-protocol ppp. rn in. #. description this port connect to R2-S1/0/0 ip address 10.0.12.1 255.255.255.0. ea. # interface GigabitEthernet0/0/0. :/ /l. description this port connect to R3-G0/0/0 ip address 10.0.13.1 255.255.255.0 # interface LoopBack0. ip address 10.0.1.1 255.255.255.0. ht tp. #. ip route-static 0.0.0.0 0.0.0.0 10.0.13.3 ip route-static 0.0.0.0 0.0.0.0 10.0.12.2 preference 80 ip route-static 10.0.3.0 255.255.255.0 10.0.13.3 #. :. return. 取. <R2>display current-configuration [V200R001C01SPC300] #. 料 获. sysname R2. #. interface Serial1/0/0 link-protocol ppp. 更. 多. 资. description this port connect to R1-S1/0/0 ip address 10.0.12.2 255.255.255.0. HC Series. HUAWEI TECHNOLOGIES. cn. co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes. Page39.

(49) cn co m/. HCDA-HNTD Chapter 2 Configuring Static Routes and Default Routes # interface Serial2/0/0 link-protocol ppp description this port connect to R3-S2/0/0. i.. ip address 10.0.23.1 255.255.255.0 #. we. interface LoopBack0 ip address 10.0.2.2 255.255.255.0 #. hu a. ip route-static 10.0.3.0 255.255.255.0 10.0.23.3. ip route-static 10.0.3.0 255.255.255.0 Serial1/0/0 preference 80 ip route-static 10.0.13.0 255.255.255.0 10.0.23.3. g.. ip route-static 10.0.13.0 255.255.255.0 Serial1/0/0 preference 80 #. <R3>display current-configuration [V200R001C01SPC300] # sysname R3. ea. #. rn in. return. interface Serial2/0/0. :/ /l. link-protocol ppp. description this port connect to R2-S2/0/0 ip address 10.0.23.3 255.255.255.0 #. interface GigabitEthernet0/0/0. ht tp. description this port connect to R1-G0/0/0 ip address 10.0.13.3 255.255.255.0 #. interface LoopBack0. ip address 10.0.3.3 255.255.255.0. :. #. ip route-static 10.0.12.0 255.255.255.0 10.0.13.1. #. 更. 多. 资. 料 获. return. 取. ip route-static 10.0.12.0 255.255.255.0 10.0.23.2 preference 80. Page40. HUAWEI TECHNOLOGIES. HC Series.

(50) Chapter 3 RIP Configuration. Learning Objectives. 更. 多. g.. rn in. 资. 料 获. 取. :. ht tp. :/ /l. x x x x x x x x. Loop prevention mechanism of the Routing Information Protocol (RIP). Method of using RIP to exchange routing information between two routers. Method of configuring RIPv1. Method of enabling RIP on a specified network and interface. Method of using the display and debug commands to test RIP. Procedure for testing connectivity of the RIP network. Formats of the network prefixes sent to or received by RIP. Method of configuring RIPv2. Differences between RIPv1 and RIPv2. Method of importing a static route to RIP.. ea. x x. hu a. The objectives of this lab are to learn and understand:. we. i.. Lab 3-1 Configuring RIPv1 and RIPv2. HC Series. HUAWEI TECHNOLOGIES. cn. co m/. HCDA-HNTD Chapter 3 RIP Configuration. Page41.

(51) cn co m/. HCDA-HNTD Chapter 3 RIP Configuration. :/ /l. ea. rn in. g.. hu a. we. i.. Topology. ht tp. Figure 3.1 Lab topology of RIPv1 and RIPv2. Scenario. 更. 多. 资. 料 获. 取. :. Assume that you are a network administrator of a company that has a small intranet with three routers and five networks. You want to use RIP to transfer routing information. Considering compatibility, you want to use RIPv1 at first, but you realize that RIPv2 also has many advantages. After certain tests, you finally select RIPv2.. Page42. HUAWEI TECHNOLOGIES. HC Series.

(52) Tasks. i.. Step 1 Perform basic configurations and IP addressing.. we. Configure basic device information and set IP addresses based on the topology.. hu a. <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 [R1]interface Serial 1/0/0. g.. [R1-Serial1/0/0]ip address 10.0.12.1 24. [R1-Serial1/0/0]description this port connect to R2-S1/0/0. [R1-LoopBack0]ip address 10.0.1.1 24 [R1-LoopBack0]quit. rn in. [R1-Serial1/0/0]interface loopback 0. ea. Run the display current-configuration command to check the configuration results. [R1-LoopBack0]display current-configuration. # interface Serial1/0/0 link-protocol ppp. :/ /l. ......output omit....... description this port connect to R2-S1/0/0. ht tp. ip address 10.0.12.1 255.255.255.0 #. ......output omit...... interface LoopBack0. ip address 10.0.1.1 255.255.255.0. :. #. 取. ......output omit....... <Huawei>system-view Enter system view, return user view with Ctrl+Z.. 料 获. [Huawei]sysname R2 [R2]interface serial 1/0/0 [R2-Serial1/0/0]ip address 10.0.12.2 24 [R2-Serial1/0/0]description this port connect to R1-S1/0/0. 资. [R2-Serial1/0/0]interface serial 2/0/0. 更. 多. [R2-Serial2/0/0]ip address 10.0.23.2 24. HC Series. HUAWEI TECHNOLOGIES. Page43. cn. co m/. HCDA-HNTD Chapter 3 RIP Configuration.

(53) cn co m/. HCDA-HNTD Chapter 3 RIP Configuration [R2-Serial2/0/0]description this port connect to R3-S2/0/0 [R2-Serial2/0/0]interface loopback0 [R2-LoopBack0]ip address 10.0.2.2 24 [R2-LoopBack0]display current-configuration. i.. ......output omit...... #. we. interface Serial1/0/0 link-protocol ppp description this port connect to R1-S1/0/0. hu a. ip address 10.0.12.2 255.255.255.0 # interface Serial2/0/0. description this port connect to R3-S2/0/0 ip address 10.0.23.2 255.255.255.0. rn in. # ......output omit...... # interface LoopBack0 ip address 10.0.2.2 255.255.255.0. ea. #. g.. link-protocol ppp. :/ /l. <Huawei>system-view. Enter system view, return user view with Ctrl+Z. [Huawei]sysname R3. [R3]interface Serial 2/0/0. [R3-Serial2/0/0]ip address 10.0.23.3 24. ht tp. [R3-Serial2/0/0]description this port connect to R2-S2/0/0 [R3-Serial2/0/0]interface loopback 0 [R3-LoopBack0]ip address 10.0.3.3 24 [R3-LoopBack0]display current-configuration ......output omit....... :. #. interface Serial2/0/0. 取. link-protocol ppp. description this port connect to R2-S2/0/0. 料 获. ip address 10.0.23.3 255.255.255.0 #. ......output omit...... interface LoopBack0 ip address 10.0.3.3 255.255.255.0. 资. #. 更. 多. ......output omit....... Page44. HUAWEI TECHNOLOGIES. HC Series.

(54) R1 and R2 can communicate with each other. <R1>ping 10.0.12.2. Reply from 10.0.12.2: bytes=56 Sequence=2 ttl=255 time=30 ms. we. Reply from 10.0.12.2: bytes=56 Sequence=3 ttl=255 time=30 ms. i.. PING 10.0.12.2: 56 data bytes, press CTRL_C to break Reply from 10.0.12.2: bytes=56 Sequence=1 ttl=255 time=30 ms. Reply from 10.0.12.2: bytes=56 Sequence=4 ttl=255 time=30 ms. hu a. Reply from 10.0.12.2: bytes=56 Sequence=5 ttl=255 time=30 ms. --- 10.0.12.2 ping statistics --5 packet(s) transmitted. g.. 5 packet(s) received 0.00% packet loss. rn in. round-trip min/avg/max = 30/30/30 ms. R2 can successfully ping the IP address 10.0.23.3 of R3. <R2>ping 10.0.23.3. PING 10.0.23.2: 56 data bytes, press CTRL_C to break. ea. Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=255 time=31 ms Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=255 time=31 ms. :/ /l. Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=255 time=41 ms Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=255 time=31 ms Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=255 time=41 ms. --- 10.0.23.3 ping statistics ---. ht tp. 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. :. round-trip min/avg/max = 31/35/41 ms. 取. Step 2 Configure RIPv1.. 料 获. Enable RIP on R1, and then advertise the 10.0.0.0 network segment to RIP. [R1]rip 1 [R1-rip-1]network 10.0.0.0. 资. Enable RIP on R2, and then advertise the 10.0.0.0 network segment to RIP. [R2]rip 1. 更. 多. [R2-rip-1]network 10.0.0.0. HC Series. HUAWEI TECHNOLOGIES. cn. co m/. HCDA-HNTD Chapter 3 RIP Configuration. Page45.

(55) cn co m/. HCDA-HNTD Chapter 3 RIP Configuration. Enable RIP on R3, and then advertise the 10.0.0.0 network segment to RIP. [R3]rip 1. i.. [R3-rip-1]net 10.0.0.0. we. Step 3 Verify RIPv1 routes.. hu a. View the routing tables of R1, R2, and R3. Make sure that these routers have learned the RIP routes that are highlighted in gray in the following command output. [R1]display ip routing-table. g.. Route Flags: R - relay, D - download to fib. Routing Tables: Public Destinations : 14. Proto. Pre Cost. 0. 10.0.1.1/32 Direct 0. 0. 10.0.1.255/32 Direct 0. 0. LoopBack0. D. 127.0.0.1. InLoopBack0. D. 127.0.0.1. InLoopBack0. Interface. 100 1. D. 10.0.12.2. Serial1/0/0. 100 2. D. 10.0.12.2. Serial1/0/0. 10.0.12.0/24 Direct 0. 0. D. 10.0.12.1. Serial1/0/0. 10.0.12.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.2/32 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. ht tp. 10.0.3.0/24 RIP. 10.0.1.1. Flags NextHop. :/ /l. 10.0.1.0/24 Direct 0. 10.0.2.0/24 RIP. D. Routes : 14. ea. Destination/Mask. rn in. ----------------------------------------------------------------------------. 10.0.23.0/24 RIP 127.0.0.0/8. 100 1. Direct 0. 0. 127.0.0.1/32 Direct 0. 0. D. 10.0.12.2. Serial1/0/0. D. 127.0.0.1. InLoopBack0. 127.0.0.1. InLoopBack0. D. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 取. :. 127.255.255.255/32 Direct 0. [R2]display ip routing-table Route Flags: R - relay, D - download to fib. 料 获. ---------------------------------------------------------------------------Routing Tables: Public Destinations : 17. 更. 多. 资. Destination/Mask. Page46. Proto. Routes : 17. Pre Cost. Flags NextHop. HUAWEI TECHNOLOGIES. Interface. HC Series.

(56) 10.0.1.0/24 RIP. 100 1. D. 10.0.12.1. Serial1/0/0. 10.0.2.0/24 Direct 0. 0. D. 10.0.2.2. LoopBack0. 10.0.2.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.2.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 100 1. 10.0.23.3. Serial2/0/0. 0. D. 10.0.12.2. Serial1/0/0. 10.0.12.1/32 Direct 0. 0. D. 10.0.12.1. Serial1/0/0. 10.0.12.2/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.12.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.23.0/24 Direct 0. 0. D. 10.0.23.2. Serial2/0/0. 10.0.23.2/32 Direct 0. 0. D. 127.0.0.1. 10.0.23.3/32 Direct 0. 0. D. 10.0.23.3. 10.0.23.255/32 Direct 0. 0. D. 127.0.0.1. Direct 0. 0. D. 127.0.0.1/32 Direct 0. 0. 127.255.255.255/32 Direct 0. 0. 255.255.255.255/32 Direct 0. 0. D. [R3]display ip routing-table. we. hu a. InLoopBack0. Serial2/0/0 InLoopBack0. g.. 127.0.0.0/8. 127.0.0.1. InLoopBack0. 127.0.0.1. InLoopBack0. D. 127.0.0.1. InLoopBack0. D. 127.0.0.1. InLoopBack0. rn in. 10.0.3.0/24 RIP. i.. D. 10.0.12.0/24 Direct 0. Route Flags: R - relay, D - download to fib. ea. ---------------------------------------------------------------------------Routing Tables: Public. Destination/Mask. Proto. 10.0.1.0/24 RIP. Pre Cost. Flags NextHop. Interface. 100 2. D. 10.0.23.2. Serial2/0/0. 100 1. D. 10.0.23.2. Serial2/0/0. ht tp. 10.0.2.0/24 RIP. Routes : 14. :/ /l. Destinations : 14. 10.0.3.0/24 Direct 0. 0. D. 10.0.3.3. LoopBack0. 10.0.3.3/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 10.0.3.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 100 1. D. 10.0.23.2. Serial2/0/0. 10.0.12.0/24 RIP. 0. D. 10.0.23.3. Serial2/0/0. 10.0.23.2/32 Direct 0. 0. D. 10.0.23.2. Serial2/0/0. 10.0.23.3/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 取. :. 10.0.23.0/24 Direct 0. 10.0.23.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 料 获. 127.0.0.0/8. 127.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 更. 多. 资. Test connectivity from R1 to IP address 10.0.23.3. R1 and R3 can communicate with each other. HC Series. HUAWEI TECHNOLOGIES. Page47. cn. co m/. HCDA-HNTD Chapter 3 RIP Configuration.

(57) cn co m/. HCDA-HNTD Chapter 3 RIP Configuration [R1]ping 10.0.23.3 PING 10.0.23.3: 56 data bytes, press CTRL_C to break Reply from 10.0.23.3: bytes=56 Sequence=1 ttl=254 time=70 ms Reply from 10.0.23.3: bytes=56 Sequence=2 ttl=254 time=65 ms. Reply from 10.0.23.3: bytes=56 Sequence=4 ttl=254 time=65 ms. we. Reply from 10.0.23.3: bytes=56 Sequence=5 ttl=254 time=65 ms. i.. Reply from 10.0.23.3: bytes=56 Sequence=3 ttl=254 time=65 ms. --- 10.0.23.3 ping statistics ---. hu a. 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. g.. round-trip min/avg/max = 65/66/70 ms. rn in. You can run the debug command to view RIP periodic updates. Run the debug command to enable the RIP debugging function. The debug command can be used only in the user view. Then run the terminal debugging and terminal monitor commands to display the debugging information.. ea. The information about RIP interactions between routers is displayed. <R1>terminal debugging. :/ /l. <R1>debug rip 1. Info: Current terminal debugging is on. <R1>terminal monitor. Info: Current terminal monitor is on.. ht tp. Sep 19 2011 19:15:22.630.1+00:00 R1 RM/6/RMDEBUG: 6: 11647: RIP 1: Receiving v1 response on Serial1/0/0 from 10.0.12.2 with 2 RTEs Sep 19 2011 19:15:22.630.2+00:00 R1 RM/6/RMDEBUG: 6: 11698: RIP 1: Receive response from 10.0.12.2 on Serial1/0/0. Sep 19 2011 19:15:22.630.3+00:00 R1 RM/6/RMDEBUG: 6: 11709: Packet: Version 1,. :. Cmd response, Length 44. Sep 19 2011 19:15:22.630.4+00:00 R1 RM/6/RMDEBUG: 6: 11758: Dest 10.0.3.0, Cost. 取. 2. Sep 19 2011 19:15:22.630.5+00:00 R1 RM/6/RMDEBUG: 6: 11758: Dest 10.0.23.0, Cost 1. 料 获. Sep 19 2011 19:15:52.650.1+00:00 R1 RM/6/RMDEBUG: 6: 11647: RIP 1: Receiving v1 response on Serial1/0/0 from 10.0.12.2 with 2 RTEs Sep 19 2011 19:15:52.650.2+00:00 R1 RM/6/RMDEBUG: 6: 11698: RIP 1: Receive response from 10.0.12.2 on Serial1/0/0 Sep 19 2011 19:15:52.650.3+00:00 R1 RM/6/RMDEBUG: 6: 11709: Packet: Version 1,. 更. 多. 资. Cmd response, Length 44. Page48. HUAWEI TECHNOLOGIES. HC Series.

References

Related documents

And we weren’t the first in the county, Colorado had a pediatric nurse practitioner program for a couple of years before then, but following that we were one of the first 3

In this novel, &#34;the doors to synchronous time and parallel space are everywhere&#34; (p. 149), and solutions, if they exist, do not emerge from traditional modes of

We gathered data for our review using structured interviews; physical inspection of property items; an internal control questionnaire; and sample tests and analyses of

Increasingly,  in  their  respective  roles,  infrastructure  owners,  designers,  builders,  governments   and  operators  are  being  required  to  consider

Circuit Level Firewall Best Security Security Dynamic Packet Filter Firewall Applications Layer Firewall Latency Processing Time Circuit Level Firewall Dynamic Packet Filter

Packet Filtering Firewalls Firewall/Router Data Link Network Internet Physical Input Filter Access Rules Data Link Network Router Internal Network Physical Output Filter

© David Morgan 2011 Firewalls Firewalls David Morgan Firewall types Firewall types  Packet filter – linux, iptables-based – Windows XP’s built-in – router device built-ins

• Incoming firewall rules: menu Network Security -&gt; Packet Filter, tab Incoming Rules. • Outgoing firewall rules: menu Network Security -&gt; Packet Filter, tab