3-13
Cisco IE 3010 Switch Software Configuration Guide
OL-23145-01
Chapter 3 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
This example shows how to configure a switch as a DHCP server so it downloads a configuration file:
Switch# config terminal
Switch(config)# ip dhcp pool pool1
Switch(dhcp-config)# network 10.10.10.0 255.255.255.0
Switch(dhcp-config)# bootfile config-boot.text
Switch(dhcp-config)# default-router 10.10.10.1
Switch(dhcp-config)# option 150 10.10.10.1
Switch(dhcp-config)# option 125 hex
0000.0009.0a05.08661.7574.6f69.6e73.7461.6c6c.5f64.686370
Switch(dhcp-config)# exit
Switch(config)# tftp-server flash:config-boot.text
Switch(config)# tftp-server flash:c-ipservices-mz.122-44.3.SE.tar
Switch(config)# tftp-server flash:ies-lanbase-tar.122-44.EX.tar
Switch(config)# tftp-server flash:boot-config.text
Switch(config)# tftp-server flash: autoinstall_dhcp
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# no switchport
Switch(config-if)# ip address 10.10.10.1 255.255.255.0
Switch(config-if)# end
Configuring the Client
Beginning in privileged EXEC mode, follow these steps to configure a switch to download a
configuration file and new image from a DHCP server:
Step 8 copy tftp flash filename.txt Upload the text file to the switch.
Step 9 copy tftp flash imagename.tar Upload the tar file for the new image to the switch.
Step 10 exit Return to global configuration mode.
Step 11 tftp-server flash:config.text Specify the Cisco IOS configuration file on the TFTP server.
Step 12 tftp-server flash:imagename.tar Specify the image name on the TFTP server.
Step 13 tftp-server flash:filename.txt Specify the text file that contains the name of the image file to download
Step 14 interface interface-id Specify the address of the client that will receive the configuration file.
Step 15 no switchport Put the interface into Layer 3 mode.
Step 16 ip address address mask Specify the IP address and mask for the interface.
Step 17 end Return to privileged EXEC mode.
Step 18 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 boot host dhcp Enable autoconfiguration with a saved configuration.
Step 3 boot host retry timeout timeout-value (Optional) Set the amount of time the system tries to
download a configuration file.
Note If you do not set a timeout the system will
indefinitely try to obtain an IP address from the
DHCP server.