Exporting your config from a Cisco device to a TFTP server


This has been tested under Ubuntu and a Cisco switch model Catalyst 2950 (IOS 12.1)

1. Set up your TFTP server

$ sudo apt-get install xinetd tftpd tftp

$ sudo vi /etc/xinetd.d/tftp

service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no }

$ sudo mkdir /tftpboot $ sudo chmod 777 /tftpboot $ sudo chown nobody /tftpboot

$ sudo /etc/init.d/xinetd start

2. Dump your config file from the Cisco switch to your TFTP directory

switch1#copy system:running-config tftp:// Address or name of remote host []? Destination filename [switch1-confg]? !! 3028 bytes copied in 1.976 secs (1532 bytes/sec)

3. We make sure the file is on the TFTP server

user@ubuntu:/tftpboot$ ls -l total 20 -rw——- 1 nobody nogroup 3028 2007-07-09 17:39 switch1-confg

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!