Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85659

Summary: Improvement for 'net.ethXX' in fallback case
Product: Gentoo Linux Reporter: Pawel Kraszewski <daemon>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: minor CC: kbenoit
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 66472    
Attachments: Patch for net.eth0 adding new 'gateway_fallback' option

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. ***