If the network paremeters as specified in the /etc/conf.d/net file do not contain default class A,B or C netmasks / broadcast adresses ex. network : 10.10.10.10/29 resulting in iface_eth0="10.10.10.11 broadcast 10.10.10.17 netmask 255.255.255.248" when aliases are added to the /etc/conf.d/net file the broadcast adress for the aliasses is set to 10.255.255.255 and the netmask is set to 255.0.0.0 ex. alias_eth0="10.10.10.12 10.10.10.13" In order to resolve this beheaviour I added the following parameters to /etc/conf.d/net (quick workaround) netmask_eth0="255.255.255.248" broadcast_eth0="10.10.10.17" and I altered the net.eth0 script : ------------------------------------------------------------- if [ -n "`eval echo \$\{netmask_${IFACE}\}`" ] then NM=`eval echo \$\{netmask_${IFACE}\}` ADD_netmask=" netmask ${NM}" else ADD_netmask="" fi if [ -n "`eval echo \$\{broadcast_${IFACE}\}`" ] then BC=`eval echo \$\{broadcast_${IFACE}\}` ADD_broadcast=" broadcast $BC" else ADD_broadcast="" fi if [ -n "`eval echo \$\{alias_${IFACE}\}`" ] then local x="" local num=0 for x in `eval echo \$\{alias_${IFACE}\}` do /sbin/ifconfig ${IFACE}:${num} $x $ADD_broadcast $ADD_netmask num=$((num + 1)) done fi ------------------------------------------------------------------------ instead of ------------------------------------------------------------------------ if [ -n "`eval echo \$\{alias_${IFACE}\}`" ] then local x="" local num=0 for x in `eval echo \$\{alias_${IFACE}\}` do /sbin/ifconfig ${IFACE}:${num} $x num=$((num + 1)) done fi ------------------------------------------------------------------------
changing owner
back to blizzy