This has been around for too long:
[root@scox root]# ifconfig eth0:1 192.168.120.12/22 SIOCSIFNETMASK: Cannot assign requested address [root@scox root]# ifconfig eth0:1 192.168.120.12/22 [root@scox root]#
First time it fails to assign the specified netmask apparently because it is attempting to do so _before_ assigning the address. Second time it succeeds as the interface already has an address.
OTOH: [root@scox root]# ifconfig eth0:1 192.168.120.12 netmask 255.255.252.0 [root@scox root]#
succeeds the first time since the actions are executed in the right order: SIOCSIFADDR _then_ SIOCSIFNETMASK.
This patch against net-tools-1.60 defers the netmask ioctl when using implicit/CIDR notation till after the address has been assigned. IOW, it makes the 2 commands equivalent (as some of us might expect ;).
I managed to download and yum update this morning, however:
When I boot: I see lots of mod_ins segment faults. Seems to be that the arguments to mod_ins are illformed.
My network is not ifup after the boot. Moreover, when I do the little trick:
/etc/sysconfig/network-scripts/ifup eth0
there is a complaint that eth0 does not exist.
if I do /sbin/ifconfig I only see the lo device.
----
To get more updates, I need a network.
What is the best way to proceed manually to bring up eth0 so I can contact the outside world. (My inside world too - cannot contact this machine either).
System is i686 smp scsi ipv4 - smp538 kernel.
BobG
On Wed, 2004-09-01 at 14:00 -0500, Bob Gustafson wrote:
I managed to download and yum update this morning, however:
[...]
What is the best way to proceed manually to bring up eth0 so I can contact the outside world. (My inside world too - cannot contact this machine either).
Look in "/var/cache/yum/development/packages/". If you are lucky you should find an older version of module-init-tools that you can downgrade to. Once you've downgraded module-init-tools you should be able to reboot and get your networking back.
Jeff
On Wed, 1 Sep 2004, Malita, Florin wrote:
OTOH: [root@scox root]# ifconfig eth0:1 192.168.120.12 netmask 255.255.252.0 [root@scox root]#
succeeds the first time since the actions are executed in the right order: SIOCSIFADDR _then_ SIOCSIFNETMASK.
This patch against net-tools-1.60 defers the netmask ioctl when using implicit/CIDR notation till after the address has been assigned. IOW, it makes the 2 commands equivalent (as some of us might expect ;).
Shouldn't we rather be removing ifconfig or making it ready-only instead, as /sbin/ip seems to be vastly superior ?