I'm not clear about how the tun/tap
interface is working. From Wikipedia, I got this:
Packets sent by an operating system via a TUN/TAP device are delivered to a user-space program that attaches itself to the device. A user-space program may also pass packets into a TUN/TAP device. In this case TUN/TAP device delivers (or "injects") these packets to the operating system network stack thus emulating their reception from an external source.
Now, let's suppose that I create a tun
with IP
12.12.12.1. If on this machine I have two NICs, will I be able to communicate with this tun
(on 12.12.12.1 IP
) from an external machine(let's say 12.12.12.2) no matter what NIC device the second machine is connected to (let's say eth0
or eth1
)?
With other words, are the tun
and NICs independent one of each other, or you need to communicate with the tun
through a specific NIC?
N.B. Links on topic are welcome!