LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-22-2019, 02:26 AM   #1
Umam
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Rep: Reputation: Disabled
VLAN tag gets stripped on reception


Hi All.

I have a test bed which connects a small embedded processor to the LINUX Desktop. The specification of both the hardware are listed down below. With this setup whenever a VLAN tagged frame is sent from the Embedded processor , the VLAN tag ( currently tried with only single tag) seems to be automatically stripped in the Desktop . All untagged packets are received as it is. I am planning to try changing the NIC card on the PC . Before that wanted to check, is this any known issue with centOS LINUX version running on this LINUX machine?

If anyone of you have faced similar issue , please do get back.

Desktop:

Framework# uname -a
Linux terminal_testframework 2.6.32-696.23.1.el6.i686 #1 SMP Tue Mar 13 23:09:35 UTC 2018 i686 i686 i386 GNU/Linux
Framework# cat /etc/centos-release
CentOS release 6.9 (Final)

Realtek NIC Card # ethtool -i eth1
driver: r8169
version: 2.3LK-NAPI
firmware-version: rtl8168e-3_0.0.4 03/27/12
bus-info: 0000:12:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no


Processor End :

armv7l GNU/Linux 3.4.69

Regards
Umam
 
Old 03-22-2019, 03:59 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You mean that traffic from the ARM computer comes in to the Centos PC via eth1?

Linux doesn’t remove VLAN information from a frame, except if you create a VLAN interface like eth1.1234 for that precise purpose. Are you sure it is not stripped by the switch or whatever other device sits between the two computers?
 
Old 03-22-2019, 09:57 AM   #3
Umam
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes your understanding is correct. Its a direct connection between the two nodes and there are no devices in between. We have also tried sniffing the output in wire and we see the VLAN tag still intact, so I am pretty sure its the Desktop

Regards
Umam
 
Old 04-02-2019, 09:33 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
This is normal. Unless you have the Linux box configured to bridge then its a router and a router decapsulates packets in the network stack before passing it up to be processed. The tag gets left behind with the rest of the L2 frame.
 
Old 04-04-2019, 02:56 AM   #5
Umam
LQ Newbie
 
Registered: Mar 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have downgraded to CentOS 6.4 and retained all the other settings in the configuration file and in the test bed . With this I notice that the VLAN tag does not get stripped in this case. Any idea or reasoning that could explain the difference in observation with lower centOs version.

Thanks
Umam
 
Old 01-07-2021, 02:13 PM   #6
mike1111111
LQ Newbie
 
Registered: Dec 2020
Posts: 5

Rep: Reputation: Disabled
i am having a similar problem

i am having a similar problem, did you figure out what was causing the VLAN Tag to get stripped off?
Thanks
 
  


Reply



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
LXer: World Without Linux video gets chilly reception on Reddit LXer Syndicated Linux News 0 10-05-2015 12:30 PM
vlan tag packet is stripped in eth1 not in eth2 interface? sargurus Linux - Networking 0 04-03-2014 10:44 AM
Need assistance with shell script - replace a string with a start tag and end tag SupermanInNY Programming 18 01-02-2010 05:44 PM
stripped/non-stripped binaries spuzzzzzzz Linux - General 4 02-13-2004 06:11 AM
Stripped||not stripped Cyth Linux - General 4 11-20-2001 01:47 PM

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

All times are GMT -5. The time now is 08:28 PM.

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
Open Source Consulting | Domain Registration