Configuring DHCP Auto-Image Update (Configuration File and Image)
Configuring DHCP Auto-Image Update (Configuration File and Image)
This task describes DHCP autoconfiguration to configure TFTP and DHCP settings on an existing device to
support the installation of a new switch.
Before you begin
You must first create a text file (for example, autoinstall_dhcp) that will be uploaded to the device. In the text
file, put the name of the image that you want to download (for example, cat9k_iosxe.16.xx.xx.SPA.bin).
SUMMARY STEPS
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. tftp-server flash: imagename.bin
13. tftp-server flash: filename.txt
14. interface interface-id
15. no switchport
16. ip address address mask
17.
18. copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Device# configure terminal
Step 2
ip dhcp pool poolname
Example:
Device(config)# ip dhcp pool pool1
Step 3
boot filename
Example:
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
62
configure terminal
ip dhcp pool poolname
boot filename
network network-number mask prefix-length
default-router address
option 150 address
option 125 hex
copy tftp flash filename.txt
copy tftp flash imagename.bin
exit
tftp-server flash: config.text
end
Performing Device Setup Configuration
Purpose
Enters global configuration mode.
Creates a name for the DHCP server address pool and enter
DHCP pool configuration mode.
Specifies the name of the file that is used as a boot image.