WTH is up with this network config?

Roberto Ragusa mail at robertoragusa.it
Thu Apr 29 21:42:43 UTC 2010


jack craig wrote:
> + . /etc/sysconfig/network-scripts/ifcfg-eth0
> ++ DEVICE=eth0
> ++ BOOTPROTO=static
> ++ DNS1=10.0.0.199
> ++ GATEWAY=10.0.0.129
> ++ HWADDR=00:26:18:FE:75:91
> ++ IPADDR=10.0.0.100
> ++ NETMASK=10.0.0.255

This netmask is weird. Maybe should have been 255.0.0.0 or 255.255.255.0.
Confusion with broadcast address?

> + OTHERSCRIPT=/etc/sysconfig/network-scripts/ifup-eth
> + '[' '!' -x /etc/sysconfig/network-scripts/ifup-eth ']'
> + exec /etc/sysconfig/network-scripts/ifup-eth ifcfg-eth0
> RTNETLINK answers: Cannot allocate memory
> Failed to bring up eth0.

The -x is lost at the exec command.

Add a new line "set -x" in /etc/sysconfig/network-scripts/ifup-eth
just after the #!/bin/bash line.
Something more will be logged, then.
We want to see where the address and netmask is set.

-- 
   Roberto Ragusa    mail at robertoragusa.it


More information about the users mailing list