Exporting your config from a Cisco device to a TFTP server

categories:

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://192.168.1.1/switch1-confg Address or name of remote host [192.168.1.1]? 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!


Did you find an issue in this article?

- click on the following Github link
- log into Github with your account
- click on the line number containing the error
- click on the "..." button
- choose "Reference in new issue"
- add a title and your comment
- click "Submit new issue"

Your feedback is much appreciated! πŸ€œπŸΌπŸ€›πŸΌ

You can also drop me a line below!