Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.