05-26-2009 12:16 PM - edited 03-06-2019 05:56 AM
I've noticed in my L2 2960 Cisco switch that you can configure a VLAN by typingg in (from global config mode):
vlan #
or
int vlan #
My question is, why is there these two options?
I can assign a name to my VLAN when i type in
vlan 20
name (name)
but not when I go
interface vlan 20
name (name)
unrecognized command.
So my question is, what's the difference between the two?
Thanks a lot =)
Solved! Go to Solution.
05-26-2009 01:15 PM
Nelson
Apologies, should have been more specific :-).
Where i said
"The 2960 is a L2 switch only so you can only create 1 L3 vlan interface and this interface is used so you can remotely connect to the switch."
i should have said that you can create more than 1 L3 vlan interface but only one can be active ie up/up at one time.
Jon
05-26-2009 12:23 PM
Nelson
They are not the same thing.
1) vlan
2) int vlan 20
this does not create a L2 vlan. It creates a L3 vlan interface or SVI (Switched Virtual Interface). To route between vlans you need L3 vlan interfaces. The 2960 is a L2 switch only so you can only create 1 L3 vlan interface and this interface is used so you can remotely connect to the switch.
A L3 switch such as the 3560/3750/4500/6500 can have multiple L3 vlan interfaces.
So L2 switch can have multiple L2 vlans + 1 L3 vlan interface.
L3 switch can have multiple L2 vlans + multiple L3 vlan interfaces.
Jon
05-26-2009 12:34 PM
Thank you for the informative and quick reply Jon.
Nelson
05-26-2009 12:53 PM
Just a quick followup Jon. While I don't deny that your answer was correct. I tested out what you said about L2 switches only allowing 1 L3 VLAN interface.
I went into global config mode and created
int vlan 20
ip address # subnet #
and
int vlan 30
ip address # subnet #
I then (from privileged exec mode) typed
sh ip int bri
and both interface vlan 20 and interface vlan 30 showed up on the list, albeit down.
Is this supposed to happen?
05-26-2009 01:15 PM
Nelson
Apologies, should have been more specific :-).
Where i said
"The 2960 is a L2 switch only so you can only create 1 L3 vlan interface and this interface is used so you can remotely connect to the switch."
i should have said that you can create more than 1 L3 vlan interface but only one can be active ie up/up at one time.
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide