Cisco 2950 Changing VLAN IP address
Posted on 2004-08-24
I'm looking for some guidance on configuring VLANs and assigning addresses to them...I'm using a Catalyst 2950, with IOS version 12.0 (a little old, I know...)
The switch is configured with 3 VLANs, and VLAN1 has an ip address assigned to it 192.168.2.100. This address is incorrect - it should actually be an address in 192.168.4.x, and it should be assigned to VLAN2.
I did this:
no ip address
ip address 192.168.4.100 255.255.255.0
no ip default-gateway 192.168.2.1
ip default-gateway 192.168.4.1
So - now, when I do 'show config', it still shows interface VLAN1 there with 'no ip address', and interface VLAN2 isn't there at all.
When I do 'show interfaces', it shows interface VLAN1 is up, line protocol is up (but with no IP address) and it shows interface VLAN2 is deleted, line protocol is down. VLAN2 has the correct address, and the default gateway is also changed.
Any ideas what I missed? I really want to have VLAN2 up with the new address, and I don't really care about the VLAN1 interface anymore.