Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113776 - net.eth0 fallback after dhcpd fails to set defaultroute
Summary: net.eth0 fallback after dhcpd fails to set defaultroute
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-28 04:29 UTC by Fabian Sturm
Modified: 2005-12-20 10:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the issue (net.lo.patch,415 bytes, patch)
2005-11-28 05:25 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Sturm 2005-11-28 04:29:57 UTC
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
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-11-28 05:25:20 UTC
Created attachment 73721 [details, diff]
Fixes the issue

Please test this patch against baselayout-1.12.0_pre11-r3
Comment 2 Fabian Sturm 2005-11-28 05:30:03 UTC
Yes thanks! That fixes the issue!
Fabian
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-11-28 06:09:12 UTC
Patch applied to our svn repo - will be in baselayout-1.12.0_pre12
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-12-20 10:10:51 UTC
pre12 is now out