cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6690
Views
5
Helpful
4
Replies

Uploading/Downloading Cisco IOS on Ubuntu Linux

prashant1990
Level 1
Level 1

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.

4 Replies 4

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.-

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.

Hi,

yes, you can use sftp. 

  • enable scp on the switch using command "ip scp server enable"
  • install and configure ssh server  on Ubuntu
  • configure a user account on Ubuntu
  • copy ios image to home folder of Ubuntu user account
  • use Ubuntu user account on copy ios image to/from switch

Thanks

John

**Please rate posts you find helpful**

Leo Laohoo
Hall of Fame
Hall of Fame

@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.