Thursday, September 21, 2017

Ubuntu TFTP

Ubuntu TFTP


Setup a TFTP server, on Ubuntu 8.10, for Cisco device configuration backups.

# Install atftpd
$ sudo apt-get install atftpd

# Configure atftpd as a separate server and modify tftpboot location
$ sudo vim /etc/default/atftpd

Change the following:
USE_INETD=true -> USE_INETD=false
/var/lib/tftpboot -> /srv/tftpboot
Save and exit file.

# Run this command to refresh changes
$ sudo invoke-rc.d atftpd start

# Create and configure tftpboot directory
$ sudo mkdir -p /srv/tftpboot
$ cd /srv
$ sudo chmod -R 777 ./tftpboot
$ sudo chown -R nobody ./tftpboot

# Restart atftpd daemon
$ sudo /etc/init.d/atftpd restart

# Test the configuration from a Cisco device
ciscoasa# copy startup-config tftp

# Verify file transfer from Cisco device
$ ls -l /srv/tftpboot

download file now