I've long struggled with a problem with a new installation of ascii. I
can get an ethernet connection, but with a usb WiFi dongle using an
Atheros chip, my wlan0 interface gets automatically changed to wl<mac
address>, and so cannot communicate with DHCP.

This can tie into a bug in Network Manager, but I use wicd.

I get the impression that with systemd, udev automatically assigns
predictable stable interface names, I suppose so that you can have
multiple cards or USB devices for WiFi. I am using Wireless N USB
Adapter (TPE-N150USB) dongle from ThinkPenguin.

The suggestions to deal with this is to change the udev rule for
defining the WiFi interface name. There are three methods suggested:

a) append the line "net.ifnames=0" to /etc/default/grub. I did this and
rebooted to no effect.

b) manually create your own naming scheme to name interfaces wlan0 and
place it before the default policy file. For example, name the file
/etc/udev/rules.d/70-my-net-names.rule. I did not attempt this because
I'm in over my head when it comes to defining udev rules.

c) alter the default policy for picking a different naming
scheme by copying /lib/udev/rules.d/80-net-link-setup.rules to
/etc/udev/rules.d/ and then edit it appropriately. 

In my devuan jessie machine, there is such a file and it has
two lines. One is:

# PCI device 0x1814:0x0601 (rt2800pci)  \
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",  \
ATTR{address}=="68:1c:a2:04:21:74", ATTR{dev_id}=="0x0", \
ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

There is another line # PCI device 0x8086:0x153b (e1000e) \
SUBSYSTEM=="net", ...

However, on my new ascii machine, the directory /etc/udev/rules.d/ is
empty. Can I simply copy the 70-persistent-net.rules file from my old
Devuan jessie machine to the new ascii machine and uncomment the two
lines?

Haines Brown

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to