DGS-6604 ip address
CLI Reference Guide
226
ip address
Use ip address to set a primary or secondary IP address for an interface, or
acquire an IP address on an interface from DHCP. Use the no form of the
command to remove the IP settings configuration from the interface.
ip address {IP-ADDRESS SUBNET-MASK [secondary] | dhcp}
no ip address [IP-ADDRESS SUBNET-MASK]
Default 0.0.0.0/32.
Command Mode VLAN Interface configuration
Usage Guideline Only VLAN interfaces are valid for this command.
An interface can have one primary IP address and multiple secondary IP
addresses. IP processing can be disabled on a particular interface by removing
its IP address with the no ip address command. If the software detects another
host using one of its IP addresses, an error message appears on the console.
The optional secondary keyword allows assignment of multiple secondary
addresses. Secondary addresses are treated like the primary address, except
that the system does not generate datagrams other than a routing update packet
with secondary source addresses. For example, an SNMP trap is always
generated with the primary address. However, the system can respond to a
packet sent to the secondary address.
For now, only VLAN interfaces can be configured by this command.
If a VLAN interface has been configured with static IP address (except 0.0.0.0) or
DHCP, a Layer 3 IP interface is created.
The no ip address command will remove all of the IP settings from the interface.
Example This example (on the next page) shows how to set 10.108.1.27 as the primary
address and 192.31.7.17 and 192.31.8.17 as the secondary addresses for VLAN
100:
Syntax Description
IP-ADDRESS The IP address to configure the interface with.
SUBNET-MASK The mask for the associated IP subnet of the IP address.
secondary (Optional) Specifies that the configured address is a secondary IP address. If
this keyword is omitted, the configured address is the primary IP address.
dhcp Acquire an IP address on an interface from the DHCP protocol.