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