Figure 9 Network diagram
Configuration procedure
1.
Configure Router A:
# Assign a primary IP address to Ethernet 1/1.
<RouterA> system-view
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 172.16.10.1 255.255.255.0
[RouterA-Ethernet1/1] quit
# Configure Serial 2/1 to borrow an IP address from Ethernet 1/1.
[RouterA] interface serial 2/1
[RouterA-Serial2/1] ip address unnumbered interface ethernet 1/1
[RouterA-Serial2/1] quit
# Configure a static route to the subnet attached to Router B, specifying Serial 2/1 as the outgoing
interface.
[RouterA] ip route-static 172.16.20.0 255.255.255.0 serial 2/1
2.
Configure Router B:
# Assign a primary IP address to Ethernet 1/1.
<RouterB> system-view
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ip address 172.16.20.1 255.255.255.0
[RouterB-Ethernet1/1] quit
# Configure interface Serial 2/1 to borrow an IP address from Ethernet 1/1.
[RouterB] interface serial 2/1
[RouterB-Serial2/1] ip address unnumbered interface ethernet 1/1
[RouterB-Serial2/1] quit
# Configure a static route to the subnet attached to Router A, specifying Serial 2/1 as the outgoing
interface.
[RouterB] ip route-static 172.16.10.0 255.255.255.0 serial 2/1
Verifying the configuration
# Ping a host attached to Router B from Router A.
25