Excerpts from Robin Martinjak's message of 2011-06-17 13:03:44 +0200:
$ sudo NETCFG_DEBUG="yes" netcfg ethernet-moheim-static DEBUG: Loading profile ethernet-moheim-static DEBUG: Configuring interface eth0 :: ethernet-moheim-static up [BUSY] DEBUG: status reported to profile_up as: DEBUG: Loading profile ethernet-moheim-static DEBUG: Configuring interface eth0 DEBUG: ethernet_iproute_up ifup DEBUG: ethernet_iproute_up ip addr add 143.205.216.123/24 brd + dev eth0 DEBUG: ethernet_iproute_up ip route add default via 143.205.216.255 RTNETLINK answers: Invalid argument > Adding gateway 143.205.216.255 failed DEBUG: profile_up connect failed [FAIL]
Pretty disappointing, considering that rc.conf and a really dumb bash script just works. The dhcp config is straight from the examples, the static one looks like this: CONNECTION='ethernet' DESCRIPTION='A basic static ethernet connection using iproute' INTERFACE='eth0' IP='static' ADDR='143.205.216.123' GATEWAY='143.205.216.255' DNS=('143.205.64.51','143.205.64.52','143.205.176.16','143.205.176.17')
Any ideas what's wrong?
I don't have time to look at this in the next few days, so please file bug report and it will not be forgotten.
-t
Thanks Tom, I'll do so.
Philipp
Try setting a NETMASK;
DEBUG: ethernet_iproute_up ip addr add 143.205.216.123/24 brd + dev eth0 Looks like netcfg is assuming a /24 netmask which makes 143.205.216.255 a net address (which ofc can't be used as a gateway)
Regards, Robin
Afaik the /24 is correct for the local network, although I don't know what it means. Seems like this is called prefix length in the switch. The netmask according to the switch settings is 255.255.255.0. It definitely worked in rc.conf with 255.255.0.0 as netmask and aforementioned gateway, some links that can shed light on this stuff, especially the strange /24, would be welcome.