You can assign at most two IP address to an interface, among which one is the primary IP address
and another is secondary IP addresses. A newly specified primary IP address overwrites the
previous one if there is any.
The primary and secondary IP addresses of an interface cannot reside on the same network
segment; the IP address of a VLAN interface must not be on the same network segment as that of
a loopback interface on a device.
A VLAN interface cannot be configured with a secondary IP address if the interface has been
configured to obtain an IP address through BOOTP or DHCP.
Displaying and Maintaining IP Addressing
Display information about a specified
or all Layer 3 interfaces
Display brief configuration information
about a specified or all Layer 3
interfaces
IP Address Configuration Examples
IP Address Configuration Example I
Network requirement
As shown in
Figure
Switch.
Figure 1-3 Network diagram for IP address configuration
PC
Configuration procedure
# Configure an IP address for VLAN-interface 1.
<device> system-view
[device] interface vlan-interface 1
[device-Vlan-interface1] ip address 129.2.2.1 255.255.255.0
To do...
1-3, assign IP address 129.2.2.1 with mask 255.255.255.0 to VLAN-interface 1 of
Console Cable
Use the command...
display ip interface [ interface-type
interface-number ]
display ip interface brief
[ interface-type [ interface-number ] ]
Switch
1-4
Remarks
Available in any
view