Quick VLAN question
This is more of a general question regarding VLANs.
Most switches come defaulted with every port in VLAN1 so you can just plug everything in and away you go.
The problem with that is VLAN1 is meant to be the management VLAN1 and it most cases can't be modified.
So anyway my question is, if you set all ports on all switches to a different VLAN, (say VLAN2) everything would work just as easily as when the ports were in VLAN1 right?
Like there wouldn't be any need to setup trunking between switches or any routing between VLANs because all ports are in VLAN2.
is that correct?
cheers!
Most switches come defaulted with every port in VLAN1 so you can just plug everything in and away you go.
The problem with that is VLAN1 is meant to be the management VLAN1 and it most cases can't be modified.
So anyway my question is, if you set all ports on all switches to a different VLAN, (say VLAN2) everything would work just as easily as when the ports were in VLAN1 right?
Like there wouldn't be any need to setup trunking between switches or any routing between VLANs because all ports are in VLAN2.
is that correct?
cheers!
CCIE# 38186
showroute.net
showroute.net
Comments
rakem,
It depends. Exactly how many switches are involved?
How would you manage your switches via the management IP on VLAN1?? Remember VLAN 1 by default is the native VLAN and isn't tagged through 802.1q trunks anyway....... If you created management addresses on VLAN2 however you would overcome this issue.....
Which brings me to my next point..... If you set all ports to VLAN2 and no trunk links were formed.... How would you route between VLAN1 & VLAN2??? You need a trunk link to the external router (router-on-a-stick) or SVI's setup on the multi-layer switch to route between both VLANs.......
If you were talking about setting all ports on an out of the box switch (one switch only) to the same vlan well then yes it as long as all clients have the same addressing structure they will be able to see each other and will be able to route out as long as the default gateway has an interface on the same VLAN and the clients can see it......
CCNA | CCNA:Security | CCNP | CCIP
JNCIA:JUNOS | JNCIA:EX | JNCIS:ENT | JNCIS:SEC
JNCIS:SP | JNCIP:SP
Correct me if I am wrong, but removing vlan 1 from the trunk should imply that the native vlan is changed as well, otherwise CDP and STP will not function properly because they pass traffic through vlan 1, is that right?
Nope removing vlan 1 from the trunk does not affect CDP or any other management protocols that natively carry information over it.... It does not change the native vlan either as with trunks the native is always vlan 1 unless you manually use 'switchport trunk native vlan (id)' which you would be doing on every link partner if you did change it as the trunks wouldn't form correctly if link partners have different native vlans.
When removing vlans from trunk links via "switchport trunk allowed vlan" you are stating the data traffic that is allowed to traverse the trunk...... CDP,PAgP traffic is considered Management traffic so it will still traverse the trunk link.
CCNA | CCNA:Security | CCNP | CCIP
JNCIA:JUNOS | JNCIA:EX | JNCIS:ENT | JNCIS:SEC
JNCIS:SP | JNCIP:SP
very interesting....where can I read more about this?
quite counter-intuitive, no?
States that the traffic is classed as management traffic and still traverses the trunk link.
CCNA | CCNA:Security | CCNP | CCIP
JNCIA:JUNOS | JNCIA:EX | JNCIS:ENT | JNCIS:SEC
JNCIS:SP | JNCIP:SP
four switches will be involved. All ports on every switch will be VLAN2. I will create a management interface on VLAN2 so i don't need to worry about VLAN1 at all.
Down the track i will add VLAN3, once this is added then, of course, i will need to configure trunk links.
cheers guys,
showroute.net
rakem,
You can use configure all of the ports of a single managed switch to be an access port for VLAN 2. However, as soon as you connect the first managed switch to a second managed switch, that physical link between the two switches is by definition going to be a trunk. Since you mentioned "four switches will be involved," how are you planning to connect the four switches to each other?
Why would connecting two managed switches in the same vlan be called a trunk? They are access ports, therefor cannot be a trunk. A trunked port will pass multiple vlans, but in this case the access port will only pass vlan2. He can connect 4 switches together, so long as they are all on the same Vlan
The switches will be connected by a fiber link. Firstly everything will be in VLAN2, which means that a trunk is not necessary to carry information between switches.
I will be creating VLAN3 on a few switches later, once that is created then i will just change the links that connect the switches to trunk links.
showroute.net
But you must use 'switchport mode access' then 'switchport access vlan 2'
CCNA | CCNA:Security | CCNP | CCIP
JNCIA:JUNOS | JNCIA:EX | JNCIS:ENT | JNCIS:SEC
JNCIS:SP | JNCIP:SP
Sanis4life,
According to Cisco..
Then there's the issue of Spanning Tree Protocol between the switches which is communicated usually over trunk links. Since it was mentioned that in the future another VLAN will be added, configure at least one switch to be a VTP server and the rest to be VTP clients. Once again, those VTP advertisements will be going across trunk links.
I hope this helps.
Source:
Tech-ariman,
Yes, the definitions you described are the usual way to connect switches, ie trunking, however, that is not always the case. The OP was questioning if he can connect multiple switches using vlan 2, and the answer is yes, by sw mode acc. There does not need to be any trunking involved until he adds another vlan to the mix, and then will need to change the port from an access port to a trunk port.
Anyways, I hope you understand there are more ways to connect switches then just by trunking.