วันจันทร์, ตุลาคม 01, 2555

Ubuntu: change eth1 or eth* to eth0

Running Ubuntu in the VM machine. There's quite a lot of time when we change its MAC address. The Ubuntu will generate the new eth for new network device (new MAC).

 Anyway I already have attach 1 NIC to a VM and I want to change eth1 to eth0. Here's the HOWTO

Edit the content of the file /etc/udev/rules.d/70-persistent-net.rules

#sudo vi /etc/udev/rules.d/70-persistent-net.rules

I just comment the old line/the line that had "eth0"  then change eth1 to eth0 in another line. Save changed. We need to reboot the machine.

reference: http://www.caeus.com/articles/how-to-change-which-network-card-eth0-vs-eth1-etc-your-ubuntu-server-uses/