Hi! I have the ~x86 packages of gentoo installed and baselayout 1.12.0_pre11-r2. Since a few version updates I guess since 1.12.0 I have the problem that my network card is no longer configured correctly. I have a dhcpd running in my network and my notebook is configured to use this as primary source, but if that fails it should fall back to a static ip. This used to work, but has stopped now. This is the conf.d/net config: config_eth0=( "dhcp" ) dhcpcd_eth0="-t 4" # If a specified module fails (like dhcp - see below), you can specify a # fallback like so fallback_eth0=( "192.168.79.95 netmask 255.255.255.0" ) fallback_route_eth0=( "default via 192.168.79.1" ) and this happens when I run the net.eth0 script with unplugged network cable: * Starting eth0 * Bringing up eth0 * dhcp * Running dhcpcd ... [ !! ] * Trying fallback configuration * 192.168.79.95 [ ok ] * Adding routes * default ... [ ok ] * via ... gw: Host name lookup failure [ !! ] * 192.168.79.1 ... SIOCADDRT: Invalid argument [ !! ] and netstat tells me: netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.79.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0 Hope that helps to track it down. Reproducible: Always Steps to Reproduce: 1. Configure network wih dhcpd and static ip fallback 2. unplugg network cable 3. start net.eth0 Actual Results: invalid default route Expected Results: proper setup of eth0 and routes
Created attachment 73721 [details, diff] Fixes the issue Please test this patch against baselayout-1.12.0_pre11-r3
Yes thanks! That fixes the issue! Fabian
Patch applied to our svn repo - will be in baselayout-1.12.0_pre12
pre12 is now out