Im trying to setup VLan's to learn about them for the ccna exam ... and I have a Cisco 1700 router connected to a cisco 2950 switch. Here's my problem.
I went to setup a vlan and noticed that vlan1 was there and all ports assigned to it.
So I created another vlan and then went to bring it up and got disconnected:
Switch2(config)#interface vlan 2
Switch2(config-if)#no ip address
Connection closed by foreign host.
I can no longer telnet into this switch via the ip address I had set... and can't ping that IP, hwoever I can still ping the machines on the switch.
I'm working remotly from this switch, is it possible to revert the change or regain telnet access?
Firstly your 2950 switch is a layer 2 switch only so you can only have one L3 vlan interface (SVI) active at any one time on the switch. Note you can have multiple L2 vlans just not L3 interface.
By default all ports will be in vlan 1 and there will be a vlan 1 interface on the switch. This vlan interface is used for managing the switch, it does not affect the traffic going through the switch.
The IP address you had set - was this attached to the vlan 1 interface ?. When you tried to bring up the vlan 2 interface did you shut down the vlan 1 interface ?
Looks like you were trying to create another vlan at Layer 2.
Switch2(config)# vlan 2
Switch2(config-vlan)# name v2
The above would create a vlan at L2 and you could assign ports to vlan 2. But you would still need to have a L3 interface for vlan 2.
Does this make sense. It is about the key difference between a L2 vlan and a L3 interface for that vlan. The commands you were using were to create a L3 interface and the fact you are not going to be giving it an IP address suggests you only wanted to create a L2 vlan.