7
3
when you put your harddisk into another machine, and Linux recognize the new NIC, there will be a new number attached to eth
for example eth0
-> eth1
This breaks down some my personal scripts, for example get IP address of the system.
Is there any way to reset the number every time when reboot OR new NIC is found?
cool i try this, ubuntu has this rule as well. – c2h2 – 2011-04-26T04:01:09.127
2@c2h2 If your goal is to simply re-number your NIC(s) from scratch, the simplest solution is to simply delete this file and then reboot -- it will be automatically regenerated during the bootup process, and your first NIC will now be eth0. – Kromey – 2011-04-26T16:57:50.003
yeps, it works perfectly! – c2h2 – 2011-04-27T12:54:04.570