HI, nxp:
I configured a VLAN on the board as shown in the following:
5: pfe1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.11/24 brd 192.168.2.255 scope global pfe1
valid_lft forever preferred_lft forever
inet6 fe80::211:22ff:fe33:4455/64 scope link
valid_lft forever preferred_lft forever
7: vlan_69@pfe1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
inet 192.168.69.15/24 scope global vlan_69
valid_lft forever preferred_lft forever
inet6 fe80::211:22ff:fe33:4455/64 scope link
valid_lft forever preferred_lft forever
and then set up a static ARP entry as also shown in the following:
root@s32g399ardb3:~# arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.69.31 ether 00:11:22:33:44:66 CM vlan_69
Then, from my PC, I sent an ICMP request message to the development board. The source address of the message was the one set in the static ARP, and the destination address was my VLAN_69. However, this message didn't carry a VLAN tag,but VLAN 69 sent me a reply. Why is this? Why wasn't the untagged packet discarded?
Hello, @zhangmeng6
Thanks for you post.
Would you minding sharing the BSP version you are working with?
And you were testing VLAN on PFE1, right?
BR
Chenyin