I take my laptop to a friend's home yesterday,his internet connection is wired connection which the MAC and IP are binded,so I couldn't connect to internet with my laptop at his home unless I modify my laptop's MAC address .I'd never modified the MAC on Ubuntu before,then after I googled and googled,finally I found the ways to modify the MAC on Ubuntu. There are 2 ways to modify the MAC address on Ubuntu :~
The 1st way:
sudo ifconfig eth0 dow
sudo ifconfig eth0 hw xx:xx:xx:xx:xx:x
sudo ifconfig eth0 up
this method just can temporarily modify the MAC address,you have to run the commands again after every boot.
The 2nd way:
this way can permanently modify the MAC address:~
- cd /etc/network/init.d
- sudo gedit networking
- find out this wording : case “$” in start)
- insert the new MAC address below it: ifconfig eth0 hw xx:xx:xx:xx:xx:xx
- save,restart computer...
Above methods are tested through on Ubuntu 8.10.
