Configuring the Device to Download the Host Configuration File
To configure the Cisco IOS software to download a host configuration file from a server at startup, complete
the tasks in this section:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
boot host
{
ftp:
[[[
//
[
username
[
:password
]
@
]
location
]
/directory
]
/filename
] |
rcp:
[[[
//
[
username@
]
location
]
/directory
]
/filename
] |
tftp:
[[[
//location
]
/directory
]
/filename
] }
4.
service config
5.
end
6.
copy system:running-config nvram:startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode.
enable
Step 1
Example:
• Enter your password if prompted.
Device> enable
Enters global configuration mode.
configure terminal
Example:
Step 2
Device# configure terminal
Specifies the host configuration file to download at startup,
and the protocol to be used (FTP, RCP, or TFTP):
boot host
{
ftp:
[[[
//
[
username
[
:password
]
@
]
location
]
/directory
]
/filename
] |
rcp:
[[[
//
[
username@
]
location
Step 3
]
/directory
]
/filename
] |
tftp:
[[[
//location
]
/directory
]
/filename
] }
• If you do not specify a host configuration filename,
the device uses its own name to form a host
Example:
configuration filename by converting the name to all
lowercase letters, removing all domain information,
Device(config)# boot host tftp:hostfile1
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.
Enables the system to automatically load the host file upon
restart.
service config
Example:
Step 4
Device(config)# service config
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
178
Managing Configuration Files
Configuring the Device to Download the Host Configuration File