[afnog] VLANs on Cisco Catalyst 2950
Bruce Zamaere
bzamaere at gmail.com
Tue May 30 11:43:28 EAT 2006
Guys,
Sorry I took so long to respond. Anyway here's my configuration again
with the the output of my "sh vlan".
regards,
Bruce.
On 5/26/06, Gaurab Raj Upadhaya <gaurab at lahai.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> On May 26, 2006, at 11:04 AM, Mark Tinka wrote:
>
> > On Friday 26 May 2006 11:56, Patrick Okui wrote:
> >
> >> Well, I deleted the VLAN database before I added the VLANs and
> >> "sh vlan" didn't show me anything I didn't expect.
> >
> > Hmmh... it doesn't really matter to the switch; as long as it has
> > a corresponding entry for a VLAN, in its VLAN database, locally
> > configured on one of its ports, it should work.
>
> We ran into similar problem at one of the previous SANOGs. if you
> have a output of 'sh vlan' can you send it as well. I have a hunch
> it's similar problem.
>
> But i am a bit surprise, because cisco phil and i and one another guy
> spend a whole night trying to fix this, only to do the most unlikely
> thing to fix it :-), so he should have remembered.
>
> In our case, we had to create ISL vlans for each of the dot 1q vlans
> we wanted to associate with the ports. i.e, explicitly create VLAN
> 101, 102 and so on.
>
> Philip says that this shouldn't have been the case with newer IOS,
> but it may be something to do with the older hardware.
>
> 'sh Vlan' please..
>
> thanks
>
>
> -- gaurab
>
>
> /////////////////////////////////////////////////////+9779851038080
> gaurab at lahai dot com
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (Darwin)
>
> iD8DBQFEduPSSo7fU26F3X0RAnbkAKDcwJSB0LL7od4Wri6Yem+Omv7HHACgz4UO
> liyidqHzMJeqt13rSVipMJg=
> =cLMe
> -----END PGP SIGNATURE-----
>
-------------- next part --------------
Switch#sh run
Building configuration...
Current configuration : 1071 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
ip http server
!
line con 0
line vty 5 15
!
!
end
Switch#
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
Switch(vlan)#vtp server
Device mode already VTP SERVER.
Switch(vlan)#vlan 101 name Surgery
VLAN 101 added:
Name: Surgery
Switch(vlan)#vlan 102 name Medicine
VLAN 102 added:
Name: Medicine
Switch(vlan)#vlan 103 name Paeds
VLAN 103 added:
Name: Paeds
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
101 Surgery active
102 Medicine active
103 Paeds active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
101 enet 100101 1500 - - - - - 0 0
102 enet 100102 1500 - - - - - 0 0
103 enet 100103 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/1
Switch(config-if)#switchport access vlan 101
Switch(config-if)#exit
Switch(config)#int fa 0/2
Switch(config-if)#switchpot rt mode access
Switch(config-if)#switchport access vlan 102
Switch(config-if)#exit
Switch(config)#int fa 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 103
Switch(config-if)#exit
Switch(config)#int fa 0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk ?
allowed Set allowed VLAN characteristics when interface is in trunking mode
native Set trunking native characteristics when interface is in trunking
mode
pruning Set pruning VLAN characteristics when interface is in trunking mode
Switch(config-if)#switchport trunk allowed vlan 101-103
Switch(config-if)#exit
Switch(config)#exit
Switch#
00:05:58: %SYS-5-CONFIG_I: Configured from console by console
Switch#sh run
Building configuration...
Current configuration : 1476 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport access vlan 101
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 102
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 103
switchport mode access
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
switchport trunk allowed vlan 101-103
switchport mode trunk
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan101
no ip address
no ip route-cache
shutdown
!
interface Vlan102
no ip address
no ip route-cache
shutdown
!
interface Vlan103
no ip address
no ip route-cache
shutdown
!
ip http server
!
line con 0
line vty 5 15
!
!
end
Switch#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24
101 Surgery active Fa0/1
102 Medicine active Fa0/2
103 Paeds active Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
101 enet 100101 1500 - - - - - 0 0
102 enet 100102 1500 - - - - - 0 0
103 enet 100103 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Switch#
More information about the afnog
mailing list