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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

2950 - Power cycle issue

Hi All,

I am new to networking but have been working with a small LAN setup with success.

This is my issue:

I am using one 2950 switch along with data converison devices converting incoming serial data to multicast data back to serial data.
For the switch configuration I have chosen to use MVR (Multicast VLAN Registration) assigning ports in a VLAN (Virtual LAN) configuration.

I save the configuration steps using the "copy running-config startup-congfig" command.  So far everthing is working great!

However, when I do a power cycle on the switch the ports become inactive (although the port status LEDs are green).  I know no multicast data is getting through to the devices because there are no data activity LEDs lit up on them.

Performing a "show running-config' on the switch shows that the configuration entries are intact.  To get the LAN setup to work again I have to retype the configuration steps again into the switch.  Can someone help me with this issue?

Thanks.

Regards,

Jeff

Cisco 2950 Switch
IOS Version 12.1(22)EA9
Running Standard Image

24 FastEthernet Ports

37 REPLIES
VIP Super Bronze

2950 - Power cycle issue

Hi Jeff,

Can you post the output of "sh ver" from the switch?

New Member

Re: 2950 - Power cycle issue

Hi Reza,

I will give it a try.

Thanks.

Regards,

Jeff

Purple

Re: 2950 - Power cycle issue

  I would think it is something in your config , if you have ports assigned to a given vlan but that vlan is not created in the vlan database the ports will go into an inactive state .  Not sure what it could be though. Check your vtp status and see if it's in transparent mode and if not change it .

New Member

2950 - Power cycle issue

Hi Glen,

I already have set in the begiining of the configuration to the transparent mode as you have stated.  After reading your reply I went ahead and did a power cycle on the switch. Checking the "show vlan" indicates that the vlans are still active!

Is this the same as the vlan database you mentioned??

Has to be an answer somewhere.

Thanks.

Regards,

Jeff

VIP Super Bronze

2950 - Power cycle issue

Jeff,

Show ver output look ok.  After the switch is rebooted, you have to delete all the existing commands and retype them again in order for Multicast to work again?

Anything in the logs before and after reboot?

You may want to try and load a different version of IOS and see if that solves the issue.

One more thing, can you post "sh run"?

HTH

New Member

Re: 2950 - Power cycle issue

Reza,

After the switch reboots after a power cycle I do not have to delete any commands, I simply retype the commands and all is good again.

As far as the logs you would have to tell how to do this.

The run file is attached.

Thanks.

Regards,

Jeff

Hall of Fame Super Gold

2950 - Power cycle issue

Can you post the output to the command "sh vlan"?

New Member

Re: 2950 - Power cycle issue

Leolaohoo,

Please see the attatchment.  A few things to mention in the document.  The document was generated after a power cycle was performed yesterday.

As you can see the document states the ports that I configured 1,7,13,19,24 are still active yet I have no data output from ports 1, 13, 19!  Disregard port 3 I was trying something.  Still a mystery.

Thanks.

Regards,

Jeff

Bronze

2950 - Power cycle issue

Do you have a layer 3 device to do interVlan routing? I know 2950 is not a layer 3 capable device.

You can communicate on port 7 and 24 because they are on same VLAN, but for other ports you need a Layer 3 device

New Member

2950 - Power cycle issue

Eugen,

I understand that the 2950 is a layer 2 switch.  No, I do not use a layer 3 device, just the switch.  In my particular configuration ports 7 and 24 are assigned to a mvr vlan which have two mvr vlan groups assigned, each with its own multicast address.  These are designated as the "source" ports sending multicast data to three other designated

"receiver " ports on the switch (1, 13 ,19). 

These three ports are assigned to individual vlans each.  Since I am using an MVR profile I can then assign each vlan to whatever mvr vlan group or both that I choose.  What this does is give me isolation from the two multicast data streams available  to each "receiver" port.  I can have a single stream or if I choose, both going out of these ports to my output devices.

Whether this scheme is conventional or not I have tested and tested and it works!!   What I do not understand is why after I do a power cycle (pulling the plug) that I loose mulicast data to my output devices, even though the show running config statrup-config command shows that the configuration of the switch in intact.

Thanks.

Regards,

Jeff

Bronze

2950 - Power cycle issue

Hi Jeff,

Did you check to see if you have more than one config file in flash?

It sounds to me that the switch is got a standard startup config which is loaded at power on, but is not the local file that you save.

Have a look in flash and see if there are more that one startup config file.

Check with "dir flash:" command

Also check with "show boot" command to see which file is used to boot.

If you need to change the boot config file use "set CONFIG_FILE flash: [name of the file in flash]"

Hope this helps

Eugen

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Please understand that I do not have a lot of experience yet.  I think you may be on to something here.  I have enclosed a copy of the BOOT and Flash files as you suggested.  I think there is something missing??  Maybe I am not saving my configuration correctly using the "copy running config - startup config" command??

Thanks.

Regards,

Jeff

