2009年3月28日 星期六

Debian5 eth0_rename 問題

由於在VBox新裝了網路卡,由於之前有裝了一個網路卡,造成有一個interface名為 eth0_rename出現。google了下,發現只要更改其中一個檔案後reboot即可。

/etc/udev/rules.d/70-persistent-net.rules 是由同目錄的 75-persistent-net-generator.rules 去呼叫 /lib/udev/write_net_rules 產生。所以解決方法就改動這檔案即可。

# vim /etc/udev/rules.d/70-persistent-net.rules

根據正確的 MAC Address,和希望的 ether name加入即可。如下



然後修改

# vi /etc/network/interfaces



參考:

http://blog.xuite.net/happyman/tips/16199196

http://checko.blogspot.com/2004/08/linux-debian_27.html

詳細 rules 寫法跟其他參考資料

http://www.debianhelp.co.uk/udev.htm

http://forum.ubuntu.org.cn/viewtopic.php?p=641452&sid=8232abf6a0d9bd3d71ea5bb9656c5a3b

http://www.linuxfromscratch.org/blfs/view/development/chapter07/network.html

沒有留言: