Am So, den 24.07.2005 schrieb John Que um 12:13: > I had in the past 2 IP addresses on my Fedora. > after I boot , ifconfig still shows 2 IP addresses: > on eth0 : > 192.168.0.10 > > and the second one is an external IP > on eth0:1 is (for example) > 201.121.241.115 > > Most of the time I need only the inner ip ; > so I renamed ifcfg-eth0:1 under > /etc/sysconfig/network-scripts to ifcfg-eth0:1.old. > So from where does it takes the 201.121.241.115 for eth0:1 after boot even > that I renmed the file name to ifcfg-eth0:1.old.? > and what should I do to avoid it ? > John Your renaming is wrong, or at least does not lead to the result you are expecting. Rename "ifcfg-eth0:1" to "inactive.ifcfg-eth0:1". Why? $ grep -n ifcfg /sbin/ifup 220: for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do 328: for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do 401: for device in `fgrep -l "MASTER=${DEVICE}" /etc/sysconfig/network-scripts/ifcfg-*` ; do Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 16:05:06 up 8 days, 20:37, load average: 0.71, 0.83, 0.70
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil