Project

General

Profile

Receive and send data using vlan tag

Added by Bhardwaj Kotha 5 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 (3)

RE: Receive and send data using vlan tag - Added by Tim Iskander 5 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

RE: Receive and send data using vlan tag - Added by Bhardwaj Kotha 14 days ago

Hello,

I am working on enabling Jumbo Frames and need to increase the MTU size on the eth0, eth1, and br0 interfaces. While I was able to successfully update the MTU size for eth1 and br0, I encountered an issue with eth0. When attempting to bring the eth0 link down to modify its MTU size, the link is automatically brought back up, preventing me from making the change. Could you please advise on how to address this issue?

RE: Receive and send data using vlan tag - Added by Daniel Vincelette 12 days ago

The MTU question has already been addressed in the following thread: https://support.criticallink.com/redmine/boards/45/topics/6811. Please refer to that thread for more details.

    (1-3/3)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)