Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore a Cisco Nexus Switch from loader prompt

(view in My Videos)

 

This videos shows how to restore a Cisco Nexus 5000/2000 series or Cisco Nexus 3000 series switch from the loader> prompt.

 

Summary steps:

-load kickstart from TFTP server, when not present on bootflash:

-copy kickstart and system images from a TFTP/FTP server

-load system image

-finish the install with install all

22 Comments
Community Member

Hi, 

 

I am facing a problem, I am using the tftpd64 TFTP server and trying to load my image to the N6K. It loads the image, Put right in the end it gives me this comment : TFTP ERROR 0 ( CODE ERROR) 

So I am stuck in that, tried to change setting so many times, and I noticed in the TFTP server log views that there is a block Ack#d....

Any idea what to do?

Your help will be appreciated

Thanks, 

A

Community Member

Thanks for the info. Helped me.

Community Member

Terrific, very helpful!

Thanks,

Community Member

I connected to mgmt0 port, changed IP & GW at loader.  But still can't get file to upload.  Im not able to ping my Mac to mgmt0 IP.  Is there something I'm missing?

 

thanks

 

Cisco Employee

I am also having the same issue with N5K, not able to ping the mgmt0 from my laptop where the tftp srv.

What is the problem? did you find any solution?

Thanks,

Hani 

Community Member

Hi

 

 

 

Community Member

i've recently faced this issue, so i'm posting the walkthrough in TXT. hope this helps.

 

Community Member

thanks

 

Community Member

Hello, 

        I'm getting the same error trying to tftp the image to a 5548. It loads the image, but in the end it gives error: TFTP ERROR 0 ( CODE ERROR).

Were you able to solve this issue? 

Community Member

Did you ever figure out what this issue was?  I'm at the loader prompt and was able to set the IP,GW and mask but am unable to ping mgmt0 as well.  

Community Member

its been a long time since you posted, but maybe if you try by FTP ( bin mode). Its faster and easier.

Must be in ftp bin mode, otherwise the image might get corrupted.

Community Member

Hi, 

I was getting the TFTP ERROR 0 ( CODE ERROR) when connecting the switch locally to my PC and using TFTP64. I ultimately ended up connecting the nexus 5548 to our production network and tftp'ing the image from our solarwinds server running on window 2008 and was able to successfully load the image onto the switch. I couldn't speak to why it worked from the solarwinds server and not my windows PC, perhaps something w/the security settings on my PC. Hope this helps. 

Community Member

Hi,

mgmt0 when in loader prompt is not reachable by ICMP. Until you use tftp command you will not even see MAC address behind port where mgmt0 is connected. It's normal situation

Ondrej

Community Member

I faced issue on my N5k when I got into boot prompt.

The mgmt0 IP address was unchanged and same as I set in loader prompt but tftp and telnet still showed "Network is unreachable".

To resolve this I jumped to configuration mode and configured IP address and default gateway one more time using exact the same values as before.

Hope this helps someone.

Community Member

hi lucient,

i am facing the same problem. the nexus 7000 boot from loader>

i have follow this step but find error like this :

loader> boot tftp://172.16.1.1/n7000-s2-kickstart.6.2.14.bin                   
Found i82576 [3:0.0] at 0x2020, ROM address 0x7d80
Probing...[i82576]
Management port
Ethernet addr: E4:C7:22:16:D1:A8
Link UP in 1000/full mode
Address: 172.16.1.2
Netmask: 255.255.255.0
Server: 0.0.0.0
Gateway: 172.16.1.1
Address: 172.16.1.2
Netmask: 255.255.255.0
Server: 0.0.0.0
Gateway: 172.16.1.1
Address: 172.16.1.2
Netmask: 255.255.255.0
Server: 172.16.1.1
Gateway: 172.16.1.1
 Filesystem type is tftp, using whole disk
Booting: /n7000-s2-kickstart.6.2.14.bin console=ttyS0,9600n8nn quiet loader_ver
="4.1.9"....
...............................................................................
..............................Retry 1: Congestion or cable issue
Retry 1: Congestion or cable issue
Retry 1: Congestion or cable issue
Retry 1: Congestion or cable issue
Retry 1: Congestion or cable issue

need your advice thanks

Community Member

Did you able to resolve you issue??? I do have the same problem. It got stuck in booting mode and not moving forward. Any suggestions please.

Community Member

Hi Lucien,

I trying to recover the image from TFTP server, when i ran the boot from TFTP server it got stuck in booting prompt. I waited like half hour but no luck. Any suggestions please.

How do i know is it really booting or it got stuck here???

loader> boot tftp://10.1.220.254/TFTP/n5000-uk9-kickstart.5.2.1.N1.8b.bin
Address: 10.1.220.253
Netmask: 255.255.255.0
Server: 10.1.220.254
Gateway: 10.1.220.254
Booting: /TFTP/n5000-uk9-kickstart.5.2.1.N1.8b.bin console=ttyS0,9600n8nn quiet
 loader_ver="pr-1.3"....

Community Member

hi my nexus got stuck in loader promt ..i dont have the image s tried to download it from cisco website asking for contract details which i dont have ..i gave sn no looks like warrenty is expired 

please can some body provide the images it will be helpfull for me 

Thanks 

Community Member

I'm having this same issue. I just put the laptop in the rack and hope it resolves itself overnight.

Did you ever come to a conclusion on this?

Community Member

I'm having a different issue now, but this problem was caused by having the port my laptop and mgmt port set to "switchport mode trunk" instead of "switchport access vlan ##".

Community Member

Hi All,

 

Here is the solution and checks if you face tftp get operation failed at switch(boot).

 

>If your device in switch (boot) and you are trying to copy the image from TFTP server .

  Check the ping rechablity between your device and TFTP server (In loader prompt ping wont work    whereas in switch(boot) it will work. 

>Check the path between the device and TFTP server, Make sure no issues in the path. 

++++++++++++

ON DEVICE:

++++++++++++

>Check the Ip address ---->switch(boot)#sh ip

>Check the mgmt 0 int status---> switch(boot)#sh int

  >>If Mgmt 0 down, goto configuration mode and enable it

     >>>switch(boot)#conf ter

     >>>switch(boot)#int mgmt 0

     >>>switch(boot)#no shut

>Try to copy the code, If you still facing the tftp get operation failed

 >>Check the default gateway and enable routing

     >>>switch(boot)#conf ter

     >>>switch(boot)#ip default-gateway X.X.X.X

     >>>switch(boot)#ip routing

 >Try to copy the code now, It will work.

Community Member

I got the same issue because the 3548-X has no kickstart or image. Does anyone know if you can use the usb1: or usb2: to boot the kickstart from loader mode? Or with a 3K is TFTP is the only way to boot the kickstart is though TFTP?

10896
Views
25
Helpful
22
Comments