IP Addressing Commands
78-21075-01 Command Line Interface Reference Guide
If the device is in Layer 3 router mode, it supports multiple IP addresses. The IP
addresses must be from different IP subnets.
If the IP address is configured in Interface context, the IP address is bound to the
interface in that context.
If a static IP address is already defined, the user must do no IP address in the
relevant interface context before changing the IP address.
Example
The following example configures VLAN 1 with IP address 131.108.1.27 and
subnet mask 255.255.255.0.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
43 2
ip address dhcp
Use the ip address dhcp Interface Configuration (Ethernet, VLAN, Port-channel)
mode command to acquire an IP address for an Ethernet interface from the
Dynamic Host Configuration Protocol (DHCP) server. Use the no form of this
command to release an acquired IP address.
Syntax
ip address dhcp
no ip address dhcp
Parameters
N/A
Command Mode
Interface Configuration (Ethernet, VLAN, Port-channel) mode. It cannot be
configured for a range of interfaces (range context).
User Guidelines
This command enables any interface to dynamically learn its IP address by using
the DHCP protocol.
1
interface vlan
ip address
131.108.1.27 255.255.255.0
43
709