Uploading/Downloading Cisco IOS on Ubuntu Linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2017 05:22 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
