alx icon indicating copy to clipboard operation
alx copied to clipboard

alx swaps VLAN Bytes

Open int2001 opened this issue 10 years ago • 0 comments

Using alx with 8021q (vlan) gives some serious issues. For example: Incoming Packets, tagged with VLAN 2 (0x0002) are treated as VLAN 512 (0x0200). If sending packets tagged with VLAN 2 (0x0002) the packets are correctly leaving the AR8161 NIC.

Correct working Side:

ping 192.168.0.50 -I eth0.2

tcpdump -vv -ttt -e -n -i eth0

xx:xx:xx:xx:xx:xx > xx:xx:xx:xx:xx:xx, ethertype 802.1Q (0x8100), vlan 2, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    192.168.0.1 > 192.168.0.50: ICMP echo request

ALX-Side:

tcpdump -vv -ttt -e -n -i alx0

xx:xx:xx:xx:xx:xx > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), vlan 512, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.0.50 tell 192.168.0.1

int2001 avatar May 23 '14 17:05 int2001