cisco IOS — Configuring the Device to Download the Host Configuration File

Example In the following example, a device is configured to download the host configuration file named hostfile1 and the network configuration file named networkfile1. The device uses TFTP and the broadcast address to obtain the file:

Device# configure terminal Device(config)# boot host tftp:hostfile1 Device(config)# boot system tftp:networkfile1 Device(config)# service config Device(config)# end Device# copy system:running-config nvram:startup-config Managing Configuration Files Configuring the Device to Download the Host Configuration File Command or Action Purpose Device(config)# boot host tftp:hostfile1 converting the name to all lowercase letters, removing all domain information, and appending “-confg.” If no host name information is available, the software uses the default host configuration filename device-confg. If you omit the address, the device uses the broadcast address.

• You can specify more than one host configuration file. The Cisco IOS software tries them in order entered until it loads one. This procedure can be useful for keeping files with different configuration information loaded on a network server. Step 4 service config Example: Device(config)# service config Enables the system to automatically load the host file upon restart. Step 5 end Example: Device(config)# end Exits global configuration mode. Step 6 copy system:running-config nvram:startup-config Example: Device# copy system:running-config nvram:startup-config Saves the running configuration to the startup configuration file. Managing Configuration Files 34