Ubuntu下修改eth端口号

前端之家收集整理的这篇文章主要介绍了Ubuntu下修改eth端口号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

# ls /etc/udev/rules.d/
70-persistent-net.rules README

修改70-persistent-net.rules

SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="00:0c:29:1f:1a:f5",KERNEL=="eth*",NAME="eth0"

修改后:

SUBSYSTEM=="net",ATTR{address}=="00:0c:29:1f:1a:eb",NAME="eth0"
SUBSYSTEM=="net",NAME="eth1"
SUBSYSTEM=="net",ATTR{address}=="00:0c:29:1f:1a:ff",NAME="eth2"

reboot

猜你在找的Ubuntu相关文章