Ciso Packet Tracer配置静态路由及默认路由(二)

                                                        Instructor:Mr.Zhang 

二、步骤2

配置R1的静态路由,保证R1能正确转发到R2R3loopback接口的数据包 (配置4条精确的静态路由)

R1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#ip route 13.3.20.0 255.255.255.0 13.3.123.2

R1(config)#ip route 13.3.21.0 255.255.255.0 13.3.123.2

R1(config)#ip route 13.3.22.0 255.255.255.0 13.3.123.3

R1(config)#ip route 13.3.23.0 255.255.255.0 13.3.123.3

R1(config)#

 

三、步骤3

检查R1的路由表,观察静态路由在路由表的表现形式

R1#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

       * - candidate default, U - per-user static route, o - ODR

       P - periodic downloaded static route

 

Gateway of last resort is not set

 

     13.0.0.0/24 is subnetted, 6 subnets

C       13.3.0.0 is directly connected, Ethernet1/0

S       13.3.20.0 [1/0] via 13.3.123.2

S       13.3.21.0 [1/0] via 13.3.123.2

S       13.3.22.0 [1/0] via 13.3.123.3

S       13.3.23.0 [1/0] via 13.3.123.3

C       13.3.123.0 is directly connected, Ethernet1/1

R1#        //C表示的是直连网络,S表示静态路由

 

四、步骤4

配置R2R3的静态路由,保证两台路由器都能转发到对方Loopback接口的数据包

R2#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#ip route 13.3.22.0 255.255.255.0 13.3.123.3

R2(config)#ip route 13.3.23.0 255.255.255.0 13.3.123.3

R2(config)#

 

R3#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#ip route 13.3.20.0 255.255.255.0 13.3.123.2

R3(config)#ip route 13.3.21.0 255.255.255.0 13.3.123.2

R3(config)#

 

测试

R2#ping 13.3.23.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 13.3.23.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 5/26/40 ms

 

R2#

 

R3#ping 13.3.20.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 13.3.20.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/10 ms

 

R3#

你可能感兴趣的:(职场,休闲,packet,Tracer,静态路由,Ciso)