From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011014 Description of problem: If i define an IP alias interface in /etc/sysconfig/network-scripts under the name ifcfg-eth0:0 (but any other correct name will do) and i don't have linuxconf installed, then /etc/init.d/network will fail to create the IP alias interface when system boots up. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Create /etc/sysconfig/network-scripts/ifcfg-eth0:0 and put the right information inside that file 2.make sure linuxconf is NOT installed 3.reboot the system Actual Results: eth0:0 is not created Expected Results: eth0:0 should be created as an IP alias to eth0 using the settings from /etc/sysconfig/network-scripts/ifcfg-eth0:0 Additional info: Here's a quote from /etc/init.d/network: # if linuxconf isn't around to figure stuff out for us, # we punt. Probably better than completely reloading # networking if user isn't sure which to do. If user # is sure, they would run restart or reload, not probe. See? Linuxconf it's actually required in order to create IP aliases when the system boots up, but linuxconf is no longer included in Red Hat distribution. :-/ Catch 22, huh? There are two solutions to this problem: make linuxconf be installed by default so that IP aliases are correctly created, or fix the damn script. I've seen this problem also with 7.1, and i assume it's the same with 7.0 too. That's bad. Please fix it.
Please read the code you're quoting. It's from a part of the init script that has nothing to do with aliases. aliases work fine here without linuxconf, and have for a while. What did you put in the ifcfg-eth0:0 file?
Ok, here's an example of ifcfg-eth1:0 DEVICE=eth1 BROADCAST=192.168.0.255 IPADDR=192.168.0.253 NETMASK=255.255.255.0 NETWORK=192.168.0.0 ONBOOT=yes Run ifdown eth1; ifup eth1 and the alias is not configured.
The DEVICE entry is wrong; it needs to be the name of the alias, i.e.: DEVICE=eth1:0 Change it to that and it should work fine.
Ok, now i have this in /etc/sysconfig/network-scripts/ifcfg-eth1:0 DEVICE=eth1:0 BROADCAST=192.168.0.255 IPADDR=192.168.0.253 NETMASK=255.255.255.0 NETWORK=192.168.0.0 ONBOOT=yes And i have this in /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 BOOTPROTO=static BROADCAST=192.168.0.255 IPADDR=192.168.0.254 NETMASK=255.255.255.0 NETWORK=192.168.0.0 ONBOOT=yes And if i run ifup/ifdown on eth1 i get this: [root@stantz root]# ifdown eth1 [root@stantz root]# ifup eth1 SIOCSIFADDR: File exists SIOCSIFFLAGS: Cannot assign requested address SIOCSIFNETMASK: Cannot assign requested address SIOCSIFBRDADDR: Cannot assign requested address SIOCSIFFLAGS: Cannot assign requested address [root@stantz root]#
I just added those exact files and it works fine for me; perhaps you have some stale configuration around? Try running 'ip addr flush dev eth1'.
Also, you may want to try initscripts-6.40.1-1 or later from rawhide.