H3C Technologies H3C SR8800 User Manual
Page 52
![background image](/files/812890/content/doc052.png)
44
2.
Configure Router B:
<RouterB> system-view
[RouterB] interface Pos 3/1/1
[RouterB-Pos3/1/1] link-protocol hdlc
[RouterB-Pos3/1/1] ip address 12.1.1.1 24
3.
Configure a static route on Router A:
[RouterA] ip route-static 12.1.1.0 24 Pos 3/1/1
[RouterA] ip route-static 12.1.2.0 24 12.1.1.1
After the configuration, Router A can ping network segment 12.1.2.0/24.
[RouterA] ping 12.1.2.1
PING 12.1.2.1: 56 data bytes, press CTRL_C to break
Reply from 12.1.2.1: bytes=56 Sequence=1 ttl=255 time=35 ms
Reply from 12.1.2.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 12.1.2.1: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 12.1.2.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 12.1.2.1: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 12.1.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/9/35 ms
# Execute the display ip routing-table command on Router A to view the routing table.
[RouterA] display ip routing-table
Routing Tables: Public
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost NextHop Interface
12.1.1.0/24 Static 60 0 12.1.1.2 POS3/1/1
12.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
12.1.2.0/24 Static 60 0 12.1.1.1 POS3/1/1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0