Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131784 - baselayout 1.12.0_pre18-r1 - rename_MAC="lan" does not work
Summary: baselayout 1.12.0_pre18-r1 - rename_MAC="lan" does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 04:19 UTC by Gioele Barabucci
Modified: 2006-05-01 02:12 UTC (History)
0 users

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 Gioele Barabucci 2006-04-30 04:19:28 UTC
rename_XXX="lan" does not rename the interface with MAC address XXX to lan.

I have baselayout 1.12.0_pre18-r1 and this /etc/conf.d/net:
| rename_000d93c21c6a="lan"
| rename_003065178ec2="wlan"
| 
| dhcp="nontp nonis"
| 
| config_lan=( "dhcp" )
| fallback_lan=( "apipa" )
| dhcpcd_lan="-t 5"
| 
| config_wlan=( "dhcp" )
| dhcpcd_wlan="-t 15"

COLDPLUG is set to "yes !eth.wlan"

| $ /sbin/ip link
| 2: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP>
|     link/ether 00:0d:93:c2:1c:6a brd ff:ff:ff:ff:ff:ff
| 3: eth1: <BROADCAST,MULTICAST>
|     link/ether 00:30:65:17:8e:c2 brd ff:ff:ff:ff:ff:ff
(I manually set eth0 up to send this bug)

This is the error I get when I try to activate the interface "lan"

 * Starting lan
 *   Loading networking modules for lan
 *     modules: apipa arping ccwgroup macchanger macnet rename iwconfig essidnet iptunnel iproute2 system dhcpcd ip6to4
 *       iwconfig provides wireless
 *       iproute2 provides interface
 *       dhcpcd provides dhcp
 *   Bringing up lan
 *     dhcp
 *       network interface lan does not exist
 *       Please verify hardware or kernel module (driver)
 *     Trying fallback configuration
 *     apipa
 *       network interface lan does not exist
 *       Please verify hardware or kernel module (driver)                                     [ !! ]

eth0 is a sungem card, and eth1 is an airport card.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-04-30 09:12:42 UTC
(In reply to comment #0)
> rename_XXX="lan" does not rename the interface with MAC address XXX to lan.
> 
> I have baselayout 1.12.0_pre18-r1 and this /etc/conf.d/net:
> | rename_000d93c21c6a="lan"
> | rename_003065178ec2="wlan"

rename_000D93C21C6A="lan"
rename_003065178EC2="wlan"

MAC address should be uppercase for baselayout.
Comment 2 Gioele Barabucci 2006-04-30 15:29:52 UTC
It does not work even if I make the MAC address uppercase, please reopen.

I found that "rename" works only if I create a link from net.lo to 'net.eth0'. I deleted that link in favor 'net.lan'.

If I keep the link to net.eth0, the startup script says that it is going to activate net.eth0, then tries to activate eth0 but discovers that "eth0" is to be renamed to "lan" and does so. In the end the script launches net.lan and everything works.

I think that the interface should be called even if there is not an net.eth0 script around.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-05-01 02:12:59 UTC
It is designed to work exactly as you describe.
If you don't want that initial net.eth0 script then you *have* to rename the interface using some other method, like writing a udev rule for example.

See http://www.reactivated.net/writing_udev_rules.html for a good guide.