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.
I need a network interface that will be completely bound to a usermode program.. No physical card involved. The process will handle all packets sent to this interface, and should be able to send packets out of it, as if the process was a network card.
I didn't find anything that allows me to create such an interface. I noticed that VMWare installs a kernel module to handle its vmnetN interfaces. So the only way I can think of is to create a kernel module for it, not sure where to start though.
Am I missing something? Is there any existing library that allows me to do this? If not, is there an existing module? Or places to look at for examples? Any tips at all would be helpful.
I need a network interface that will be completely bound to a usermode program.. No physical card involved. The process will handle all packets sent to this interface, and should be able to send packets out of it, as if the process was a network card.
I didn't find anything that allows me to create such an interface. I noticed that VMWare installs a kernel module to handle its vmnetN interfaces. So the only way I can think of is to create a kernel module for it, not sure where to start though.
Am I missing something? Is there any existing library that allows me to do this? If not, is there an existing module? Or places to look at for examples? Any tips at all would be helpful.
To add a virtual interface with a different IP address , open up the Network Configuration Tool and go to the Devices Tab and then add a new device.
Click on the "New" button and a wizard comes up , select Ethernet Conection , click Forward , select the default NIC , click on Forward and then enter a IP address , subnet mask : 255.255.1255.0 and your default gateway address.
Anyways, after four hours of coffee and Google, I found it.
The answer is ethertap, a module which creates an interface tap0 in ifconfig, all I need is to read/write packets on /dev/tap0, exactly what I wanted. Thankies though!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.