Bronze

Re: 2950 - Power cycle issue

When you do save your configuration using "copy running config startup config" by default it saves it in config.text file, but I guess when you reboot the switch it is using the other configuration file.

set the boot to config.text  "boot config-file flash:config.text".

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Things got worse.

Summary:

I looked at the flash directory and it indicated just one config.text file.  Using the more command I opened up the file and my configuration file appeared to be intact.  I performed a boot sytem flash using the image file that was displayed.

What happens now after a power cycle is that I can not eccess the switch using ssh like I have been.  I get the following message: port 22: connection refused.  I have to use the console port to be able to access it.

Looking at the flash directory I now have an added "config.text.renamed" along with "config.text" file.

Any suggestions?

Thanks.

Regards,

Jeff

Bronze

Re: 2950 - Power cycle issue

Hi Jeff,

I dont't understand how you could ssh to the switch when your vty lines are not configured.

I have a 2950 switch in my lab. I will load in your config and see what is wrong.

Eugen

PS. Check the attached file and if you need help with ssh let me know

Cisco Employee

Re: 2950 - Power cycle issue

Jeff and Eugen,

The RSA keys are invalidated if the device's hostname or domain name changes. This could have easily happened: after renaming the config.text to a different filename, the switch booted using the default empty configuration, resulting in change of the hostname to the default of 'Switch' and removal of the domain name. The RSA keypairs may have been invalidated as a result, and thus, the SSH does not work anymore.

Would this explain what you saw here?

Best regards,

Peter

Bronze

2950 - Power cycle issue

Hi Peter,

I had a look at the output of "show run" command that Jeff posted before the changes to config.text file and I don't see any configuration on the vty lines for ssh access.

Initial problem was than when rebooting the switch the configuration will default to a configuration and Jeff had to manually reconfigure the missing commands. Based on that description I assumed that the switch is configured to boot a certain config file, while Jeff was saving to other file. Unfortunately I can't test ssh config as my 2950 does not support ssh, only telnet.

Regards

Eugen

New Member

Re: 2950 - Power cycle issue

Hi Peter,

I must of done this using the copy command.  I replied back to Eugen and will continue on with these issues.

Thanks.

Regards,

Jeff

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

First, thanks for all your help!! 

I will l have to look up info on vty.  As far as accessing the switch, I created the neccassary keys and up to this point was able to access the switch using ssh.  I am not using a Windows environment, I simply access the switch through the CLI and once inside the switch I add the configurfation files.  I will look closely at your document and appears I will have to clear the nvram as you stated and start over.  Hopefully this will allow me to access the switch again using ssh and solve this power cycle issue!!

I will  let you know.

Thanks.

Regards,

Jeff

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Not looking good.  After further testing this is the summary of where I am at now.

This is what I have done:

I deleted the flash:vlan.dat

Erased nvram

I loaded up my configuration again and the system generated a configuration file named config2.txt?  Inside this file is the configuration steps that I entered.  So I figure this is the file that the system is looking for to load?

When I cylce power to the switch I once again get no data to my destination unit. I also now have no access to the switch using ssh like I did before!!.  What I did through the console port was to enter the following command:  "copy flash:config2.txt system:running-config".  What this did is pass the multicast data to the destination units but lost ssh!!

After I do another power cycle I once again have no data.  Running the above command again once again causes the data to output to the destination units.

So through all this I now lost ssh on power cycle.

Enclosed are the flash and boot files.

Thanks.

Regards,

Jeff

Bronze

2950 - Power cycle issue

Hi Jeff,

Can I ask if when you use copy running-config startup-config, do you type a name for the file? or just accept the default value by pressing the Enter key?

If you don't accept the default value then the switch doesn't know where to look if other variables are not set as well.

Please check the nvram as well.

Use this command to move to nvram "cd nvram:" then use "dir" to view contents of nvram and post the output.

I see in your flash boot output that BOOT path-list is empty. Try this command in global config:

Switch(config)# boot system flash:/c2950-i6k2l2q4-mz.121-22.EA10.BIN

The ssh configuration can be done like this:

Change the name and values to suit your neeeds

Switch(config)#ip domain-name yourdomain.com

Switch(config)#username Jeff privilege 15 password 0 cisco

Switch(config)#line vty 0 4

Switch(config-line)#privilege level 15

Switch(config-line)#login local

Switch(config-line)#transport input ssh

Switch(config-line)#exit

Switch(config)#line vty 5 15

Switch(config-line)#priviledge level 15

Switch(config-line)#transport input ssh

Switch(config-line)#login local

Switch(config-line)#exit

Switch(config)#crypto key generate rsa

How many bits in modulus[512] 768

When the key generation is finished, save your configuration.

You can test from a pc with "ssh -l Jeff cisco" or a putty program.

Eugen

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Thanks for the info.

