Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104535 - Renaming ethernet interface with udev causes net.* to fail when using DHCP
Summary: Renaming ethernet interface with udev causes net.* to fail when using DHCP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 104280
Blocks: udev-meta
  Show dependency tree
 
Reported: 2005-09-01 20:10 UTC by Christopher Warrington (c45207)
Modified: 2006-06-12 09:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:  
http://forums.gentoo.org/viewtopic-t-375493-highlight-.html  

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 
services.  
 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 
RX.  

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"  
 
/etc/conf.d/net: 
config_lan=( "dhcp" )  
dhcpcd_lan="-D"
Comment 1 Christopher Warrington (c45207) 2006-06-12 09:15:25 UTC
Seemes fixed (and has been for a while).