use BSP:Linux imx8qxp_mek 4.14.98+g9b4bc51 #1 SMP PREEMPT Fri Aug 6 06:07:59 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
After setup vlan in imx8 board and linux pc (ubuntu). I cannot ping through imx8 board from pc because imx8 board's reply did not have the vlan id:
setup on imx8 board:
ip link add link eth1 name eth1.15 type vlan id 15
ip addr add 172.16.15.1/24 brd 172.16.15.255 dev eth1.15
ip link set dev eth1.15 up
setup on pc:
sudo ip link add link enp0s3 name enp0s3.15 type vlan id 15
sudo ip addr add 172.16.15.3/24 brd 172.16.15.255 dev enp0s3.15
sudo ip link set dev enp0s3.15 up
ping from pc vlan interface to imx8 board vlan interface:
ping 172.16.15.1
Result: Destination Host Unreachable
From the tcpdump on the imx8 board, The req and reply packets received and sent through eth1 contain vlan ids
However, the tcpdump on the PC shows that the req sent through enp0s3 contains a vlan id, but the reply packet received does not contain a vlan id
The wireshark packet capture also confirms that the reply sent by the imx8 board does not have a vlan id
Why tcpdump of the imx8 board displays the VLAN ID, but the actual message sent does not contain VLAN ID ?
gravity