4-11
Catalyst 2950 and Catalyst 2955 Switch Software Configuration Guide
OL-10101-02
Chapter 4 Assigning the Switch IP Address and Default Gateway
Assigning Switch Information
Note The configuration file that is downloaded from TFTP is merged with the switches existing configuration
in the running configuration and is not saved in the NVRAM unless the configuration write memory or
copy running-configuration startup-configuration command is entered. Note that if the configuration
downloaded is saved in to the startup-configuration, the feature is not triggered during subsequent
system restarts.
Configuring DHCP-Based Autoconfiguration with a saved configuration
Beginning in privileged EXEC mode, follow these steps to configure DHCP-based autoconfiguration
with a saved configuration:
This example uses a Layer 3 SVI interface on VLAN 99 to enable DHCP-based autoconfiguration with
a saved configuration:
Switch# configure terminal
Switch(conf)# boot host dhcp
Switch(conf)# boot host retry timeout 300
Switch(conf)# banner config-save ^C Caution - Saving Configuration File to NVRAM May Cause
You to Nolonger Automatically Download Configuration Files at Reboot^C
Switch(config)# vlan 99
Switch(config-vlan)# interface vlan 99
Switch(config-if)# no shutdown
Switch(config-if)# end
Switch# show boot
BOOT path-list:
Config file: flash:/config.text
Private Config file: flash:/private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
Timeout for Config
Download: 300 seconds
Config Download
via DHCP: enabled (next boot: enabled)
Switch#
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.
Step 4 banner config-save ^C warning-message ^C (Optional) Create warning messages to be displayed
when you try to save the configuration file to NVRAM.
Step 5 end Return to privileged EXEC mode.
Step 6 show boot Verify the configuration.