R3303-HP HSR6800 Routers Layer 2 - WAN Configuration Guide

101
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/27/126 ms
HDLC in conjunction with IP unnumbered interface
configuration example
Network requirements
As shown in Figure 32, Router A and Router B are connected through their POS ports with HDLC enabled.
Configure POS 1/0/1 of Router A to borrow the IP address of the local loopback interface, whose IP
address has a 32-bit mask.
Configure Router A to learn the routing information of Router B through static routes, so that Router A can
reach the network segment 12.1.2.0/24.
Figure 32 Network diagram
Configuration procedure
1. Configure Router A:
<RouterA> system-view
[RouterA] interface loopback 1
[RouterA-LoopBack1] ip address 12.1.1.2 32
[RouterA-LoopBack1] quit
[RouterA] interface pos 1/0/1
[RouterA-Pos1/0/1] clock master
[RouterA-Pos1/0/1] link-protocol hdlc
[RouterA-Pos1/0/1] ip address unnumbered interface loopback 1
[RouterA-Pos1/0/1] quit
2. Configure Router B:
<RouterB> system-view
[RouterB] interface pos 1/0/1
[RouterB-Pos1/0/1] link-protocol hdlc
[RouterB-Pos1/0/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 1/0/1
[RouterA] ip route-static 12.1.2.0 24 12.1.1.1
4. Verify that 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