ifcfg-eth0 question

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?

Thanks,
soft-e

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. :wink:

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):

ifconfig

similar to Window’s ‘ipconfig’ but better. :slight_smile:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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. :slight_smile:
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJL/Q2hAAoJEF+XTK08PnB5KfAQAKL3kPLSjydpNKEbS+1S/xwX
Lgc0TTJ5TbldUZqrHFHeMJi35XrfKQLAru3ffnaRLR3VggECqiXJQDK7FujKEzJ2
wX+XlfDt7Ac3qXVThCcv3jW8JdcPLR1bDbw50ctjZRFUToK4UshnzhUoejolxFNw
DrTPavvnZl6BaiSjHgMWBwbwxSHvnodJ896h1wAJfXUwy8Ky2pDT956z0hHpjrdH
xkAg5dqKbU5AuKY7o9ibKicaiLVDDNR7+++Fr1vEzIYO5dDVdk8aX1zvA/v2oJKP
mJo7CpZ20vr4E20gUvjBk/L3rY5Dn8POHPZkxOAcSAU7ja48R1wuqQfuqjbI+W1E
ZCyIXUuEaA7b+UQvYP23t+3a8gisjZhJ8SQrRYIOt9HQln34p7x1GeARnCx4y2/V
W31GnMgufUGDeZvKi9YCdA2W8V0pKV5e+V2/B+j48xWHeyTN9LlSz0G7W/Df4Usg
QgNgjWFgXd1TC+39JxXHzPkBOj4lMOAb370x7MdZpSB601HyMsob/SrZxuIzIhMv
1CnsPUvAJ1v0yxHoftHMeK7tObLgqTrkSa4Q/IkkHel0gHmZzzqKxvRdVY8nENB2
uBKS1nVJRGWWyzAIT9wJ0bItEUOLxFz4RtZ2GZrvdM8lWoaOwnmUlT7s0LobYP2U
v8VsnCRytIVqDFfN46UB
=PjvI
-----END PGP SIGNATURE-----