I am using KVM to host a Guest VM. On my host VM, I have created 2 bridges and assigned each to a physical interface (assigned a subnet to them as well).
The routing all works very well, I can ping external resources to and from the interfaces.
I then assigned these 2 bridges to the guest VM, which is running FreeBSD. When I log in to the FreeBSD Guest and view network config, I see these 2 curr medias
:
root@VM% ifconfig -a | grep "curr media"
curr media: i802 52:53:f:6f:e2:b2
curr media: i802 52:53:f:3b:24:22
When I check out all the interfaces on my Host Ubuntu VM, I see the following:
vnet1 Link encap:Ethernet HWaddr fe:53:0f:6f:e2:b2
vnet2 Link encap:Ethernet HWaddr fe:53:0f:3b:24:22
This is extremely confusing, as I would assume the interface in FreeBSD would have the same mac address as the associated VNET.
Does FreeBSD change the mac addresses from fe
to 52
? Or does the freeBSD interface take on a different mac address than the associated VNET?
More related confusions:
1) If 2 bridges, with routing, are assigned to a guest VM, is there a VNET created for each bridge on the host?
2) If 2 bridges are created, one assigned to 1 VM, and another assigned to another VM. Would there still be 2 VNETS?
3) If 2 bridges, are created on a host VM. However, one bridge is assigned to 1 VM and another bridge is assigned to 2 VMs, would there be 3 VNETS created on the host VM?
The reason for this clarification is because I see a whole bunch of VNETs.. and I have not idea where they come from (as I cannot seem to make sense of the MAC addresses) and I cannot seem to take them off because they arent in the network/interfaces
file of ubuntu.