vlan id issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

vlan id issue

543件の閲覧回数
gravity_one
Contributor III

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

image-2022-09-27-16-33-46-181.png

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

image-2022-09-27-16-36-03-555.png

The wireshark packet capture also confirms that the reply sent by the imx8 board does not have a vlan id

image-2022-09-27-16-37-36-592.pngimage-2022-09-27-16-37-58-051.png

Why tcpdump of the imx8 board displays the VLAN ID, but the actual message sent does not contain  VLAN ID ?

gravity

ラベル(1)
0 件の賞賛
返信
0 返答(返信)