Monday, December 26, 2011

MAC addresses change procedure for Linux


MAC addresses change procedure for LINUX:

For Show All Active Hardware Address :
[root@localhost ~]# ifconfig -a | grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:80:48:BA:D1:20
eth1      Link encap:Ethernet  HWaddr 00:1C:F0:98:08:E7 
For Show Specific Hardware Address :
[root@localhost ~]# ifconfig eth0 |grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:80:48:BA:D1:20 
For change Specific Hardware Address Like eth0:
# ifconfig eth0 down or ifdown eth0
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up or ifup eth0