侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

Ubuntu17.04修改无线网络名称

2023-11-08 星期三 / 0 评论 / 0 点赞 / 46 阅读 / 1137 字

修改过程分两步: 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地址。

广告 广告

评论区