修改过程分两步: 1.使用iw dev查看无线网卡以及MAC地址 root@ubuntu:/opt# iw dev phy#0 Interface wlp3s0 ifindex 3 wdev 0
修改过程分两步:
1.使用iw dev查看无线网卡以及MAC地址
root@ubuntu:/opt# iw dev
phy#0
Interface wlp3s0
ifindex 3
wdev 0x1
addr 1c:4b:d6:81:77:7d
type managed
channel 3 (2422 MHz), width: 20 MHz, center1: 2422 MHz
txpower 20.00 dBm
2.新建设备规则文件70-persitstent-net.rules
root@ubuntu:/opt# cd /etc/udev/rules.d/
root@ubuntu:/etc/udev/rules.d# touch 70-persitstent-net.rules
root@ubuntu:/etc/udev/rules.d# vi 70-persitstent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1c:4b:d6:81:77:7d", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="wlan0"
root@ubuntu:/etc/udev/rules.d# reboot
注:2中的MAC地址需要填写1查出来的MAC地址。