FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-11-2008, 08:11 PM
Kenneth Porter
 
Default Adding Ethernet alias (why 3 hard links for an ifcfg-eth file?)

I need to add eth0:1 with a new IP address to my C5-based router.

Does a design document exist for the ifcfg family of scripts that explains
how they're to be used? Before I go digging through the script hierarchy
I'm hoping someone can point me to documentation to make the process easier.


One confusing issue is that the ifcfg-eth* files in
/etc/sysconfig/network-scripts are hard-linked to same-named scripts in
sibling directories:


85327883 8 -rw-r--r-- 3 233 Apr 11 12:34
./networking/devices/ifcfg-eth1
85327884 8 -rw-r--r-- 3 210 Apr 11 12:34
./networking/devices/ifcfg-eth0
85327883 8 -rw-r--r-- 3 233 Apr 11 12:34
./networking/profiles/default/ifcfg-eth1
85327884 8 -rw-r--r-- 3 210 Apr 11 12:34
./networking/profiles/default/ifcfg-eth0

85332182 8 -rw-r--r-- 1 254 Jun 20 2001 ./network-scripts/ifcfg-lo
85327883 8 -rw-r--r-- 3 233 Apr 11 12:34 ./network-scripts/ifcfg-eth1
85327884 8 -rw-r--r-- 3 210 Apr 11 12:34 ./network-scripts/ifcfg-eth0

(I excised the ownerships to make these fit on a line. First column is the
inode number.)


I'm not using a GUI, and I figure the easiest way to add an alias is by
hand-editing a new config file, but I'd like to know what these hard links
are for. Which scripts reference the 3 different paths?

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 01:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org