interface naming (eth[x], wlan[x], etc)



Hello,

I have a few questions that I'm hoping I can get answered. I'll number
them for easier reference in potential replies.

1) Is interface naming controlled by the kernel, i.e. does the kernel
assign names to devices as it detects them? Although eth0, eth1, etc,
are often used in /etc/network/interfaces, this is not what creates the
interfaces, correct? This only refers to specific interfaces (eth0,
eth1, etc) if they have been created by the kernel, right?

2) What about order? If you have multiple NICs in your system, are you
garanteed that they will always be detected in the same order?

3) Also, in most of the wireless HOWTOs I've come across, it is often
assumed that the wireless interface will be wlan0. However, on my linux
distro (ubuntu 6) I'm using ndiswrapper with a broadcom native win
driver (don't know if this has anything to do with it), and the
wireless interface is always eth1. However if I examine
/var/log/messages, I see diagnostic messages referencing wlan0.

Thank you,
spip

.



Relevant Pages

  • Re: Wireless interface stopped working in Etch
    ... The rt2500 modules seem identical on the working system and the fresh install. ... I have begun again with a new fresh install, so the wireless interface has been autmatically named 'eth1'. ...
    (Debian-User)
  • Re: [Fwd: FC9 Network Config]
    ... eth0: negotiated 100baseTx-HD, link ok ... eth1: no link ... eth2 is no link... ... Shutting down interface eth0: ...
    (Fedora)
  • SNAT/MASQUERADE with two uplink connections
    ... I have a linux box (lets call it RTR) with 3 interfaces: ... the eth1 interface, while feeding the rest of the traffic through the link ... 1.1.1.0/29 dev eth1 proto kernel scope link src 1.1.1.2 ...
    (comp.os.linux.networking)
  • Re: Wireless interface stopped working in Etch
    ... has been autmatically named 'eth1'. ... The interface on the working system remains 'wlan0'. ... AP with "iwlist wlan0 scan"? ... cells regardless of the interval between commands. ...
    (Debian-User)
  • Re: Re: Controlling eth0,eth1,... assignment order?
    ... wireless and ethernet access but interface naming is not important. ... eth0 external I/F and eth1 internal I/F. ... > interface and don't have a reason to care which card is designated eth0 ...
    (Debian-User)