Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLAN ingress?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Tue Sep 20, 2016 12:10 am    Post subject: VLAN ingress? Reply with quote

At the following Gentoo wiki link: https://wiki.gentoo.org/wiki/Handbook:X86/Networking/Modular#VLAN_.28802.1q_support.29

What does ingress and egress mean here? I know what ingress and egress means, but what does this syntax mean?

Code:

vlan1_name="vlan1"
vlan1_ingress="2:6 3:5"
eth0_vlan1_egress="1:2"


Does vlan1_ingress="2:6 3:5" mean that frames arriving on vlan1 can have VLAN ID 2 to 6 or 3 to 5? Or does it mean something completely different?
What about eth0_vlan1_egress? Does this mean that frames leaving vlan1 will be tagged with VLAN ID 1 and 2? Or does it mean something completely different?
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 738

PostPosted: Tue Sep 20, 2016 11:05 pm    Post subject: Reply with quote

They are not VLAN ids, but priority mappings involving the PCP field of the 32-bit VLAN header.

If that makes me sound like an expert, I'm not ;-) I just spent some time researching it because the question was interesting and outside my comfort zone. You'd probably need to dig into IEEE 802.1Q and 802.1P to understand this better.
Back to top
View user's profile Send private message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Wed Sep 21, 2016 1:27 am    Post subject: Reply with quote

Princess Nell wrote:
They are not VLAN ids, but priority mappings involving the PCP field of the 32-bit VLAN header.

If that makes me sound like an expert, I'm not ;-) I just spent some time researching it because the question was interesting and outside my comfort zone. You'd probably need to dig into IEEE 802.1Q and 802.1P to understand this better.


Thanks for the input. I don't think I need to deal with 802.1P at all.

If this doesn't specify how to tag frames, then how is it specified?
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 738

PostPosted: Wed Sep 21, 2016 9:18 pm    Post subject: Reply with quote

The VLAN id is part of the variable name. Check out the vlan section in netifrc net.example.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum