LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2015, 06:03 AM   #1
wesley_q
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Why the eth0 send out the packet with tag vlan id 0


Hi everybody, I have a configuration in linux as below:

NB ))) AP(eth0)---PC

#brctl show
bridge name-----bridge id------STP enabled-----interfaces
br0---------------8000.00xx...--no---------------eth0
-----------------------------------------------------wla_ath02
brv_10-----------8000.00xx...---no--------------eth0.10
-----------------------------------------------------wlg_ath22

I use wifi interface of NB to connect to wla_ath02 and ping to another device(PC) which connected to eth0. The PC recives the packet with vlan id 0. Why? Is there something wrong? How can I fix this problem? Thanks.
 
Old 02-26-2015, 02:15 PM   #2
sudowtf
Member
 
Registered: Nov 2013
Posts: 199

Rep: Reputation: 45
this seems to be normal. in networking VLAN's are used to segregate traffic across switches and routers. normally, you don't change a workstation/server's vlan id, instead you change the switch's port. i believe therefore vlan id 0 is equivalent of no vlan.

Last edited by sudowtf; 02-26-2015 at 02:16 PM.
 
1 members found this post helpful.
Old 03-02-2015, 04:55 AM   #3
wesley_q
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks Sudowtf.
I have another question about untag vlan id.
If I want to untag packet in bridge brv_10,could I used this command...

ebtables -t broute -A BROUTING -i eth0 -p 802.1q --vlan-id 10 -j DROP

to untag vlan packet or you have any others method to do this. Thanks.
 
Old 03-02-2015, 07:44 AM   #4
sudowtf
Member
 
Registered: Nov 2013
Posts: 199

Rep: Reputation: 45
i do not know. it seems a drop command would drop the entire packet.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mixing VLAN and LAN in same interface (eth0) do not work qabsou Linux - Networking 4 09-25-2014 04:00 AM
vlan tag packet is stripped in eth1 not in eth2 interface? sargurus Linux - Networking 0 04-03-2014 10:44 AM
disabling vlan tag stripping on NetXtreme BCM5721 NIC Shaggy1 Linux - Networking 1 11-02-2010 07:34 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
How to tag packet with UID in the same host? teachershen Linux - Networking 2 11-21-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration