[libvirt] why mac are different between inside and outside of vm
Daniel P. Berrange
berrange at redhat.com
Mon Feb 10 11:08:24 UTC 2014
On Sat, Feb 08, 2014 at 11:46:21AM +0800, yue wrote:
> hi, all
> nwfilter has many rules which depends on mac of vm, but i find the mac address inside vm is different from mac outside of vm.
> outside mac:
> vnet0 Link encap:Ethernet HWaddr FE:54:00:71:15:7B ,
> inside mac:
> eth0 Link encap:Ethernet HWaddr 52:54:00:71:15:7B ,virtio
>
> why?
> i am afraid that nwfilter use the wrong one.
> how nwfilter chooses mac? and what is the usage of vnet0's mac?
You can basically ignore the mac addr on the host vnetNNN devices.
They don't affect the traffic to/from the guest.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list