What is the difference between virbr# and vnet#?

xczzhh

I am running KVM on RHEL6, and I have created several virtual machines in it. Issuing ifconfig command to the host system command line shows a list of virbr0, virbr1... and vnet0, vnet2... Are they the IP addresses of the the guest OS? What are the differences between virbr# and vnet#?

Stéphane Chazelas

Those are network interfaces, not IP addresses. A network interface can have packets from any protocol exchanged on them, including IPv4 or IPv6, in which case they can be given one or more IP addresses.

virbr are bridge interfaces. They are virtual in that there's no network interface card associated to them. Their role is to act like a real bridge or switch, that is switch packets (at layer 2) between the interfaces (real or other) that are attached to it just like a real ethernet switch would.

You can assign an IP address to that device, which basically gives the host an IP address on that subnet which the bridge connects to. It will then use the MAC address of one of the interfaces attached to the bridge.

The fact that their name starts with vir doesn't make them any different from any other bridge interface, it's just that those have been created by libvirt which reserves that name space for bridge interfaces

vnet interfaces are other types of virtual interfaces called tap interfaces. They are attached to a process (in this case the process runnin the qemu-kvm emulator). What the process writes to that interface will appear as having been received on that interface by the host and what the host transmits on that interface is available for reading by that process. qemu typically uses it for its virtualized network interface in the guest.

Typically, a vnet will be added to a bridge interface which means plugging the VM into a switch.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What's the difference between "as?", "as!", and "as"?

From Dev

What is the difference in operation between . and ^ and ^(.*)$?

From Dev

What is the difference between .// and //* in XPath?

From Dev

What is the difference between = and => for a variable?

From Dev

What is difference between "?" and "!" in Swift?

From Java

What is the difference between `.` and `#` in the JavaDoc?

From Dev

CoffeeScript, What is the difference between => and ->

From Java

What is the difference between * and *|* in CSS?

From Dev

What is the difference between $* and $@

From Java

What's the difference between '$(this)' and 'this'?

From Dev

What the difference between != and =/= in chisel?

From Dev

What is the difference between '&&' and '&' in Ruby

From Dev

what is difference between @ and @:?

From Dev

what is difference between (**) and (<<) in python?

From Dev

What is the difference between $ and ~?

From Dev

What is the difference between `::` and `.` in pig?

From Dev

What is the difference between $("") and $.find("")?

From Dev

What is the difference between list(a) and [a]?

From Dev

What is the difference between := and = operators?

From Dev

What is the difference between these files?

From Dev

What is the difference between /* ...*/ and /** ... */

From Dev

What is the difference between the inflaters

From Dev

What is the difference between [] and '[] in Clojure

From Dev

What is the difference between "||" and "or" in PHP?

From Dev

What is the difference between %>% and %,% in magrittr?

From Dev

What is the difference between for each ( in ) and for ( : )?

From Dev

What is difference between Unit and ()?

From Dev

What is the difference between if and cond?

From Dev

Thread What is the difference between

Related Related

  1. 1

    What's the difference between "as?", "as!", and "as"?

  2. 2

    What is the difference in operation between . and ^ and ^(.*)$?

  3. 3

    What is the difference between .// and //* in XPath?

  4. 4

    What is the difference between = and => for a variable?

  5. 5

    What is difference between "?" and "!" in Swift?

  6. 6

    What is the difference between `.` and `#` in the JavaDoc?

  7. 7

    CoffeeScript, What is the difference between => and ->

  8. 8

    What is the difference between * and *|* in CSS?

  9. 9

    What is the difference between $* and $@

  10. 10

    What's the difference between '$(this)' and 'this'?

  11. 11

    What the difference between != and =/= in chisel?

  12. 12

    What is the difference between '&&' and '&' in Ruby

  13. 13

    what is difference between @ and @:?

  14. 14

    what is difference between (**) and (<<) in python?

  15. 15

    What is the difference between $ and ~?

  16. 16

    What is the difference between `::` and `.` in pig?

  17. 17

    What is the difference between $("") and $.find("")?

  18. 18

    What is the difference between list(a) and [a]?

  19. 19

    What is the difference between := and = operators?

  20. 20

    What is the difference between these files?

  21. 21

    What is the difference between /* ...*/ and /** ... */

  22. 22

    What is the difference between the inflaters

  23. 23

    What is the difference between [] and '[] in Clojure

  24. 24

    What is the difference between "||" and "or" in PHP?

  25. 25

    What is the difference between %>% and %,% in magrittr?

  26. 26

    What is the difference between for each ( in ) and for ( : )?

  27. 27

    What is difference between Unit and ()?

  28. 28

    What is the difference between if and cond?

  29. 29

    Thread What is the difference between

HotTag

Archive