IP Addressing Commands
OL-32830-01 Command Line Interface Reference Guide
switchxxxxxx(config)#
switchxxxxxx(config-if)# ip address 131.108.1.27 255.255.255.0
Example 2. The following example configures 3 overlapped IP addresses.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config)#
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config)#
are you sure? [Y/N]Y
switchxxxxxx(config)#
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config)#
are you sure? [Y/N]Y
switchxxxxxx(config)#
22.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
interface vlan
1
interface vlan
1
1.1.1.1 255.0.0.0
ip address
exit
2
interface vlan
1.2.1.1 255.255.0.0
ip address
This IP address overlaps IP address 1.1.1.1/8 on vlan1,
exit
interface vlan
3
1.3.1.1 255.255.0.0
ip address
This IP address overlaps IP address 1.1.1.1/8 on vlan1,
exit
22
452