ANNOUNCEMENT - The community will be down for maintenace this Thursday August 13 from 12:00 AM PT to 02:00 AM PT. As a precaution save your work.
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3354
Views
5
Helpful
4
Replies
Highlighted
Beginner

Uploading/Downloading Cisco IOS on Ubuntu Linux

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
Highlighted

Re: Uploading/Downloading Cisco IOS on Ubuntu Linux

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

Highlighted
Beginner

Re: Uploading/Downloading Cisco IOS on Ubuntu Linux

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.

Highlighted
Collaborator

Re: Uploading/Downloading Cisco IOS on Ubuntu Linux

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**
Highlighted
Hall of Fame Community Legend

Re: Uploading/Downloading Cisco IOS on Ubuntu Linux


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

Content for Community-Ad