R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)
24
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] ip address 129.102.0.1 255.255.255.0
[Sysname-GigabitEthernet2/1/1] ip address 202.38.160.1 255.255.255.0 sub
Related commands
• display ip interface
• display ip interface brief
ip address unnumbered
Use ip address unnumbered to configure the current interface as IP unnumbered to borrow an IP address
from the specified interface.
Use undo ip address unnumbered to disable IP unnumbered on the interface.
Syntax
ip address unnumbered interface interface-type interface-number
undo ip address unnumbered
Default
The interface does not borrow IP addresses from other interfaces.
Views
Interface view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies an interface from which the current interface can
borrow an IP address.
Usage guidelines
Typically, you assign an IP address to an interface either manually or through DHCP. If the IP addresses
are not enough, or the interface is used only occasionally, you can configure an interface to borrow an
IP address from other interfaces. This is called IP unnumbered, and the interface borrowing the IP address
is called IP unnumbered interface.
Layer 3 Ethernet interfaces and loopback interfaces cannot borrow IP addresses of other interfaces, but
other interfaces can borrow IP addresses of these interfaces.
Multiple interfaces can use the same unnumbered IP address. If an interface has multiple manually
configured IP addresses, only the primary IP address manually configured can be borrowed.
You cannot enable a dynamic routing protocol on the interface that has no IP address configured. To
enable the interface to communicate with other devices, you must configure a static route to the peer
device on the interface.
Examples
# Configure the tunnel interface Tunnel 0 to borrow the IP address of the interface GigabitEthernet
2/1/1.
<Sysname> system-view
[Sysname] interface tunnel 0 mode gre