Dear All,
Just simply change like this :
First, capture the hardware address / mac-address before changing
# ifconfig eth0 | grep HWaddr
After that, do this command :
# ifconfig eth0 down
# ifconfig eth0 hw ether 80:00:27:88:F6:AF
# ifconfig eth0 up
And then, capture again after changing the mac-address
# ifconfig eth0 | grep HWaddr
be aware, this command will be disconnect you LAN/WAN connection, do after connection idle or you know no active connection.
If you use the DHCP server, usually DHCP server will be re-flush the IP client when eth0 up after down or re-forcing from client or the TTL of IP lease is expired.
For forcing new ip before TTL expired, do like this :
# sudo dhclient -r
or
# sudo dhclient
or just more simple
# init.d/rc.d/network restart
That’s all falks ..
Sincerely
![]()
Man’z
tested on virtual ubuntu






