VM "Tap" Interface

masterdaweb

Active Member
Apr 17, 2017
87
4
28
31
Hello,

When I used "ifconfig -a", I realized that the MAC Address for "TapXXX" interface is different from the MAC Address configured in Proxmox GUI:

upload_2018-2-20_21-21-0.png

upload_2018-2-20_21-22-3.png


Shouldn't it be the same ?
 
no, the network device inside the container gets the configured MAC.
 
Hi, could you possibly expand on this? Why are they not the same? At first sight, I'd say they should be one and the same and the host should have a switch-type of view of the network interfaces of the vms. Why is this happening? I've been trying to understand this for some time, but I still haven't been able to find an answer.
 
Hi, could you possibly expand on this? Why are they not the same? At first sight, I'd say they should be one and the same and the host should have a switch-type of view of the network interfaces of the vms. Why is this happening? I've been trying to understand this for some time, but I still haven't been able to find an answer.

the container runs in a different network namespace, so we use a veth pair to bridge that "gap". the configured MAC is the one we want the container to see (e.g., for static DHCP, ...), so we set it on the veth peer inside the container network namespace.
 
  • Like
Reactions: lethargos
It's not. It would only be used if you remove the veth (or tap for VMs) device from the bridge, configure an IP address on that device directly and used that to communicate with the guest.

veth or tap devices behave like virtual ethernet cards. What you see on the host is your host side of it. The guest sees the other side. Every such card has a MAC addres. Since they're usually on a bridge, the mac address is usually unused.
 
  • Like
Reactions: lethargos

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!