试验25 默认路由配置



R1配置
Router(config)#ho r1
r1(config)#int s1/2
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#int lo0
r1(config-if)#ip add 1.1.1.1 255.255.255.0
r1(config-if)#^Z

增加一条默认路由去10.1.1.2
r1(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2

R2配置
Router(config)#ho r2
r2(config)#int s2/1
r2(config-if)#ip add 10.1.1.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#int lo0
r2(config-if)#ip add 2.2.2.2 255.255.255.0
r2(config-if)#^Z

曾加一条默认路由去10.1.1.1
r2(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1
测试连通性
r2#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/35/52 ms

r1#p 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/32 ms

你可能感兴趣的:(职场,配置,默认,路由,休闲)