Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, how can I develop L2 Forwarding function in linux? I have to add and remove VLAN Tags for traffic of user coming to and from untagged vlan. Is there a way to do this?
Hi, how can I develop L2 Forwarding function in linux? I have to add and remove VLAN Tags for traffic of user coming to and from untagged vlan. Is there a way to do this?
You can 'develop' something by writing a program. But you say nothing about the language you want to use, network environment, goals, etc. Without details all you can hope for is a generic answer.
Thank you for reply. I am using embedded Linux system so bash scripting or C language is preferable. What i want to do is that Packets coming from Client1 bridged to lets say eth0 having bridged interface br-wan. I have one VLAN eth0.2 having bridged interface br-vlan_2. What i want dynamically is that whenever any packet from Client1 coming to br-wan should go to br-vlan_2 and out by tagged 2. In reply that packet will come to br-vlan_2 so it will passed it to br-wan so that it can again reach it to the client1 via br-wan. I have read your links but not able to achieve this. Though i got idea from ebtables but didnt able to achieve it. Any suggestions in this regard?
Thank you for reply. I am using embedded Linux system so bash scripting or C language is preferable. What i want to do is that Packets coming from Client1 bridged to lets say eth0 having bridged interface br-wan. I have one VLAN eth0.2 having bridged interface br-vlan_2. What i want dynamically is that whenever any packet from Client1 coming to br-wan should go to br-vlan_2 and out by tagged 2. In reply that packet will come to br-vlan_2 so it will passed it to br-wan so that it can again reach it to the client1 via br-wan. I have read your links but not able to achieve this. Though i got idea from ebtables but didnt able to achieve it. Any suggestions in this regard?
Yes; write your code to perform whatever task you want. Not sure what 'suggestions' anyone can give you past that, since YOU are the software developer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.