assign wlan0 permanently for internal wifi

82 views
Skip to first unread message

Aharon

unread,
Jan 4, 2012, 7:22:58 AM1/4/12
to pandaboard
Hi

I'm running a pandaboard with an external USB wifi dongle attached.
I use the boards built in wifi for internet connection and the USB
wifi for other purposes.
How could I set that the internal wifi is always wlan0 and the USB
wifi is always wlan1 ?

I assume some sort of udev rule, I just can't think of which

Many Thanks!

Robert Nelson

unread,
Jan 4, 2012, 10:49:28 AM1/4/12
to panda...@googlegroups.com

Take a look at:

/etc/udev/rules.d/70-persistent-net.rules (the actual name could
vary, but ubuntu usually keeps it consistent between releases)

Once you connect a few wifi adapters, it's pretty obvious what it's doing. ;)

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Joshi, Vikas

unread,
Jan 5, 2012, 3:56:10 AM1/5/12
to panda...@googlegroups.com
Will /etc/network/interfaces help?

Are you using DHCP or static IP?

A possible entry in /etc/network/interfaces can be:

auto wlan0
iface wlan0 inet dhcp
pre-up /etc/init.d/wpa.sh start
post-down /etc/init.d/wpa.sh stop

Vikas

Aharon

unread,
Jan 5, 2012, 4:22:44 AM1/5/12
to pandaboard


> On Jan 4, 5:49 pm, Robert Nelson <robertcnel...@gmail.com> wrote:
> Take a look at:
>
> /etc/udev/rules.d/70-persistent-net.rules  (the actual name could
> vary, but ubuntu usually keeps it consistent between releases)
>
> Once you connect a few wifi adapters, it's pretty obvious what it's doing. ;)
>
> Regards,
>
> --
> Robert Nelsonhttp://www.rcn-ee.com/

Thanks for the help, I'll just clarify the issue abit further:
Using the default 70-persistent-net.rules is difficult since it makes
rules based on the cards MAC address.
Our project could eventually require many pandaboards and I don't want
to manually reconfigure each one. I'm trying to write a script which
can automatically detect which wifi is internal and assign that one to
wlan0 on the installation of a new board.

Thanks!
Aharon

Robert Nelson

unread,
Jan 5, 2012, 2:17:26 PM1/5/12
to panda...@googlegroups.com

In that case, leave the mac address blank and use the "DRIVERS"
parameter for wlan0... Assuming the 2nd wifi isn't a "wl12xx" based
device it should work fine..

Reply all
Reply to author
Forward
0 new messages