11-07-2017 09:05 AM - edited 03-01-2019 06:14 PM
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.
11-07-2017 09:44 AM
Hello @prashant1990
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
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 -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.-
11-07-2017 04:20 PM
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.
11-07-2017 05:22 PM
Hi,
yes, you can use sftp.
Thanks
John
11-07-2017 11:44 AM
@prashant1990 wrote:
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide