Home > other >  In Linux is how the two virtual network, virtual machine or tap directly connected
In Linux is how the two virtual network, virtual machine or tap directly connected

Time:11-02

Current flow scenarios do series, so expect two virtual machine virtual network card - that is, it seems to the host machine of two tap device, want to keep together, and network adapter between contract efficiency is higher,
Don't want a Linux bridge equipment, because to do address after an exchange of learning and protocol stack of action, on both sides of network card to receive contract performance fell sharply,
So to sum up, just want to find a similar physical machine cable directly connected two card scheme,

I now think of two ideas

1, C language programming, said some literature on Internet can turn on the tap as a character device, in reading and writing bytes, I tried to find related articles, but just find the top equipment related,

2, whether IP under Linux command generates a called veth device, can put the two tap directly connected?


Any friends to provide a good idea, thank you,
  • Related