R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

20
<Router> ping 172.16.2.2
Ping 172.16.2.2 (172.16.2.2): 56 data bytes, press CTRL_C to break
56 bytes from 172.16.2.2: icmp_seq=0 ttl=128 time=2.000 ms
56 bytes from 172.16.2.2: icmp_seq=1 ttl=128 time=7.000 ms
56 bytes from 172.16.2.2: icmp_seq=2 ttl=128 time=1.000 ms
56 bytes from 172.16.2.2: icmp_seq=3 ttl=128 time=2.000 ms
56 bytes from 172.16.2.2: icmp_seq=4 ttl=128 time=1.000 ms
--- Ping statistics for 172.16.2.2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.000/2.600/7.000/2.245 ms
# Verify the connectivity between a host on subnet 172.16.1.0/24 and a host on subnet 172.16.2.0/24.
The ping operation succeeds.
IP unnumbered configuration example
Network requirements
As shown in Figure 8, two routers on an intranet are connected to each other through serial interfaces
across a Digital Data Network. Each router connects to a LAN through an Ethernet interface.
To save IP addresses, configure the serial interfaces to borrow IP addresses from the Ethernet interfaces.
Figure 8 Network diagram
Configuration procedure
1. Configure Router A:
# Assign a primary IP address to GigabitEthernet 2/1/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 172.16.10.1 255.255.255.0
[RouterA-GigabitEthernet2/1/1] quit
# Configure Serial 2/1/1 to borrow an IP address from GigabitEthernet 2/1/1.
[RouterA] interface serial 2/1/1
[RouterA-Serial2/1/1] ip address unnumbered interface gigabitethernet 2/1/1
[RouterA-Serial2/1/1] quit
# Configure a static route to the subnet attached to Router B, specifying Serial 2/1/1 as the
outgoing interface.
S2/1/1 S2/1/1
GE2/1/1
172.16.10.1/24
GE2/1/1
172.16.20.1/24
DDN
Router BRouter A