Hello,
I was hoping to see a /etc/sysconfig/network/ifcfg-eth0 file for my eth0 network interface. But instead I see a file name in this format ifcfg-eth:a:b:c:d
This server has only one ip address and the DEVICE=eth0 and there is no alias involved.
What are the rules governing the naming of the file “ifcfg-eth”? What does the above format mean?
The network config files are usually ifcfg-eth* files. OpenSUSE configures these devices via YaST, and the naming relates to the corresponding device’s MAC address AFAIU.
Udev handles the association between various devices and the network node name they get assigned.
So why does one server have ipcfg-eth0 as the network interface file while another has ipcfg-eth:<MAC> address? How is this decided. I’m fairly new to linux, can you please tell me how I can view my NIC device information through udev? Are there any commands?
That was in older openSUSE and SUSE releases before udev. As deano_ferrari says, udev does the mapping from MAC address to device name now so the config file doesn’t have to hold info about the MAC address.
BTW it’s ifcfg, you may have been spending too much time around Windows.
I’m fairly new to linux, can you please tell me how I can view my NIC device information through udev?
There are rules for handling various hardware devices, with the network ones located in /etc/udev/rules.d/70-persistent-net.rules or similar. It is possible to customise these, to alter naming (and other behaviour) if required.
This command should show you the current MAC and device node association(s):
And for the best version of the command, save yourself time and effort and
just use ‘ip’.
ip addr
ip route
ip link
Great stuff.
Good luck.
On 05/26/2010 12:06 AM, deano ferrari wrote:
>
>> I’m fairly new to linux, can you please tell me how I can view my NIC
>> device information through udev?
>
> There are rules for handling various hardware devices, with the network
> ones located in /etc/udev/rules.d/70-persistent-net.rules or similar. It
> is possible to customise these, to alter naming (and other behaviour) if
> required.
>
> This command should show you the current MAC and device node
> association(s):
>
>
> Code:
> --------------------
> ifconfig
> --------------------
>
>
> similar to Window’s ‘ipconfig’ but better.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/