分页: 1 / 1

ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-01 17:56
ps3wifi
请教各位一下,我在/etc/network/interface修改网卡的名字,结果重启网卡都找不到,说是/etc/udev/rule.d/有个70什么开头的文件,通过它修改,结果发现没有这个文件,手动建立这个70开头的文件也不行,麻烦问下怎么才能修改网卡的名称,我现在的网卡不知道怎么回事ifconfig显示的是eno16777736不是eth0,还想问下大家clamav升级病毒库提示dns解析错误怎么解决,ping db.local.clamav.net也是通的

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-01 18:02
vickycq
禁用 Predictable Network Interface Names 特性
方法一

代码: 全选

sudo ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
方法二
在 /etc/systemd/network/ 中手动创建 .link 指定名称。具体参考 http://www.freedesktop.org/software/sys ... .link.html

参考
http://www.freedesktop.org/wiki/Softwar ... faceNames/
https://onemoretech.wordpress.com/2014/ ... nterfaces/

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-01 18:29
poloshiao
http://askubuntu.com/a/694936
/etc/udev/rules.d/10-network.rules

代码: 全选

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="MAC:ADDRESS",KERNEL=="enp4s8", NAME="eth0"

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-02 9:29
ps3wifi
vickycq 写了:禁用 Predictable Network Interface Names 特性
方法一

代码: 全选

sudo ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
方法二
在 /etc/systemd/network/ 中手动创建 .link 指定名称。具体参考 http://www.freedesktop.org/software/sys ... .link.html

参考
http://www.freedesktop.org/wiki/Softwar ... faceNames/
https://onemoretech.wordpress.com/2014/ ... nterfaces/
没有这个文件

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-02 9:32
ps3wifi
vickycq 写了:禁用 Predictable Network Interface Names 特性
方法一

代码: 全选

sudo ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
方法二
在 /etc/systemd/network/ 中手动创建 .link 指定名称。具体参考 http://www.freedesktop.org/software/sys ... .link.html

参考
http://www.freedesktop.org/wiki/Softwar ... faceNames/
https://onemoretech.wordpress.com/2014/ ... nterfaces/
/etc/systemd/没有network这个目录,是自己手动创建?

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-02 9:39
ps3wifi
poloshiao 写了:http://askubuntu.com/a/694936
/etc/udev/rules.d/10-network.rules

代码: 全选

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="MAC:ADDRESS",KERNEL=="enp4s8", NAME="eth0"
按照这个配置没有作用

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2015-12-02 13:12
poloshiao
按照这个配置没有作用
sudo cat /etc/udev/rules.d/10-network.rules
把結果複製貼上來

Re: ubuntu server 15.10修改网卡名称出现问题

发表于 : 2016-02-27 13:09
skyeye1163
remove "KERNEL" item, it would be successfully.