Static Routing Configuration second experiment

 

 

image.png

Configuring achieve two routing entries in 192.168.1.0 24 R1:

[R1]ip route-static 192.168.1.0 24 12.1.1.2

[R1]ip route-static 192.168.1.0 24 12.1.1.2

To give the following routing table

[R1]dis ip routing-table

Destinations : 19       Routes : 20

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0

12.1.1.0/30        Direct  0   0           12.1.1.1        Ser1/0

12.1.1.0/32        Direct  0   0           12.1.1.1        Ser1/0

12.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0

12.1.1.2/32        Direct  0   0           12.1.1.2        Ser1/0

12.1.1.3/32        Direct  0   0           12.1.1.1        Ser1/0

23.1.1.0/30        Direct  0   0           23.1.1.1        Ser2/0

23.1.1.0/32        Direct  0   0           23.1.1.1        Ser2/0

23.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0

23.1.1.2/32        Direct  0   0           23.1.1.2        Ser2/0

23.1.1.3/32        Direct  0   0           23.1.1.1        Ser2/0

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

192.168.1.0/24     Static  60  0           12.1.1.2        Ser1/0

                                           23.1.1.2 Ser2 / 0

224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0

224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0

255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

 

At this time, the ping 192.168.1.1, ping nowhere 192.168.1.2

 

dis ip routing-table 192.168.1.2 // 192.168.1.2 routing entries to the display

image.png

Seen from FIG, R1 sent to all the data sent to the default 192.168.1.0/24. R2, R1 ping nowhere on 192.168.1.2, this time need to configure the route R3 segment 12.1.1.0/30.

 

[R3]ip route-static 12.1.1.1   24   192.168.1.1


Guess you like

Origin blog.51cto.com/14009115/2404603