Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85659 - Improvement for 'net.ethXX' in fallback case
Summary: Improvement for 'net.ethXX' in fallback case
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 93276 (view as bug list)
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-03-17 09:50 UTC by Pawel Kraszewski
Modified: 2005-05-19 18:45 UTC (History)
1 user (show)

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


Attachments
Patch for net.eth0 adding new 'gateway_fallback' option (fallbackgateway.patch,972 bytes, patch)
2005-03-17 09:52 UTC, Pawel Kraszewski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Kraszewski 2005-03-17 09:50:35 UTC
When one uses DHCP with fallback to static IP, the gateway may be set wrong.
Following patch allows new option:
gateway_fallback='ethXX/xx.xx.xx.xx'
The option is used, when fallback IP settings are used.


Reproducible: Always
Steps to Reproduce:
1. Setup ifconfig_eth0 to DHCP
2. Setup ifconfig_fallback_eth0 to static IP


Actual Results:  
If one sets    
 gateway='eth0/IP.IP.IP.IP'    
the option overwrites DHCP settings and (in the case when DHCP network <>  
static network) makes connection fail due to wrong gateway.    
 
If one omits gateway, the fallback connection does not work due to missing    
gateway.    

Expected Results:  
In 'DHCP fallback to static' case 'gateway' should be not read and applied 
when DHCP succeeds OR new 'gatewat_fallback' option should be created.
Comment 1 Pawel Kraszewski 2005-03-17 09:52:15 UTC
Created attachment 53709 [details, diff]
Patch for net.eth0 adding new 'gateway_fallback' option
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-03-17 14:34:06 UTC
baselayout-1.11.10-r2 supports the fallback_route option so you can define the following

fallback_route_eth0=( "default via 192.168.0.1" )
Comment 3 SpanKY gentoo-dev 2005-05-19 18:45:05 UTC
*** Bug 93276 has been marked as a duplicate of this bug. ***