Configuring The Dhcp Auto Configuration And Image Update Features; Configuring Dhcp Autoconfiguration (Only Configuration File) - Cisco IE-3000-8TC Software Configuration Manual

Software configuration guide
Hide thumbs Also See for IE-3000-8TC:
Table of Contents

Advertisement

Chapter 4
Assigning the Switch IP Address and Default Gateway

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 configure
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 autoconfiguration of the
TFTP and DHCP settings on a new switch to download a new configuration file.
Command
Step 1
configure terminal
Step 2
ip dhcp poolname
Step 3
bootfile filename
Step 4
network network-number mask
prefix-length
Step 5
default-router address
Step 6
option 150 address
Step 7
exit
Step 8
tftp-server flash:filename.text
Step 9
interface interface-id
Step 10
no switchport
Step 11
ip address address mask
Step 12
end
Step 13
copy running-config startup-config
This example shows how to configure a switch as a DHCP server so that it will download a configura-
tion file:
Switch# configure 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)# exit
Switch(config)# tftp-server flash:config-boot.text
Switch(config)# interface gigabitethernet1/2
Switch(config-if)# no switchport
Switch(config-if)# ip address 10.10.10.1 255.255.255.0
Switch(config-if)# end
OL-13018-03
Purpose
Enter global configuration mode.
Create a name for the DHCP Server address pool, and enter DHCP
pool configuration mode.
Specify the name of the configuration file that is used as a boot image.
Specify the subnet network number and mask of the DHCP address
pool.
The prefix length specifies the number of bits that comprise
Note
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 (/).
Specify the IP address of the default router for a DHCP client.
Specify the IP address of the TFTP server.
Return to global configuration mode.
Specify the configuration file on the TFTP server.
Specify the address of the client that will receive the configuration
file.
Put the interface into Layer 3 mode.
Specify the IP address and mask for the interface.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Cisco IE 3000 Switch Software Configuration Guide
Assigning Switch Information
4-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie 3000

Table of Contents