Hi Az, this is my config in /etc/conf.d/net: ------------------------------------ kniffel root # cat /etc/conf.d/net #1.# Global config file for net.* rc-scripts # This is basically the ifconfig argument without the ifconfig $iface # iface_eth0="192.168.0.110 broadcast 192.168.0.255 netmask 255.255.255.0" #iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0" # For DHCP set iface_eth? to "dhcp" # For passing options to dhcpcd use dhcpcd_eth? # #iface_eth0="dhcp" #dhcpcd_eth0="..." # For adding aliases to a interface # alias_eth0="192.168.0.111 193.168.0.179 193.168.0.180" # NB: The next is only used for aliases. # # To add a custom netmask/broadcast address to created aliases, # uncomment and change accordingly. Leave commented to assign # defaults for that interface. # broadcast_eth0="192.168.0.255 193.168.0.191 193.168.0.191" netmask_eth0="255.255.255.255 255.255.255.244 255.255.255.244" # For setting the default gateway # gateway="eth0/192.168.0.1" -------------- this is what i get: ----------------- kniffel root # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 193.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth0 ----------------- and: ----------------- kniffel root # ifconfig eth0 Link encap:Ethernet HWaddr 00:50:DA:28:77:53 inet addr:192.168.0.110 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2837 errors:0 dropped:0 overruns:0 frame:0 TX packets:3682 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:2295917 (2.1 Mb) TX bytes:385099 (376.0 Kb) Interrupt:10 Base address:0x7400 eth0:0 Link encap:Ethernet HWaddr 00:50:DA:28:77:53 inet addr:193.168.0.191 Bcast:193.168.0.255 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:10 Base address:0x7400 eth0:1 Link encap:Ethernet HWaddr 00:50:DA:28:77:53 inet addr:193.168.0.179 Bcast:192.168.0.255 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:10 Base address:0x7400 eth0:2 Link encap:Ethernet HWaddr 00:50:DA:28:77:53 inet addr:193.168.0.180 Bcast:193.168.0.191 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:10 Base address:0x7400 ---------------- eth0 is okay. eht0:0 has a broadcast address as ip and the .255 as broadcast eth0:1 eth0:2 have correct ip's, but eth0:1 has a wrong broadcast ip.... when i startup /etc/init.d/net.eth0, i get this: ------------------ kniffel root # /etc/init.d/net.eth0 start * Bringing eth0 up... [ ok ] * Adding aliases... * eth0:0... SIOCSIFADDR: Invalid argument SIOCSIFADDR: Invalid argument [ ok ] * eth0:1... [ ok ] * eth0:2... SIOCSIFNETMASK: Invalid argument [ ok ] * Setting default gateway... [ ok ] ------------- is this a configuration or usage error? or is there a bug in net.ethX thanks best regards Thilo
Hi Have a look at: http://bugs.gentoo.org/show_bug.cgi?id=7407 and see if that is the cause. Also try the latest baselayout.
just curious but did you intend on having 193.x.x.x address space aliased?
yes bug #7407 seems to address the same problem upgrading to baselayout-1.8.4 did help, but the netmasks still do not get assigned correctly. no i did not try a 193.* net *** This bug has been marked as a duplicate of 7407 ***
Can you give the output if ifconfig, plus /etc/conf.d/net now please. Also some debugging would be appreciated.