R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)
121
You cannot assign secondary IP addresses to an interface that obtains an IP address through BOOTP,
DHCP, PPP address negotiation, or IP unnumbered.
The undo ip address command removes all IP addresses from the interface. The undo ip address
ip-address {mask | mask-length } command removes the primary IP address. The undo ip address
ip-address { mask |mask-length } sub command removes a secondary IP address. Before removing the
primary IP address, remove all secondary IP addresses.
The primary and secondary IP addresses you assign to the interface can be located on the same
network segment, but different interfaces on your device must reside on different network segments.
Examples
# Assign Ethernet 1/1 a primary IP address 129.102.0.1 and a secondary IP address 202.38.160.1 with
the subnet masks both 255.255.255.0.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] ip address 129.102.0.1 255.255.255.0
[Sysname-Ethernet1/1] ip address 202.38.160.1 255.255.255.0 sub
Related commands
display ip interface
ip address unnumbered
Use ip address unnumbered to configure the current interface as IP unnumbered to borrow an IP address
from another 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
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies an interface from which the current interface can
borrow an IP address.
Examples
# Configure the interface Serial 2/2 to borrow the IP address of the interface Ethernet 1/1.
<Sysname> system-view
[Sysname] interface serial 2/2
[Sysname-Serial2/2] ip address unnumbered interface ethernet 1/1










