networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Fri Jul 27, 2012 1:20 pm 
Offline
New Member
New Member
User avatar

Joined: Wed Mar 02, 2011 5:24 pm
Posts: 18
Location: Brazil
Certs: CCNA, CCNP, MCSA+M, NCDA
Hello ALL!!!

We have our aggregation layer here composed of two N7K with vPC between them. Every access switch is a N5K. Security policies state that we have to filter unnecessary vlans going through the trunk between N5K and N7K. So we use the 'switchport trunk allowed vlan 10,20,30' command. My question is:

Do I have to include the native vlan id on this command?

_________________
[]s
Rafael Bianco

Keep calm and don't forget to be awesome!!!


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 1:23 pm 
Online
Post Whore
Post Whore
User avatar

Joined: Thu Dec 30, 2010 2:05 pm
Posts: 1179
Location: Stockholm, SE
Certs: CCNP, CCNP SP, CCDA, CCNA DC, CCNA W, HP MASE
Yes.

_________________
som om sinnet hade svartnat för evigt.


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 1:36 pm 
Offline
New Member
New Member
User avatar

Joined: Wed Mar 02, 2011 5:24 pm
Posts: 18
Location: Brazil
Certs: CCNA, CCNP, MCSA+M, NCDA
srg,

And we have another policy that states that we have to change vlan 1 to vlan 402. Is there a offical paper explaining this (that it's mandatory that we have to include the native vlan id on the 'switchport trunk allowed vlan 10,20,30' command)?

_________________
[]s
Rafael Bianco

Keep calm and don't forget to be awesome!!!


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 2:00 pm 
Offline
New Member
New Member
User avatar

Joined: Wed Mar 02, 2011 5:24 pm
Posts: 18
Location: Brazil
Certs: CCNA, CCNP, MCSA+M, NCDA
Just to add... I found this 2 articles:

1- https://supportforums.cisco.com/thread/2157701
2- https://learningnetwork.cisco.com/thread/13009

In my understanding, even if you don't permit the native vlan, trunk negotiation (DTP) and CDP will still occur. The problem is if you try to have any client running on the native vlan.

_________________
[]s
Rafael Bianco

Keep calm and don't forget to be awesome!!!


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 2:09 pm 
Online
Post Whore
Post Whore
User avatar

Joined: Thu Dec 30, 2010 2:05 pm
Posts: 1179
Location: Stockholm, SE
Certs: CCNP, CCNP SP, CCDA, CCNA DC, CCNA W, HP MASE
rafaelbn wrote:
srg,

And we have another policy that states that we have to change vlan 1 to vlan 402. Is there a offical paper explaining this (that it's mandatory that we have to include the native vlan id on the 'switchport trunk allowed vlan 10,20,30' command)?

Well, this was the closest I could get: http://www.cisco.com/en/US/docs/switche ... #wp1206651
The native VLAN has to be in the allowed vlan list for transit traffic to work, though other management functions as CDP etc will still work in VLAN 1 even if you dont allow the native VLAN.

edit; fixed error.

_________________
som om sinnet hade svartnat för evigt.


Last edited by srg on Fri Jul 27, 2012 2:23 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 2:15 pm 
Offline
Senior Member
Senior Member

Joined: Wed Jan 26, 2011 3:38 pm
Posts: 386
Location: New Hampshire
1) Your policy is broken. Leaving the native VLAN as "1" is perfectly fine, so long as nothing uses VLAN 1. The number is meaningless.
2) If you have clients using VLAN 402, then you better allow it on the trunk. If nobody is using it, then there's no reason to allow it.
3) If you change the native VLAN from "1" to something else, then CDP etc will still work, but it will be tagged with 1, whether you allow VLAN 1 on the trunk or not.


Top
 Profile  
 
PostPosted: Fri Jul 27, 2012 2:23 pm 
Online
Post Whore
Post Whore
User avatar

Joined: Thu Dec 30, 2010 2:05 pm
Posts: 1179
Location: Stockholm, SE
Certs: CCNP, CCNP SP, CCDA, CCNA DC, CCNA W, HP MASE
I think this clears most of your questions: http://www.cisco.com/en/US/customer/pro ... shtml#pre6

_________________
som om sinnet hade svartnat för evigt.


Top
 Profile  
 
PostPosted: Mon Jul 30, 2012 9:06 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Tue Aug 21, 2007 2:15 pm
Posts: 8457
Location: Frederick MD
Certs: Instanity
you can also use vlan pruning and have the vlans add/remove as needed automagically.


also on the vlan trunking thing, best practice is to place an unused vlan at the native
between the two switches, to limit the scope of the traffic,

