3-11
Cisco IE 3010 Switch Software Configuration Guide
OL-23145-01
Chapter 3 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
ip host switchc 10.0.0.23
ip host switchd 10.0.0.24
DHCP Client Configuration
No configuration file is present on Switch A through Switch D.
Configuration Explanation
In Figure 3-3, Switch A reads its configuration file as follows:
It obtains its IP address 10.0.0.21 from the DHCP server.
If no configuration filename is given in the DHCP server reply, Switch A reads the network-confg
file from the base directory of the TFTP server.
It adds the contents of the network-confg file to its host table.
It reads its host table by indexing its IP address 10.0.0.21 to its hostname (switcha).
It reads the configuration file that corresponds to its hostname; for example, it reads switch1-confg
from the TFTP server.
Switches B through D retrieve their configuration files and IP addresses in the same way.
Configuring the DHCP Auto Configuration and Image Update Features
Using DHCP to download a new image and a new configuration to a switch requires that you con figure
at least two switches: One switch acts as a DHCP and TFTP server. The client switch is configured to
download either a new configuration file or a new configuration file and a new image file.

Configuring DHCP Autoconfiguration (Only Configuration File)

Beginning in privileged EXEC mode, follow these steps to configure DHCP autoconfigurat ion of the
TFTP and DHCP settings on a new switch to download a new configuration file.
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 ip dhcp poolname Create a name for the DHCP Server address pool, and enter DHCP
pool configuration mode.
Step 3 bootfile filename Specify the name of the configuration file that is used as a boot image.
Step 4 network network-number mask
prefix-length
Specify the subnet network number and mask of the DHCP addr ess
pool.
Note The prefix length specifies the number of bits that comprise
the address prefix. The prefix is an alternative way of
specifying the network mask of the client. The prefix length
must be preceded by a forward slash (/).
Step 5 default-router address Specify the IP address of the default router for a DHCP client.
Step 6 option 150 address Specify the IP address of the TFTP server.
Step 7 exit Return to global configuration mode.
Step 8 tftp-server flash:filename.text Specify the configuration file on the TFTP server.