Find mac address suse linux

By default, SLES 10 uses udev to achieve persistent interface names. In rare cases where RedHat does not automatically configure the network interfaces, RedHat users may also have to perform the network configuration. VCS must be able to find the same network interface names across reboots. Symantec suggests the following steps for configuring network interfaces on SUSE. You must not reboot the system between configuring the persistent interface names and configuring the interfaces to be up before starting LLT.

I have below code but it just read from above layer but not the card itself!!! There must be a way to find it, because it is still burned permanently into the card, but I can't find a tool to read the burned in address. I suppose to write C code for it. Certainly in ethtool 3. It should work.


  1. 2011 mac mini server i7?
  2. Your Answer;
  3. Subscribe to RSS.
  4. SUSE Linux โ€“ How to Identify Logical and Physical Network Interface Names While Installing the OS.

The original answer is here: Notes of a Systems Admin. The only way to find the original MAC address is to use the same method the network card driver does - unfortunately, I don't believe there is a generic way to tell the driver to provide it's MAC address "as provided by the hardware". Of course, there are cases where there isn't a hardware network card for that particular interface - virtual network drivers for virtualization and when using bridges and software switches for example.

And of course, the hardware may be such that you can't actually read the "original" MAC address when it has been overwritten by software, because there is only one set of registers for the MAC address itself. I had a quick look at the pcnet As far as I can see, it supports no method of actually asking "what is your PROM ethernet address" - the MAC address is read out during the "probe1" section of the module initialization, and stored away.

No further access to those hardware registers is made. Well, the old ethernet address remains in the first bytes of the card eeprom at least for some types of cards , so it is possible to extract it using ethtool. This may not be the programmatic way, but why not search dmesg. Different NICs display the MAC address differently, but the log will always contain the kernel given name of the adapter in most cases eth0 or wlan0.

Changing Your MAC Address/Linux - Wikibooks, open books for an open world

Learn more about Teams. Asked 6 years, 5 months ago. Active 2 years, 6 months ago. Viewed 68k times. Jatin Bodarya.

6 comments

Jatin Bodarya Jatin Bodarya 2 2 gold badges 11 11 silver badges 26 26 bronze badges. Just because it is burned there, does not mean it HAS to be available. Services that may need this flexibility include isdn, pcmcia, and hotplug. Also, on system boot, a check is performed to see whether there is an uncleaned, modified resolv.

Change MAC Address on RedHat, FreeBSD, Gentoo, Arch Linux, Suse and Debian Distributions

In both cases, changes have a permanent effect. Modifications requested by the above-mentioned services are only temporary. If no name server is implemented, all hosts to which an IP connection will be set up must be listed here. For each host, a line consisting of the IP address, the fully qualified host name, and the host name e. The IP address must be at the beginning of the line, the entries divided by blanks and tabs. Comments are always preceded by the sign.

Here, network names are converted to network addresses.

Navigation menu

Name resolution โ€” the translation of host and network names via the resolver library โ€” is controlled by this file. This file is only used for programs linked to the libc4 or the libc5. A parameter must always stand alone in its own line. Comments are preceded by a sign. An example of nsswitch. Comments are introduced by signs.

In addition, automount , bootparams , netmasks , and publickey are expected in the near future. This file is used to configure nscd Name Service Cache Daemon. By default, the system entries of passwd and groups are cached by nscd. Instead of asking nscd to cache names, set up a caching DNS server. If the caching for passwd is activated, it usually takes about fifteen seconds until a newly added local user is recognized.

Here is the host name without the domain name attached. This file is read by several scripts while the machine is booting. It may only contain one line in which the host name is set. Apart from the configuration files described above, there are also various scripts that load the network programs while the machine is booting. Manual Network Configuration