Reference Guide
46 Using the CLI
Retrieving an IP Address
By default, the switch receives its IP address dynamically via a DHCP server
for the OOB port interface, although it can also be configured statically. If the
DHCP server is not accessible, the OOB uses the default IP address
192.168.2.1. After a static or DHCP IP address is assigned on the OOB
interface, the default IP address is removed. The in-band IP address can also
be received from a DHCP server or configured statically. This IP address can
be removed at any time.
Receiving an In-Band IP Address from a DHCP Server
When using the DHCP protocol to retrieve an IP address, the device acts as a
DHCP client. When the device is reset, the DHCP command is saved in the
configuration file, but the IP address is not.
To retrieve an IP address from a DHCP server, perform the following steps:
1
Select and connect any port to a DHCP server or to a subnet that has a
DHCP server on it.
2
Type the following commands to use the selected port for receiving the IP
address:
a
Assigning dynamic IP Addresses on a port:
b
Assigning a dynamic IP Addresses on a VLAN:
The interface receives the IP address automatically.
console# configure
console(config)# interface gi0/1
console(config-if)# ip address dhcp
console# configure
console(config)# interface vlan 1
console(config-if)# ip address dhcp










