MAC address for AD Container?

Hey all, how do I find the mac address for the AD container running Samba4? It’s slightly odd but our procedure at this client is to document even static IPs in the router’s DHCP lease table, and I need a MAC address to do this.

On your Nethserver prompt type the following to jump into the container:

As there is no ifconfig we have to get back to the roots…

cat /sys/class/net/host0/address

EDIT:
Oneliner from Nethserver prompt also possible:

cat /var/lib/machines/nsdc/sys/class/net/host0/address

3 Likes

fantastic thank you

This should be written in the useful command in the wiki

Merci

Happy to present my first wiki entries:
https://wiki.nethserver.org/doku.php?id=howto:useful_commands#get_mac_address_without_ifconfig
https://wiki.nethserver.org/doku.php?id=howto:useful_commands#get_mac_address_of_nsdc_interface

7 Likes

thank you mate

1 Like