要求:配置以上设备接口IP,并配置Rip,关闭路由汇总,使PC1与PC2实现互通
配置如下:
Enter system view, return user view with Ctrl+Z. [Huawei] [Huawei]sy [Huawei]sysname R1 [R1] [R1]su [R1]super p [R1]super password c [R1]super password cipher 123456 [R1] [R1]us [R1]user-i [R1]user-interface v [R1]user-interface vty 0 4 [R1-ui-vty0-4] [R1-ui-vty0-4]auth [R1-ui-vty0-4]authentication-mode p [R1-ui-vty0-4]authentication-mode password 华为HCNA_路由(RIP)实验练习(tony) Please configure the login password (maximum length 16):123456 [R1-ui-vty0-4] [R1-ui-vty0-4]se [R1-ui-vty0-4]setauth [R1-ui-vty0-4]set authentication p [R1-ui-vty0-4]set authentication password c [R1-ui-vty0-4]set authentication password cipher 123456 [R1-ui-vty0-4] [R1-ui-vty0-4]q [R1] [R1]us [R1]user-i [R1]user-interface c [R1]user-interface console 0 [R1-ui-console0] [R1-ui-console0]auth [R1-ui-console0]authentication-mode p [R1-ui-console0]authentication-mode password Please configure the login password (maximum length 16):123456 [R1-ui-console0] [R1-ui-console0]se [R1-ui-console0]setauth [R1-ui-console0]set authentication p [R1-ui-console0]set authentication password c [R1-ui-console0]set authentication password cipher 123456 [R1-ui-console0]q [R1] [R1]aaa [R1-aaa]lo [R1-aaa]local-user admin pa [R1-aaa]local-user admin password c [R1-aaa]local-user admin password cipher admin123 [R1-aaa] [R1-aaa]lo [R1-aaa]local-user admin ser [R1-aaa]local-user admin service-type t [R1-aaa]local-user admin service-type telnet [R1-aaa] [R1-aaa]q [R1] [R1]int g0/0/0 [R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24 [R1-GigabitEthernet0/0/0] Mar 8 2017 10:45:41-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 华为HCNA_路由(RIP)实验练习(tony) on the interface GigabitEthernet0/0/0 has entered the UP state. [R1-GigabitEthernet0/0/0] [R1-GigabitEthernet0/0/0]un [R1-GigabitEthernet0/0/0]undosh [R1-GigabitEthernet0/0/0]undo shutdown Info: Interface GigabitEthernet0/0/0 is not shutdown. [R1-GigabitEthernet0/0/0]q [R1] [R1]int g0/0/1 [R1-GigabitEthernet0/0/1]ip add 192.168.12.1 24 [R1-GigabitEthernet0/0/1] Mar 8 2017 10:46:24-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. [R1-GigabitEthernet0/0/1] [R1-GigabitEthernet0/0/1]un [R1-GigabitEthernet0/0/1]undosh [R1-GigabitEthernet0/0/1]undo shutdown Info: Interface GigabitEthernet0/0/1 is not shutdown. [R1-GigabitEthernet0/0/1] [R1-GigabitEthernet0/0/1]q [R1] [R1]disipintbr *down: administratively down ^down: standby (l): loopback (s): spoofing The number of interface that is UP in Physical is 3 The number of interface that is DOWN in Physical is 1 The number of interface that is UP in Protocol is 3 The number of interface that is DOWN in Protocol is 1 Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.1.254/24 up up GigabitEthernet0/0/1 192.168.12.1/24 up up GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R1]q 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.......... 华为HCNA_路由(RIP)实验练习(tony) Configuration file had been saved successfully Note: The configuration file will take effect after being activated Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on Password: Enter system view, return user view with Ctrl+Z. [R1]rip [R1-rip-1]ver [R1-rip-1]verify-source [R1-rip-1]ver [R1-rip-1]version 2 [R1-rip-1]un [R1-rip-1]undo sum [R1-rip-1]undo summary [R1-rip-1] [R1-rip-1]net [R1-rip-1]network 192.168.1.0 [R1-rip-1] [R1-rip-1]net [R1-rip-1]network 192.168.12.0 [R1-rip-1] [R1-rip-1]q [R1] [R1]q 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 华为HCNA_路由(RIP)实验练习(tony) Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost Flags NextHop Interface 127.0.0.0/8 InLoopBack0 127.0.0.1/32 InLoopBack0 127.255.255.255/32 InLoopBack0 192.168.1.0/24 GigabitEthernet 0/0/0 192.168.1.254/32 GigabitEthernet 0/0/0 192.168.1.255/32 GigabitEthernet 0/0/0 192.168.12.0/24 GigabitEthernet 0/0/1 192.168.12.1/32 GigabitEthernet 0/0/1 192.168.12.255/32 GigabitEthernet 0/0/1 255.255.255.255/32 InLoopBack0 Password: Password: Password: Direct 0 Direct 0 Direct 0 0 Direct 0 Direct 0 Direct 0 Direct 0 Direct 0 Direct 0 0 0 0 0 0 0 0 0 0 0 D 127.0.0.1 D 127.0.0.1 D 127.0.0.1 D 192.168.1.254 D 127.0.0.1 D 127.0.0.1 D 192.168.12.1 D 127.0.0.1 D 127.0.0.1 D 127.0.0.1 Direct 华为HCNA_路由(RIP)实验练习(tony) PING 192.168.2.254: 56 data bytes, press CTRL_C to break Reply from 192.168.2.254: bytes=56 Sequence=1 ttl=254 time=60 ms Reply from 192.168.2.254: bytes=56 Sequence=2 ttl=254 time=40 ms Reply from 192.168.2.254: bytes=56 Sequence=3 ttl=254 time=40 ms Reply from 192.168.2.254: bytes=56 Sequence=4 ttl=254 time=40 ms Reply from 192.168.2.254: bytes=56 Sequence=5 ttl=254 time=30 ms --- 192.168.2.254 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 30/42/60 ms PING 192.168.2.1: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=126 time=40 ms Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=126 time=50 ms Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=126 time=30 ms Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=126 time=40 ms --- 192.168.2.1 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 30/40/50 ms Enter system view, return user view with Ctrl+Z. [Huawei] [Huawei]sy 华为HCNA_路由(RIP)实验练习(tony) [Huawei]sysname R2 [R2]su [R2]super p [R2]super password c [R2]super password cipher 123456 [R2] [R2]us [R2]user-i [R2]user-interface v [R2]user-interface vty 0 4 [R2-ui-vty0-4]auth [R2-ui-vty0-4]authentication-mode p [R2-ui-vty0-4]authentication-mode password Please configure the login password (maximum length 16):123456 [R2-ui-vty0-4]se [R2-ui-vty0-4]setauth [R2-ui-vty0-4]set authentication p [R2-ui-vty0-4]set authentication password c [R2-ui-vty0-4]set authentication password cipher 123456 [R2-ui-vty0-4]q [R2] [R2]us [R2]user-i [R2]user-interface c [R2]user-interface console 0 [R2-ui-console0]auth [R2-ui-console0]authentication-mode p [R2-ui-console0]authentication-mode password Please configure the login password (maximum length 16):123456 [R2-ui-console0]se [R2-ui-console0]setauth [R2-ui-console0]set authentication p [R2-ui-console0]set authentication password c [R2-ui-console0]set authentication password cipher 123456 [R2-ui-console0]q [R2] [R2]aaa [R2-aaa]lo [R2-aaa]local-user admin p [R2-aaa]local-user admin password c [R2-aaa]local-user admin password cipher admin1234 [R2-aaa] [R2-aaa]lo [R2-aaa]local-user admin ser 华为HCNA_路由(RIP)实验练习(tony) [R2-aaa]local-user admin service-type tel [R2-aaa]local-user admin service-type telnet [R2-aaa] [R2-aaa]q [R2] [R2]int g [R2]intGigabitEthernet 0/0/0 [R2-GigabitEthernet0/0/0]ip add 192.168.12.2 24 [R2-GigabitEthernet0/0/0] Mar 8 2017 11:14:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. [R2-GigabitEthernet0/0/0]un [R2-GigabitEthernet0/0/0]undosh [R2-GigabitEthernet0/0/0]undo shutdown Info: Interface GigabitEthernet0/0/0 is not shutdown. [R2-GigabitEthernet0/0/0]q [R2] [R2]int g0/0/1 [R2-GigabitEthernet0/0/1]ip add 192.168.23.1 24 [R2-GigabitEthernet0/0/1] Mar 8 2017 11:17:05-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. [R2-GigabitEthernet0/0/1]un [R2-GigabitEthernet0/0/1]undosh [R2-GigabitEthernet0/0/1]undo shutdown Info: Interface GigabitEthernet0/0/1 is not shutdown. [R2-GigabitEthernet0/0/1]q [R2] [R2]disipintbr *down: administratively down ^down: standby (l): loopback (s): spoofing The number of interface that is UP in Physical is 3 The number of interface that is DOWN in Physical is 1 The number of interface that is UP in Protocol is 3 The number of interface that is DOWN in Protocol is 1 Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.12.2/24 up up GigabitEthernet0/0/1 192.168.23.1/24 up up GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) 华为HCNA_路由(RIP)实验练习(tony) [R2] [R2] [R2] [R2]q 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 Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on Password: Password: Enter system view, return user view with Ctrl+Z. [R2] [R2] [R2]rip [R2-rip-1]ver [R2-rip-1]verify-source [R2-rip-1]ver [R2-rip-1]version 2 [R2-rip-1]un [R2-rip-1]undo sum [R2-rip-1]undo summary [R2-rip-1] [R2-rip-1]net [R2-rip-1]network 192.168.12.0 [R2-rip-1] [R2-rip-1]net [R2-rip-1]network 192.168.23.0 [R2-rip-1] [R2-rip-1]q [R2] [R2]dis [R2]displayiprou 华为HCNA_路由(RIP)实验练习(tony) [R2]displayip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 11 Routes : 11 Destination/Mask Proto Pre Cost Flags NextHop Interface 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 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 192.168.1.0/24 RIP 100 1 D 192.168.12.1 GigabitEthernet 0/0/0 192.168.12.0/24 Direct 0 0 D 192.168.12.2 GigabitEthernet 0/0/0 192.168.12.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/0 192.168.12.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/0 192.168.23.0/24 Direct 0 0 D 192.168.23.1 GigabitEthernet 0/0/1 192.168.23.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 192.168.23.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 [R2]q 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......... 华为HCNA_路由(RIP)实验练习(tony) Configuration file had been saved successfully Note: The configuration file will take effect after being activated Password: PING 192.168.1.1: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=127 time=50 ms Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=127 time=20 ms Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=127 time=20 ms Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=127 time=30 ms --- 192.168.1.1 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 20/30/50 ms PING 192.168.1.254: 56 data bytes, press CTRL_C to break Reply from 192.168.1.254: bytes=56 Sequence=1 ttl=255 time=60 ms Reply from 192.168.1.254: bytes=56 Sequence=2 ttl=255 time=30 ms Reply from 192.168.1.254: bytes=56 Sequence=3 ttl=255 time=40 ms Reply from 192.168.1.254: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 192.168.1.254: bytes=56 Sequence=5 ttl=255 time=30 ms --- 192.168.1.254 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 30/38/60 ms PING 192.168.2.254: 56 data bytes, press CTRL_C to break Reply from 192.168.2.254: bytes=56 Sequence=1 ttl=255 time=40 ms Reply from 192.168.2.254: bytes=56 Sequence=2 ttl=255 time=20 ms Reply from 192.168.2.254: bytes=56 Sequence=3 ttl=255 time=40 ms Reply from 192.168.2.254: bytes=56 Sequence=4 ttl=255 time=110 ms Reply from 192.168.2.254: bytes=56 Sequence=5 ttl=255 time=20 ms --- 192.168.2.254 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 华为HCNA_路由(RIP)实验练习(tony) 0.00% packet loss round-trip min/avg/max = 20/46/110 ms PING 192.168.2.1: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=127 time=20 ms Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=127 time=30 ms Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=127 time=30 ms Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=127 time=40 ms --- 192.168.2.1 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 20/30/40 ms Enter system view, return user view with Ctrl+Z. [Huawei]sy [Huawei]sysname R3 [R3]su [R3]super p [R3]super password c [R3]super password cipher 123456 [R3] [R3]us [R3]user-i [R3]user-interface v [R3]user-interface vty 0 4 [R3-ui-vty0-4] [R3-ui-vty0-4]auth [R3-ui-vty0-4]authentication-mode p 华为HCNA_路由(RIP)实验练习(tony) [R3-ui-vty0-4]authentication-mode password Please configure the login password (maximum length 16):123456 [R3-ui-vty0-4]se [R3-ui-vty0-4]setauth [R3-ui-vty0-4]set authentication p [R3-ui-vty0-4]set authentication password c [R3-ui-vty0-4]set authentication password cipher 123456 [R3-ui-vty0-4] [R3-ui-vty0-4]q [R3] [R3]us [R3]user-i [R3]user-interface c [R3]user-interface console 0 [R3-ui-console0]auth [R3-ui-console0]authentication-mode p [R3-ui-console0]authentication-mode password Please configure the login password (maximum length 16):123456 [R3-ui-console0]se [R3-ui-console0]setauth [R3-ui-console0]set authentication p [R3-ui-console0]set authentication password c [R3-ui-console0]set authentication password cipher 123456 [R3-ui-console0]q [R3] [R3]aaa [R3-aaa]lo [R3-aaa]local-user admin p [R3-aaa]local-user admin password c [R3-aaa]local-user admin password cipher admin123 [R3-aaa] [R3-aaa]lo [R3-aaa]local-user admin ser [R3-aaa]local-user admin service-type t [R3-aaa]local-user admin service-type telnet [R3-aaa]q [R3] [R3]int g0/0/0 [R3-GigabitEthernet0/0/0]ip add 192.168.23.2 24 [R3-GigabitEthernet0/0/0] Mar 8 2017 14:01:20-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. [R3-GigabitEthernet0/0/0]un [R3-GigabitEthernet0/0/0]undosh 华为HCNA_路由(RIP)实验练习(tony) [R3-GigabitEthernet0/0/0]undo shutdown Info: Interface GigabitEthernet0/0/0 is not shutdown. [R3-GigabitEthernet0/0/0]q [R3] [R3] [R3] [R3]int g0/0/1 [R3-GigabitEthernet0/0/1]ip add 192.168.2.254 24 [R3-GigabitEthernet0/0/1] Mar 8 2017 14:04:49-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. [R3-GigabitEthernet0/0/1] [R3-GigabitEthernet0/0/1]un [R3-GigabitEthernet0/0/1]undosh [R3-GigabitEthernet0/0/1]undo shutdown Info: Interface GigabitEthernet0/0/1 is not shutdown. [R3-GigabitEthernet0/0/1]q [R3] [R3]disipintbr *down: administratively down ^down: standby (l): loopback (s): spoofing The number of interface that is UP in Physical is 3 The number of interface that is DOWN in Physical is 1 The number of interface that is UP in Protocol is 3 The number of interface that is DOWN in Protocol is 1 Interface IP Address/Mask Physical Protocol GigabitEthernet0/0/0 192.168.23.2/24 up up GigabitEthernet0/0/1 192.168.2.254/24 up up GigabitEthernet0/0/2 unassigned down down NULL0 unassigned up up(s) [R3]q 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 华为HCNA_路由(RIP)实验练习(tony) Enter system view, return user view with Ctrl+Z. [R3] [R3]rip [R3-rip-1] [R3-rip-1]ver [R3-rip-1]verify-source [R3-rip-1] [R3-rip-1]ver [R3-rip-1]version 2 [R3-rip-1] [R3-rip-1]net [R3-rip-1]network 192.168.23.0 [R3-rip-1] [R3-rip-1]net [R3-rip-1]network 192.168.2.0 [R3-rip-1] [R3-rip-1]q [R3] [R3] [R3] [R3] [R3] [R3] [R3] [R3] [R3] [R3] [R3]dis [R3]displayipro [R3]displayip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 12 Routes : 12 Destination/Mask Proto Pre Cost Flags NextHop 127.0.0.0/8 Direct 0 0 InLoopBack0 127.0.0.1/32 Direct 0 0 InLoopBack0 Interface D 127.0.0.1 127.0.0.1 D 华为HCNA_路由(RIP)实验练习(tony) 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 192.168.1.0/24 RIP 100 2 D 192.168.23.1 GigabitEthernet 0/0/0 192.168.2.0/24 Direct 0 0 D 192.168.2.254 GigabitEthernet 0/0/1 192.168.2.254/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/1 192.168.12.0/24 RIP 100 1 D 192.168.23.1 GigabitEthernet 0/0/0 192.168.23.0/24 Direct 0 0 D 192.168.23.2 GigabitEthernet 0/0/0 192.168.23.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/0 192.168.23.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet 0/0/0 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 [R3]q 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 PING 192.168.1.254: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.1.254: bytes=56 Sequence=2 ttl=254 time=110 ms Reply from 192.168.1.254: bytes=56 Sequence=3 ttl=254 time=40 ms 华为HCNA_路由(RIP)实验练习(tony) Reply from 192.168.1.254: bytes=56 Sequence=4 ttl=254 time=40 ms Reply from 192.168.1.254: bytes=56 Sequence=5 ttl=254 time=30 ms --- 192.168.1.254 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 30/55/110 ms PING 192.168.1.1: 56 data bytes, press CTRL_C to break Request time out Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=126 time=40 ms Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=126 time=30 ms Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=126 time=60 ms Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=126 time=30 ms --- 192.168.1.1 ping statistics --- 5 packet(s) transmitted 4 packet(s) received 20.00% packet loss round-trip min/avg/max = 30/40/60 ms PC1与PC2测试连通性情况 华为HCNA_路由(RIP)实验练习(tony) 华为HCNA_路由(RIP)实验练习(tony) 因篇幅问题不能全部显示,请点此查看更多更全内容