Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make virtual network interface in Linux?

I'm building a program that does network acceleration, and I need to know how to create a network interface on Linux that instead of directing data to an actual interface, directs information to my program, so that it can be accelerated. The idea is to make it a transparent system, so that programs just have to use the interface like a normal one, but the traffic will run faster.

like image 213
nonpolynomial237 Avatar asked Aug 09 '09 05:08

nonpolynomial237


People also ask

How do I create a virtual network interface in Linux?

Create virtual network interfaces on LinuxStart off by enabling the dummy kernel module with the following command. Now that the module has been loaded, we can create a new virtual interface. Feel free to name yours however you want, but we will name ours eth0 in this example.

What is virtual interface Linux?

A virtual network interface (VIF) is an abstract virtualized representation of a computer network interface that may or may not correspond directly to a network interface controller.

How do I find virtual network interface in Linux?

ifconfig command – It is used to display or configure a network interface. nmcli command – A command to show or configure a network interface on Linux. tcpdump command – Print the list of the network interfaces available on the system.


1 Answers

You want the tun/tap device:

http://en.wikipedia.org/wiki/TUN/TAP

like image 200
jrockway Avatar answered Nov 15 '22 08:11

jrockway