R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

21
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A
3. Specify the current interface to
borrow the IP address of the
specified interface.
ip address unnumbered interface
interface-type interface-number
The interface does not borrow IP
addresses from other interfaces by
default.
Configuration example
Network requirements
As shown in Figure 9, two routers on an intranet are connected to each other through serial interfaces
across a Digital Data Network (DDN), and they each connect to a LAN through Ethernet interfaces.
To save IP addresses, configure the serial interfaces to borrow IP addresses from the Ethernet interfaces.
Figure 9 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
# Create a route to the subnet attached to Router B, specifying interface Serial 2/1/1 as the output
interface.
[RouterA] ip route-static 172.16.20.0 255.255.255.0 serial 2/1/1
2. Configure Router B:
# Assign a primary IP address to GigabitEthernet 2/1/1.