26-7
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 26 Working with Configuration Files
Working with Configuration Files on the Switch
•
If you are accessing the switch through the console or a Telnet session without a valid username,
make sure that the current rcp username is the one you want to use for the rcp download. You can
enter the
show users
command to view the current valid username. If you do not want to use the
current username, create a new rcp username using the
set rcp username
command. The new
username will be stored in NVRAM. If you are accessing the switch through a Telnet session with
a valid username, this username will be used and there is no need to set the rcp username.
Configuring the Switch Using a File on an rcp Server
To configure a Catalyst 6000 family switch using a configuration file downloaded from an rcp server,
perform these steps:
Step 1
Copy the configuration file to the appropriate rcp directory on the workstation.
Step 2
Log into the switch through the console port or a Telnet session.
Step 3
Configure the switch using the configuration file downloaded from the rcp server using the
copy rcp
config
command. Specify the IP address or host name of the rcp server and the name of the file to
download.
The configuration file downloads and the commands are executed as the file is parsed line-by-line.
This example shows how to configure a Catalyst 6000 family switch using a configuration file
downloaded from an rcp server:
Console> (enable)
copy rcp config
IP address or name of remote host []?
172.20.52.3
Name of file to copy from []?
dns-config.cfg
Configure using rcp:dns-config.cfg (y/n) [n]?
y
/
Finished network download. (134 bytes)
>>
>> set ip dns server 172.16.10.70 primary
172.16.10.70 added to DNS server table as primary server.
>> set ip dns server 172.16.10.140
172.16.10.140 added to DNS server table as backup server.
>> set ip dns enable
DNS is enabled
>> set ip dns domain corp.com
Default DNS domain name set to corp.com
Console> (enable)
Uploading Configuration Files to an rcp Server
These sections describe how to upload the running configuration or a configuration file stored on a Flash
device to an rcp server:
•
Preparing to Upload a Configuration File to an rcp Server, page 26-8
•
Uploading a Configuration File to an rcp Server, page 26-8