For the life of me I can't get my vlan lab working. I keep ending up having to reload both switches after clearing flash:vlan.dat and startup-config. Here's my current problem that's going to lead to me reloading again:
S1#sh ip int br
Interface IP-Address OK? Method Status Protocol
Vlan1 192.168.1.50 YES manual up up
Vlan2 192.168.2.50 YES manual administratively down down
Vlan3 192.168.3.50 YES manual up down
Vlan4 192.168.4.50 YES manual up down
Vlan99 192.168.99.50 YES manual up down
S1#sh vlan
VLAN Name Status Ports
----
1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5, Fa0/7, Fa0/8
Fa0/10, Fa0/11, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
S1(config)#int fa0/6
S1(config-if)#switchport mode trunk
S1(config-if)#switchport access vlan 2
% Access VLAN does not exist. Creating vlan 2
S1(config-if)#int fa0/9
S1(config-if)#switchport access vlan 3
The switch hung here, not even giving me a prompt.
OK; I realize assigning a port to a vlan as well as a trunk is
totally wrong, but I'm not clear what caused it to hang? I can't access the switch again without reloading.
I switched to another computer that has a serial port, so I logged into console to show it rebooting (odd it didn't until I established the console connection though). One back in I created vlan2 again, but sure enough
Switch#sh vlan
VLAN Name Status Ports
----
1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5, Fa0/7, Fa0/8
Fa0/10, Fa0/11, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
What's going on?
[EDIT] A followup:
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/12
Switch(config-if)#swi
Switch(config-if)#switchport modfe
Switch(config-if)#switchport mode
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#swi
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 2
I've hung again. 0/12 is a crossover between the 2 switches.
Console connection was still up on the other computer. That last command put vlan 1 into administratively down???