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 04-02-2014, 02:00 AM   #1
sargurus
LQ Newbie
 
Registered: Apr 2014
Posts: 13

Rep: Reputation: Disabled
vlan tag packet is stripped in eth1 not in eth2 interface?


After reboot the box:
********************
eth 1 Interface:
***************
[root@Linux ~]# ethtool -d eth1 | grep -i vlan
VLAN mode: disabled
VLAN filter: enabled

[root@Linux ~]# ifconfig eth1 promisc

[root@Linux ~]# ethtool -d eth1 | grep -i vlan //After change the promisc mode in eth1 :
VLAN mode: enabled
VLAN filter: disabled
[root@Linux ~]#

[root@Linux ~]# ifconfig eth1 –promisc

[root@Linux ~]# ethtool -d eth1 | grep -i vlan
VLAN mode: disabled
VLAN filter: enabled

[root@Linux ~]# ethtool -K eth1 rxvlan off
Cannot set device flag settings: Operation not supported
[root@Linux ~]#
[root@Linux ~]# uname -a
Linux Centos-2.6.32-431.5.1.el6.i686 #1 SMP Tue Feb 11 21:56:33 UTC 2014 i686 i686 i386 GNU/Linux

lspci for eth1:
***************
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Device 202c
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at d0120000 (32-bit, non-prefetchable) [size=128K]
Memory at d0100000 (32-bit, non-prefetchable) [size=128K]
I/O ports at 2000 [size=32]
Memory at d0140000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [a0] MSI-X: Enable+ Count=5 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-22-4d-ff-ff-88-da-6c
Kernel driver in use: e1000e
Kernel modules: e1000e

02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Device 202c
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at d0220000 (32-bit, non-prefetchable) [size=128K]
Memory at d0200000 (32-bit, non-prefetchable) [size=128K]
I/O ports at 3000 [size=32]
Memory at d0240000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [e0] Express Endpoint, MSI 00
Capabilities: [a0] MSI-X: Enable+ Count=5 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 00-22-4d-ff-ff-88-da-6f
Kernel driver in use: e1000e
Kernel modules: e1000e

eth2 interface:
***************
[root@Linux ~]# ethtool -d eth2 | grep -i vlan
VLAN mode: disabled
VLAN filter: disabled

[root@Linux ~]# ifconfig eth2 promisc

[root@Linux ~]# ethtool -d eth2 | grep -i vlan // After change the promisc mode in eth2 :
VLAN mode: disabled
VLAN filter: disabled
[root@Linux ~]#

[root@Linux ~]# ifconfig eth2 –promisc

[root@Linux ~]# ethtool -d eth2 | grep -i vlan
VLAN mode: disabled
VLAN filter: disabled

lspci for eth2:
***************
03:00.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
Subsystem: Intel Corporation PRO/1000 GT Desktop Adapter
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 20
Memory at d0020000 (32-bit, non-prefetchable) [size=128K]
Memory at d0000000 (32-bit, non-prefetchable) [size=128K]
I/O ports at 1000 [size=64]
Expansion ROM at d0600000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Capabilities: [e4] PCI-X non-bridge device
Kernel driver in use: e1000
Kernel modules: e1000
Question -1
***********
In my Linux Application, I turn the promiscuous mode ON to see all the packets coming in to this interface.However, I receive the packets with vlan tag stripped.I am able to see vlan tagged packet in tcpdump.

Is this the expected behavior in Cent OS(Please see above for the exact configs) ?

I see the same working fine for <Intel Corporation 82574L Gigabit Network Connection - e1000> in the same box, but not in <Intel Corporation 82574L Gigabit Network Connection - e1000e>

Question -2:
***********
I tried to turn off rxvlan offloading through the ethtool –K command. However, it did not work
Is this an expected behavior and are there any other ways to turn it off through commands/configs ?

I browsed through and hit the below match.
https://www.mail-archive.com/e1000-d.../msg09044.html
Is there an alternate way ? Is it required to rebuild the complete linux kernel for this change ?

Thanks
Saravanan
 
  


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
[SOLVED] Creating a VLAN interface on top of another VLAN interface jbbroccard2 Linux - Networking 1 05-22-2013 01:25 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
Receive Ethernet VLAN frame on the native ethernet interface (raw packet socket) scottbiker Linux - Networking 0 07-13-2009 03:49 AM
How to determine which physical interface corresonds to eth0, eth1, eth2, and eth3 karrj Linux - Newbie 5 05-01-2008 07:44 AM
Resetting network interface to eth1 & eth2 kushalkoolwal Debian 15 08-24-2007 10:01 AM

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

All times are GMT -5. The time now is 06:29 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
Open Source Consulting | Domain Registration