Not much success, however I was able to copy the boot flash file into the path-list.  As far as where I copy the running-config startup-config file is in the defult destination file "startup-config".  I had trouble with configuring the ssh, so I tried it another way.  I was able to capture some files for you to view before and after I power cycle the switch.

In the after power cycle docoument I noticed that the startup-config file is empty under the nvram directory?  Maybe this is a clue??

Couple of notes: Before the power cycle I was able to access the switch using ssh and the data was going to the desination units.  After the power cycle no data getting through and unable to access the switch using ssh.

Thanks.

Regards,

Jeff

Bronze

2950 - Power cycle issue

Hi Jeff,

I had a look at your file and I saw something interesting

The boot paths have flash:/filename.

The paths should be flash:filename  -without forward slash "/"

Try boot switch in ROMmon mode and issue

switch: reset

Then check the paths again with "sh boot", if didn't change you may have to manually set them but don't use the "/", just flash:filename

If all this does not work I am affraid that you may need to delete and copy the IOS again using xmodem.

Let me know how it is going

Eugen

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

I have no experience using the ROMmon feature but looked it up and made an attempt to try it with no success.

However, I was able to copy the BOOT path-list without the "/". 

1) Under the BOOT path-list: Config file:

I do not understand where the config2.txt is coming from but it appears to get created after doing a "copy running -config startup-config" command after I do a reload.  When I do a "copy running-config startup-config" command it appears this is what is loaded into the startup-config file after viewing the same number of bytes as shown in the attachment: '"1929".

Should this file be stated as: "flash:config.text" instead of config2.txt?

I know you are going to ask, what do I mean by a reload?  To renter my configutartion steps again this is what I have done:
After holding the mode switch until all the LEDS turn solid I go to switch >enable

delete flash:vlan.dat

erase startup-config

reload

Enter the initial configuration dialog then follow all the prompts   After the last one that states save this configuration to nvram, I select 2 to save it.

I then log into the switch and add the configuration files.

2) As you can see from the attachment that under the dir nvram: I loose the startup-config file, it empties out after a power cycle.

Thanks.

Regards,

Jeff

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Some questions:

After a power cycle as I stated before, when I look under the "dir nvram:" the startup-config file states 0 bytes.

Why, when I opened up this file it has the configuration files intact yet nothing is working and it states 0?

Where is the "running-config" file, I see no files listed as such.  Is this file being copied to and named this "config2.txt" file that I keep seeing?

Thanks.

Regards,

Jeff

Bronze

Re: 2950 - Power cycle issue

The startup-config file works with config.text by default. In your sh boot output the path to config file is not flash:config.text anymore, it has been chaged to config2.txt. The startup-config in nvram doesn't know where that config2.txt is, because in the path startup-config looks at config.text, and since the path to that file has chnaged, the value will be zero. Also every time you erase nvram that file is 0.

The running-config file reside in RAM, and all the configurations are lost when you reboot the switch, if you don't save them, same as a document on your computer.

You may have to remove that config2.txt and change the path back to config.text

"boot config-file flash:config.text"

Also on your boot output when you save the file it says "Configured from console by rici on consolecopy". I never saw consolecopy, just console or vty. What is consolecopy?

Eugen

Bronze

Re: 2950 - Power cycle issue

Why you select 2 when saving to file?

At this prompt "Destination filename [startup-config]? "

you should just hit Enter key.

I think you need to start fresh again. If you need help let me know.

Eugen

New Member

Re: 2950 - Power cycle issue

Hi Eugen,

Some good news!

Thanks for the good info!!  I deleted that config2.txt and followed your stated command to get back to the right path.  I also started fresh again as you suggested...this time not entering 2 at the Destination filename [startup-config]?  Where the consolecopy came from I have no idea!!.

I now am able to ssh after a power cycle so this is good!!!  I still have no data going to the destination units after a power cycle but I may have isolated where the problem area might be in my configuration.  As stated in the very beginning, I am using Multicast VLAN Registration in my small LAN and have found it to work well in what I am trying to do.  Below is the script for one of those destination units:

cisco2#(config-if)#interface fastethernet0/1

cisco2#(config-if)#switchport mode access

cisco2#(config-if)#switchport access vlan 20

cisco2#(config-if)#mvr type receiver
cisco2#(config-if)#mvr vlan 10 group 239.1.1.3

After I save the configuration (copy running-config startup-config), exit, cycle power, and then re-enter the switch, I retype the first and last lines from above and data now flows to this unit!!  I must be missing something??

Attached are the boot, flash, and nvram directories for a before and after powr cycle.

Thanks.

Regards,

Jeff

Bronze

2950 - Power cycle issue

Hi Jeff,

Thats excelent, well done.

I still see a path in your boot output that has the forward "/" in the path.

"Private Config file:  flash:/private-config.text"

Maybe try to change this one as well and hope that will solve your 2 commands not saving in startup-config

I don't realy know why those commands are lost after a reboot, it could be just the way the switch works with ports assigned to multicast groups.

Eugen

1943
Views
0
Helpful
37
Replies