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

Bug 104535

Summary: Renaming ethernet interface with udev causes net.* to fail when using DHCP
Product: Gentoo Linux Reporter: Christopher Warrington (c45207) <chris>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Severity: normal CC: gregkh
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on: 104280    
Bug Blocks: 126089    

Description Christopher Warrington (c45207) 2005-09-01 20:10:12 UTC
I have properly renamed my ethernet interface using udev. However, my net.lan  
script (which is liked to net.lo) does not work when I configure that interface  
to use DHCP.  
This seems to be a timing issue because if I add a "sleep 3" to net.lo, it  
works fine (or if I add some rc scripts).  
See this forum post:  

Reproducible: Always
Steps to Reproduce:
1. Rename ethernet interface.  
2. Configure that interface to use DHCP. 
3. Add the net.* script to the default runlevel. 
4. Restart computer. 
NB: Since this seems to be a timing issue, you may need to remove some other rc 
scripts you have so that the net.* script is started earlier. 
Actual Results:  
Aug 30 17:48:47 chris-tablet rc-scripts: lan does not exist  
 Aug 30 17:48:47 chris-tablet cron[5325]: (CRON) STARTUP (V5.0)  
 Aug 30 17:48:48 chris-tablet rc-scripts: ERROR:  Problem starting needed 
 Aug 30 17:48:48 chris-tablet rc-scripts:         "netmount" was not started.  
 Aug 30 17:48:51 chris-tablet tg3: lan: Link is up at 10 Mbps, half duplex.  
 Aug 30 17:48:51 chris-tablet tg3: lan: Flow control is off for TX and off for 

Expected Results:  
My LAN interface should have been brought up and handed over to dhcpcd to 
acquire an IP address.  

The udev rule: 
KERNEL=="eth*", SYSFS{address}="proper MAC address", NAME="lan"  
config_lan=( "dhcp" )  
Comment 1 Christopher Warrington (c45207) 2006-06-12 09:15:25 UTC
Seemes fixed (and has been for a while).