so i trunk 10,20,30 use 100 as native in the configuration, vlan100 is not defined on either device.

_________________
"If you're good at anticipating the human mind. It leaves nothing to chance."
-Jigsaw


Top
 Profile  
 
PostPosted: Tue Jul 31, 2012 3:57 pm 
Offline
Senior Member
Senior Member
User avatar

Joined: Fri Mar 27, 2009 2:16 pm
Posts: 423
Location: germany
Certs: CCNA
ristau5741 wrote:
so i trunk 10,20,30 use 100 as native in the configuration, vlan100 is not defined on either device.


why not leaving native vlan in default setting (1)? There wouldnt be any difference, wouldnt it?


VLAN pruning has a VERY high risk of taking down a big network by a single configuration error. Even with hundreds or thousands of switches it is best practise IMHO to configure allowed vlans manually or by management software with limited reach.

_________________
kindly regards
Poison Nuke

www.poisonnuke.de


Top
 Profile  
 
PostPosted: Tue Jul 31, 2012 4:52 pm 
Online
Post Whore
Post Whore
User avatar

Joined: Thu Apr 29, 2010 6:12 pm
Posts: 2206
Location: Texas
Certs: CCNP, CCDP, CCIP
chrismarget wrote:
1) Your policy is broken. Leaving the native VLAN as "1" is perfectly fine, so long as nothing uses VLAN 1. The number is meaningless.


This is the second time Ive seen you bring this up in the past few days and its an interesting thought to me as Ive always just been taught to never use vlan 1. So i thought I'd spend a couple cycles thinking through this. :)

The only risk I see with this is your native (untagged) vlan is the same vlan that control traffic (CDP/DTP/STP etc...) resides on.

So even if VLAN 1 is pruned from the trunk, control traffic still uses vlan 1. Not knowing 100%, thinking through it I would think an untagged frame would still be able to pass to the switch on vlan 1, if generated correctly. So that leads me to wonder how control traffic is differentiated over normal user traffic??? Is it marked (CoS 6 or 7), or sourced from a special control plan interface, or is there some other magic that happens under the hood???

So with that thought in mind i would assume if you can generate a false control packet destined to a switch without a tag and marked as a control packet then wouldn't the switch process the frame as control traffic and then maybe send that frame out all trunk interfaces towards other switches?

I guess I need more information on the logic of how control traffic is handled... or Im just thinking myself off the deep-end and need to move back to reality :)

Sorry for jacking the thread...

_________________
http://blog.movingonesandzeros.net/


Top
 Profile  
 
PostPosted: Tue Jul 31, 2012 7:24 pm 
Offline
Senior Member
Senior Member

Joined: Wed Jan 26, 2011 3:38 pm
Posts: 386
Location: New Hampshire
that1guy15 wrote:
The only risk I see with this is your native (untagged) vlan is the same vlan that control traffic (CDP/DTP/STP etc...) resides on.
Well, I said it's fine so long as *nothing* (user traffic) uses VLAN 1. There's a legacy VLAN traversal attack where that's not true: allowing trunks to use an access VLAN is dangerous there. The way I usually configure things, the only traffic that goes untagged is control traffic.

Quote:
So even if VLAN 1 is pruned from the trunk, control traffic still uses vlan 1. Not knowing 100%, thinking through it I would think an untagged frame would still be able to pass to the switch on vlan 1, if generated correctly.
I think you'll find that you're unable to put an untagged frame onto such a trunk if VLAN 1 is prohibited from all trunk interfaces, and has no access ports.

Quote:
So that leads me to wonder how control traffic is differentiated over normal user traffic??? Is it marked (CoS 6 or 7), or sourced from a special control plan interface, or is there some other magic that happens under the hood???
It's magic - you can prohibit user traffic, but not CDP, etc...

Quote:
So with that thought in mind i would assume if you can generate a false control packet destined to a switch without a tag and marked as a control packet then wouldn't the switch process the frame as control traffic and then maybe send that frame out all trunk interfaces towards other switches?
First the attacker is going to have to get the bogus packet into VLAN 1 - quite a trick from an access port on VLAN not-1. Then the attacker will have to deal with the fact that most of this control plane traffic is addressed to special non-bridgable L2 addresses.

Assuming those hurdles are past, what difference does changing the native VLAN make? If we can VLAN-hop from not-1 to untagged-1, surely we can VLAN hop from not-1 to tagged-1 :)

...and then there's that other category of control traffic that unlike CDP and friends (always VLAN 1), always goes untagged. Changing the native VLAN does nothing to, say, DTP.

It's all just a bunch of extra typing in my opinion.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], burnyd, davidrothera, Steven King, totaluser and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group