:: Re: [DNG] systemd and wlan0 interfa…
Página Inicial
Delete this message
Reply to this message
Autor: Haines Brown
Data:  
Para: dng
Assunto: Re: [DNG] systemd and wlan0 interface problem
On Sun, Jul 01, 2018 at 11:30:46AM +0200, Stefan Krusche wrote:
> Am Samstag 30 Juni 2018 schrieb Haines Brown:
> > 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?
>
> Hello Haines,
>
> I have two network interfaces, one integrated and one additional networkcard,
> which of the names got switched by udev. I applied exactly the solution which
> you describe with placed these udev rules, so, I believe, the configuration
> from your jessie system will work. Just make sure that the MAC address matches
> on the new system. My lines:
>
> # PCI device 0x10ec:0x8139 (8139too)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
> ATTR{address}=="00:ac:bd:ce:df:xz", ATTR{dev_id}=="0x0", ATTR{type}=="1", \
> KERNEL=="eth*", NAME="net0"
>
> # PCI device 0x10ec:0x8168 (r8169)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
> ATTR{address}=="01:ac:bd:ce:df:xz", ATTR{dev_id}=="0x0", ATTR{type}=="1", \
> KERNEL=="eth*", NAME="lan0"
>
> Regards,
> Stefan


Stefan, sorry to be dense. I tried to copy the 70-persistent-net-rules
file from jessie /etc/udev/rules.d/ to the empty ascii
/etc/udev/rules.d/ directory. I changed the mac address to that of the
jessie wireless dongle (the value of ether that shows up with #
ifconfig).

Still No DHCPOFFERS.

I've assumed that the 70-persistent-net-rules file in /etc/udev/rules.d)
overwrites /lib/udev/rules.d/75-persistent-net-rules file.

Does not a /etc/udev/rules.d/70-persistent-net-rules file with the
following content not force udev to assign wlan0 to the interface rather
than use wlx<mac address>?

 # PCI device 0x1814:0x0601 (rt2800pci) 
 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",  ATTR{address}=="<the  \
 mac address>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", \
 NAME="wlan0"                    


If on the other hand I change the interface file on the ascii machine to
use the wireless dongle's mac address, such as wlx2123ff1a1794, by making
the first two lines of the interface read:

auto wlx2123ff1a1794
iface wlx2123ff1a1794 inet dhcp
...

wpa_supplicant fails to bring up wlx2123ff1a1794.

Haines