How can I see the mac address of the ethernets on the computer where the Proxmox machine is installed?

pilgrimage

Member
Oct 17, 2021
62
2
13
44
Hello, there are 3 ethernet cards on the Proxmox Server server. I want to see the actual mac addresses of these Ethernet cards. What is the linux command to see mac addresses? I'm not asking for VMs. I am asking the mac address of the hardware ethernet cards on the machine running on Proxmox.

thankyou for support.
 
EDIT:

How to see MAC addresses of passed through Ethernet ports in Proxmox management WebGUI or CLI? Ethernet ports are shown as PCI devices. If I used a Linux brigde, MAC addresses would be visible.

1720517669716.png
 
Last edited:
The picture shows pci devices, not network devices, therefore are there no mac addresses.

I can recommend to NOT use passthrough and model everything directly in PVE and let virtualization do its best.
 
Reading the MAC address from an Ethernet device requires software, namely the driver for the device. It is not externally visible like a PCI ID (typically the MAC is stored in non-volatile memory on the card). Since you passed the devices to a VM, no driver will be loaded on the host so the host can't read the addresses. They are just generic PCI devices to the host.

You should, however, be able to load a driver in the VM and read the MAC addresses from inside the VM.
 
Reading the MAC address from an Ethernet device requires software, namely the driver for the device. It is not externally visible like a PCI ID (typically the MAC is stored in non-volatile memory on the card). Since you passed the devices to a VM, no driver will be loaded on the host so the host can't read the addresses. They are just generic PCI devices to the host.

You should, however, be able to load a driver in the VM and read the MAC addresses from inside the VM.
hi I have different question how to see mac address of the proxmox in order to set ip reservation on my router and do port forwarding so i can access it from different pc not connected to my local network and is this the way to do it ?
 
"ip a" will show the mac address of all your interfaces. See the "link/ether" line. This is from a non-PVE Linux machine that has a bridge similar to PVE but with a different name:

Code:
$ ip a
<deleted>
6: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 9e:df:1f:ac:fe:5a brd ff:ff:ff:ff:ff:ff
    inet 192.168.52.12/24 brd 192.168.52.255 scope global br0

The "link/ether" item is the MAC, in this case 9e:df:1f:ac:fe:5a. Your bridge is probably "vmbr0" rather than "br0" but the output will be similar.
 
  • Like
Reactions: t.m

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!