top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is tun/tap interface and where exactly it is useful ?

+4 votes
331 views

What are the functions performed by tun/tap interface ?

posted Feb 12, 2017 by Ganesh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

TUN/TAP are virtual network devices. TUN device works at the layer 3 (IP layer) while TAP device works at the layer 2. I am very much familiar with TAP device, it is used by my virtual machine to connect to virtual bridge/switch exists in my host machine. Broadcast of package is supported by TAP device but TUN device is point to point connection and does not support of broadcast.

Reference:
http://www.naturalborncoder.com/virtualization/2014/10/17/understanding-tun-tap-interfaces/

answer Feb 14, 2017 by Harshita
Similar Questions
+3 votes

One server may have support of limited number of physical interfaces. What if there is need of more Ethernet interfaces but physical slots are not available ?

0 votes

I heard TUN and TAP interfaces and have seen TAP interfaces many times when a virtual machine is created within a host machine.
I am looking for examples of TUN interfaces, any use case would help me a lot to understand this. Thanks in advance.

0 votes

What is the use of TFTP and where exactly it becomes necessary to use it ?

...