Why does new Dapper udev build conflict with ifrename?
John L Fjellstad
john-ubuntu at fjellstad.org
Fri Jun 2 02:21:56 UTC 2006
"Carlos Picazzo" <ojaiguy at gmail.com> writes:
> Sorry for the delayed response, Dennis but I was wondering how you can tell
> udev about what interfaces to map to what name? With ifrename, it was /etc/
> iftab -- is it something similar?
>
> Thank you very much,
Do /sbin/ifconfig, this should give you your mac address.
For instance, at my place
-- liem at minerva:/etc$ /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56411 errors:0 dropped:0 overruns:0 frame:0
TX packets:56411 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7135474 (6.8 MiB) TX bytes:7135474 (6.8 MiB)
wlan0 Link encap:Ethernet HWaddr 00:13:02:05:C2:BC
inet addr:192.168.10.16 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::213:2ff:fe05:c2bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:849175 errors:137 dropped:2805 overruns:0 frame:0
TX packets:509003 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:394065129 (375.8 MiB) TX bytes:384014562 (366.2 MiB)
Interrupt:177 Base address:0x2000 Memory:fe1ff000-fe1fffff
The mac address is the HWaddr
In /etc/iftab, set your mac address and new name, for instance, for me:
liem at minerva:/etc$ cat iftab
# This file assigns persistent names to network interfaces.
# See iftab(5) for syntax.
# Replaced during upgrade
#wlan0 mac 00:13:02:05:C2:BC
wlan0 mac 00:13:02:05:c2:bc arp 1
So, my wireless connection always get the name wlan0 (the first wlan0
line is mine, I think when I upgraded, "they' changed it to the second
line).
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
More information about the ubuntu-users
mailing list