Change your Network Card MAC Address on Ubuntu

เมื่อมีการเปลี่ยนเน็ตเวิร์คการ์ด แล้วไม่สามารถ start network service ได้จะต้องแก้ไขไฟล์ /etc/network/interfaces ด้วยคำสั่ง

# sudo vi /etc/network/interfaces

และให้เพิ่ม MAC address ของการ์ดเข้าไปดังตัวอย่างด้านล่างนี้

auto eth0
iface eth0 inet dhcp
       hwaddress ether 01:02:03:04:05:06

จากนั้นให้ restart network service

sudo /etc/init.d/networking restart

Leave a Reply

Your email address will not be published. Required fields are marked *