B-12
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Appendix B Working with the IOS File System , Configura tion Files, an d Software Ima g es
Working w ith Configuration Files

Downloading the Configuration File By Using TFTP

To configure the switch by using a configuration file downloaded from a TFTP server, follow these
steps:
Step 1 Copy the configurat ion file to the app ropri ate TFT P director y on the work station .
Step 2 Verify that the TFTP ser ver is p roperly conf igured by ref erring to the Preparing t o Dow nload or Uplo ad
a Configuration Fi le By Using TFTP sec tion on page B-11.
Step 3 Log in to t he s wit ch t h rou gh t he conso le por t or a Telnet sess ion.
Step 4 Download the configuration file from the TFTP server to configure the switch.
Specify th e IP address or host na me of the TFT P server and the name of t he file to downloa d.
Use one of t hese privil eged EX EC comm ands:
copy tftp:[[[//location]/directory]/filename] system:running-config
copy tftp:[[[//location]/directory]/filename] nvram:startup-config
The configuration file downloads, and the commands are executed as the file is parsed line-by-line.
This ex amp le sho ws how to configur e the soft war e from the f ile tokyo-confg at IP address 172.16.2.155:
Switch# copy tftp://172.16.2.155/tokyo-confg system:running-config
Configure using tokyo-confg from 172.16.2.155? [confirm] y
Booting tokyo-confg from 172.16.2.155:!!! [OK - 874/16000 bytes]

Uploading the Configuration File By Using TFTP

To upload a configuration file from a switch to a TFTP server for storage, follow these steps:
Step 1 Verify that the TFTP ser ver is p roperly conf igured by ref erring to the Preparing t o Dow nload or Uplo ad
a Configuration Fi le By Using TFTP sec tion on page B-11.
Step 2 Log in to t he s wit ch t h rou gh t he conso le por t or a Telnet sess ion.
Step 3 Upload the switch co nfiguration t o the TFTP server. Specify the IP addre ss or host name of the TFTP
server and the destination filename.
Use one of t hese privil eged EX EC comm ands:
copy system:running-config tftp:[[[//location]/directory]/filename]
copy nvram:startup-config tftp:[[[//location]/directory]/filename]
The file is uploade d to the TFT P server.
This example shows how to upload a c onfiguration file from a switch to a TFT P server:
Switch# copy system:running-config tftp://172.16.2.155/tokyo-confg
Write file tokyo-confg on host 172.16.2.155? [confirm] y
#
Writing tokyo-confg!!! [OK]