Linux – VLAN configuration in linux not showing tags in tcpdump

bondinglinuxvlan

i bonded 2 NIC and specified VLAN tag of 11

cat /etc/sysconfig/network-scripts/ifcfg-bond0.11

DEVICE=bond0.11
ONBOOT=yes
VLAN=yes
NM_CONTROLLED=no
STP=no
HOTPLUG=no

also

ifconfig bond0.11 192.168.211.6 netmask 255.255.255.0 

then

tcpdump -i bond0.11 -n -e 

does not show any VLAN tags

even if there is any issue with physical interface or switch why dont i see tagged traffic in tcpdump when it enters interface.

Best Answer

That is correct behaviour: the interface bond0.11is a VLAN-aware interface, so the only traffic that you should see on it is traffic for the VLAN of which it is a member (11), after those frames have been selected and the VLAN tags removed.

If you dump bond0 you should see all the traffic that hits that physical interface, with tags intact.

Related Topic