ip address

Use this command to set, remove, or disable a primary or secondary IP address for an interface.

Syntax

ip address {ip-address ip-mask | ip-address/prefixLength} [primary | secondary | management]
no ip address {ip-address ip-mask | ip-address/prefixLength}

Parameters

ip-address ip-mask | ip-address/prefixLength Specifies the IP address and IP mask or IP address and prefix length of the interface to be added or removed.
ip-mask Specifies the mask for the associated IP subnet.
primary (Optional) Specifies that the configured IP address is a primary address.
secondary (Optional) Specifies that the configured IP address is a secondary address.
management (Optional) Specifies that the configured IP address is a management address.

Defaults

If either secondary or management is not specified, the configured address will be the primary address for the interface.

Mode

Configuration command, Interface configuration.

Usage

Only a single primary address is configurable. A secondary IP address cannot be added until a primary IP address exists. A primary address can be changed without removing all the secondary addresses by using the primary keyword. A primary IP address cannot be removed until all secondaries are removed. If an attempt is made to change the primary with the primary keyword, a message displays to make sure that is the intended action. If an attempt to enter a secondary address without the secondary keyword being entered is made, a message confirming the intent to change the primary address will display, the primary will not be accidentally overwritten.

Each Extreme Networks S- K- and 7100-Series routing module or Standalone device supports up to 256 IP VLAN routing interfaces, 21 Loopback interfaces, with up to 128 secondary addresses (2000 maximum per router) allowed for each primary IP address.

See ipv6 address for IPv6 address configuration command information.

The “no” form of this command removes the specified IP address and disables the interface for IP processing for removed IP addresses. If a primary or secondary IP address is still present, processing will continue for those IP addresses. The interface can only be disabled using the no shutdown command.

Example

This example sets the IP address to 192.168.1.1 and the network mask to 255.255.255.0 for VLAN 1 as a primary address:

System(rw)->
System(rw)->configure
System(rw-config)->interface vlan.0.1
System(rw-config-intf-vlan.0.1)->ip address 192.168.1.1 255.255.255.0