美文网首页
树莓派修改wlan0 to wlan1

树莓派修改wlan0 to wlan1

作者: 东京的雨不会淋湿首尔 | 来源:发表于2019-10-24 09:39 被阅读0次

In order to enable the ability to assign user-defined names to USB network interfaces, we need to have /etc/udev/rules.d/80-net-setup-link.rules, as this is the rule set 73-usb-net-by-mac.rules checks against before assigning NAME.
This means that simply linking from /etc/udev/rules.d/80-net-setup-link.rules to /lib/udev/rules.d/80-net-setup-link.rules is needed in order to avoid that user-assigned network interface names get ignored any longer.
sudo ln -s /lib/udev/rules.d/80-net-setup-link.rules /etc/udev/rules.d/80-net-setup-link.rules
Reboot. Done.

执行如下命令:

sudo ln -s /lib/udev/rules.d/80-net-setup-link.rules  /etc/udev/rules.d/80-net-setup-link.rules

然后修改/etc/udev/rules.d/80-net-setup-link.rules:

sudo nano /etc/udev/rules.d/80-net-setup-link.rules

在底部插入这两行。其中把ATTR改成对应网卡mac,mac可以用ifconfig看,NAME改对应的名字即可

# wlan0
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="AA:BB:CC:DD:EE:FF", KERNEL=="wlan*", NAME="wlan0"

# wlan1
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:22:33:44:55", KERNEL=="wlan*", NAME="wlan1"

相关文章

  • 树莓派修改wlan0 to wlan1

    In order to enable the ability to assign user-defined nam...

  • 树莓派网络配置

    1. 查看树莓派已经扫描出来的wifi iwlist wlan0 scan 2. 配置wifi相关信息 sudo ...

  • 树莓派串口配置及minicom的安装

    1.树莓派串口配置:树莓派串口默认用于终端调试,如需使用串口,则需要修改树莓派设置。执行如下命令进入树莓派配置:s...

  • 树莓派(Raspberry Pi)修改系统镜像(img)

    树莓派修改系统镜像 讨论如何使用通过loop设备映射文件,挂载树莓派img中的分区,然后像普通的文件系统那样修改镜...

  • 树莓派4B安装Git

    手把手教你在树莓派上配置Git 1.为树莓派更换国内镜像源 1.1修改软件更新源 首先为树莓派更换国内镜像源,在终...

  • 树莓派3b+ 开机自启动+预约关机

    树莓派开机自启动 树莓派开机自启动python程序的方法有很多,这里介绍实验成功的方法——修改rc.local文件...

  • 树莓派快速配置frp

    客户端(树莓派) 在frpc中修改信息 运行 自启动处理

  • 树莓派针脚图

    树莓派40Pin引脚对照表 本表格适用于树莓派B+、树莓派2B、树莓派A+,并且兼容树莓派B,树莓派B为26Pin...

  • 树莓派 修改国内源地址

    1. 打开文件 2. 修改地址 3. 修改系统更新源 4. 更新树莓派

  • 树莓派上手资料

    树莓派开箱上手教程树莓派下载资料使用手机连接树莓派1使用手机连接树莓派2树莓派实验室无显示屏启动树莓派 如何用pu...

网友评论

      本文标题:树莓派修改wlan0 to wlan1

      本文链接:https://www.haomeiwen.com/subject/cgcrvctx.html