2015年10月1日 星期四

CentOS 6 udev 改 NIC 名稱

see http://www.ichiayi.com/wiki/tech/udev

/etc/udev/rules.d/70-presistent-net.rules
會記錄 MAC ADDRESS 與 eth* 的對應

在 VM Template 可以
移掉 
 /etc/sysconfig/network-scripts/ifcfg-eth0 內的 UUID 以及 HWADDR
刪除 /etc/udev/rules.d/70-persistent-net.rules 這個檔案


臨時使用

ifconfig eth0 192.168.1.x netmask 255.255.255.0
ifconfig eth0 up
route add default gw 192.168.1.254