Skip to content

alx swaps VLAN Bytes  #7

@int2001

Description

@int2001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions