Forums » Software Development »
Receive and send data using vlan tag
Added by Bhardwaj Kotha 4 months ago
Hi,
I am working on ethernet using vlan. I had used the ip command to create the vlan after that some data sent from another PC having vlan and run receive code on board to receive data but we didn't get any data. when we try these experiment with different TPID then we get data. I had checked in kernel the vlan is enabled. should we change in device tree. Can i know how to do that in detail.
Thanks & regards,
Bhardwaj.
Replies (1)
RE: Receive and send data using vlan tag - Added by Tim Iskander 4 months ago
Bhardwaj
There should be no devicetree changes necessary to use the VLAN feature of the Ethernet.
You verified that the 8021q module is loaded.
You should be able to create a VLAN interface and configure it from the shell and then add the information to /etc/network/interfaces to preserve across boot. Have a look at any of the howto guides for VLAN on linux (i.e. https://www.baeldung.com/linux/vlans-create or https://wiki.archlinux.org/title/VLAN).
We do not have a lot of experience with using vlans so cannot be a great deal of help unfortunately.
cheers
/Tim