ip address
Function
The ip address command configures an IP address for an interface.
The undo ip address command deletes an IP address from an interface.
By default, no IP address is configured for an interface.
Format
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
Parameters
Parameter |
Description |
Value |
---|---|---|
ip-address { mask | mask-length } |
Specifies the IP address of an interface.
|
|
sub |
Configures a secondary IP address for an interface. |
- |
Usage Guidelines
Usage Scenario
The ip address command configures IP addresses for interfaces on the wireless access controller so that the wireless access controller can communicate with different network segments. To connect an interface to multiple network segments, configure multiple IP addresses for the interface. Among these IP addresses, one is the primary IP address and the others are secondary IP addresses. If you configure a new primary IP address for the interface, the new IP address overrides the original one.
- The undo ip address command deletes all IP addresses from an interface.
- The undo ip address ip-address { mask | mask-length } command deletes the primary IP address of an interface.
- The undo ip address ip-address { mask | mask-length } sub command deletes a secondary IP address.
Precautions
You must delete all secondary IP addresses before deleting the primary IP address.
Example
# Configure a primary IP address 192.168.0.1 and a secondary IP address 10.38.160.1 for VLANIF100, with subnet mask 255.255.255.0.
<AC6605> system-view [AC6605] interface vlanif 100 [AC6605-Vlanif100] ip address 192.168.0.1 255.255.255.0 [AC6605-Vlanif100] ip address 10.38.160.1 255.255.255.0 sub