What is a good way to upload an cisco IOS image from Ubuntu Linux laptop to cisco router/switches and to download a cisco IOS image from the cisco router/switch to the Ubuntu Linux laptop for making backup of the running IOS image? The upload needs to be done because I want to upgrade the cisco IOS on the router/switch in question remotely and also the download of the IOS from the router/switch to the Linux box will be done on the network.
Install a TFTP server on your Ubuntu and you´ll be ready to go:
sudo apt-get install xinetd tftpd tftp
Create /etc/xinetd.d/tftp and put this entry
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 -R 777 /tftpboot
sudo chown -R nobody /tftpboot
sudo /etc/init.d/xinetd stop
sudo /etc/init.d/xinetd start
On Cisco device you can run copy flash:'file' tftp or copy tftp flash:
-If I helped you somehow, please, rate it as useful.-
I wanted to know if sftp is possible? And also tftp has file size limits. You can't upload the iOS xe images which are 300 to 350 megs.
yes, you can use sftp.
and also the download of the IOS from the router/switch to the Linux box will be done on the network.
Download the IOS from the router/switch to the Linux box? That does not make sense.
If you want the IOS and ensured it's not corrupt, go to the Cisco website and download it.