This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2EXEVM: vlan virtual interface The data received through eth0 does not carry 8021q, how to solve it? [Vision sdk 3.06][ (TI-Linux)][kernel 4.4.84+]

Part Number: TDA2EXEVM

First 

eth0  -> eth0.6

ip link add link eth0 name eth0.6 type vlan id 6
ifconfig eth0.6 198.18.36.96 netmask 255.255.0.0 broadcast 198.18.255.255 up

eth0 and eth0.6 have the same IP address, broadcast address, mask, MAC address.

Send Ethernet data carrying vlanID 6 through an external device, query eth0 network card data through tcpdump, and query eth0.6 network card data through tcpdump.

The captured data is as follows:

eth0:

tcpdump -ni eth0 -v -e

DATA:

198.18.37.21.60001 > 198.18.255.255.50001: UDP, length 18
14:00:59.475043 02:00:00:00:15:14 > 02:00:00:00:14:60, ethertype 802.1Q (0x8100), length 64: vlan 6, p 2, ethertype IPv4, (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 46)

/////////////////////////////////////////////////////////////////////

eth0.6

tcpdump -ni eth0.6 -v -e

data:

198.18.37.21.60001 > 198.18.255.255.50001: UDP, length 18
14:00:29.233530 02:00:00:00:15:14 > 02:00:00:00:14:60, ethertype IPv4 (0x0800), length 60: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 46)

By capturing the data of the two network card interfaces, it is found that when the Ethernet is transmitted to eth0, the 8021Q data is present; when it is transmitted to eth0.6, the 8021Q data is removed.

eth0.6 specifies the reception of UDP broadcast data. Is it because there is no vlan tag and the data cannot be received?

In this case, how to ensure that the Ethernet data received by eth0.6 carries 8021Q data?