cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1457
Views
5
Helpful
19
Replies

Reconfigure Cisco 2960

jessnew321
Level 1
Level 1

I have a 2960C switch which I would like to reconfigure. Currently, the management vlan is on vlan 1 and I would prefer to to have it on another vlan (as per best practices). I have tried unsuccessfully to move the ip address from vlan 1 and think the best way forward is to reset the switch. The switch ios has been upgraded to version 15.

My question is; is there a way to to clear the configuration on this switch but keep its current ios version? The switch came with version 12. I believe this can be done on catOS switches but is there a way to do it on ios?

Am I missing a very simple way to accomplish what I want? I am trying to avoid having to flash the switch again but I'd really like to configure the switch conforming to best practices.

19 Replies 19

Charles Hill
VIP Alumni
VIP Alumni

Hello jessnew321,

To clear the config along with the vlans, enter the following commands.

write erase

&

delete flash:vlan.dat

 

This will not affect the ios.

 

Hope this helps.

Please rate helpful posts.

Thanks.

Thank you Charles.

After running those commands the switch will behave as an un-configured switch, i.e. I will have to configure ssh, etc.?

Yes, the switch will be reset to the default config. 

But as Madhukrishnan has stated, if you just want to move an ip address from one vlan to another, the switch doesn't need to be defaulted.

I will try moving the ip address again. I did this a few times to no avail. I must be doing something incorrectly.

As soon as I set it up I'll let everyone know whats happening.

Thanks

To which vlan you are trying to move the configuration?

Do you have a L2 vlan configured for that ?

Also how is you set up? How many vlans are in this switch? 

I am guessing you may not be allowing the vlan over the connection to your router.

 

Thanks

Madhu

I'm trying to move the management vlan 1 to vlan 99. I created vlan 99, it is up and active.

At the moment I'm using it for wired connectivity to a laptop, so it works, but when I move the ip address of vlan 1 (192.168.1.2/24) to vlan 99 the link does not connect to the router (192.168.1.1/24) even when I have the router set as the default gateway or gateway of last resort to  0.0.0.0

Currently, I have vlan 1-5 and vlan 99 configured on the switch.

The way I understand it, you cannot just configure the same ip address from vlan 1 to vlan 99 b/c the subnet already exist on vlan 1. When I remove the ip address I lose connectivity to the device.

This is what I experience also when I try to just move the ip address. Hence, the reason why I wanted to reset the switch but with the current ios version intact.

Have a look at this, toward the bottom (More Complex Changes) he discusses what I am experiencing.

http://wozney.ca/2010/04/01/how-to-change-the-ip-address-or-management-vlan-of-a-device-remotely/

Hope posting a link is ok.

 

It's best to connect via a console connection,as said. You can then configure the new SVI.

You must be using ROAS, as such VLAN 99 will need configuring on the router.

Martin

Hi Martin, I'm not using ROAS. I am using static inter vlan routing on the 2960C (remember the inter-vlan post from last week).

Anyways, I will connect via console. What seems to happen is when I move the ip address to vlan 99 I lose the ability to communicate with the router and I don't know why. It could have something to do with moving the management and/or native vlan to a new vlan. I tried it once with a trunk line to the router but still no joy. I did not check if I was allowing vlan 99 traffic across the trunk or expressly permit it. Maybe that's the problem.

I will dig a little deeper. Then again I may just reconfigure the switch as I don't mind doing that as long as I don't have to flash the ios again.

Thanks again.

Hey Jessnew321,

When you get a minute, can you do a show run int gx/x on the switch and the router interface and paste the output so I can get a better understanding of what is happening? 

 

Just to confirm,

You are consoled in?

You are adding a route to vlan 99 on the router?  Since you are not doing router on a stick.

Or are you assigning the vlan 99 ip address on the router interface?

 

Thanks.

Hi Charles,

On the router I have a static route set up pointing back to the vlan 99 network via a next-hop of my router (192.168.1.1). This works when the management vlan is vlan 1 but when I put it on vlan 99 on the switch, nothing.

I am going to try the move again a little later this morning and will post the configs.

Thanks - Jesse

Hi, didn't realise you were the same poster.

Now I know this, the problem is you need to assign the interface on the switch connecting the router to VLAN 99.

Martin

Assuming you mean assign the interface on the switch an ip address, correct? I've done that but nothing gets through.

I am going to give it a go a little later and will post what's happening.

Thanks - Jesse

No, that interface will have to be in VLAN 99.

Martin