• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1121
  • Last Modified:

CentOS 5.3: how to change HWaddr?

hello experts,

how do I change the HWaddr of my linux box?

thx,
Regards,
/sbin/ifconfig -a
eth0    Link encap:Ethernet  HWaddr 00:20:7E:A8:04:0E
        inet addr:11:111:0:45  Bcase:11:111:0:255

Open in new window

0
epifanio67
Asked:
epifanio67
2 Solutions
 
nabeelmoiduCommented:
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:30
# ifconfig eth0 up
# ifconfig eth0 |grep HWaddr
0
 
medveddCommented:
To make changes permanent, edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and put there line:

MACADDR=AA:BB:CC:DD:EE:FF

If this file has a line with HWADDR, delete it.
Restart network service after that:

/etc/init.d/network restart
0
 
epifanio67Author Commented:
Thank you experts
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now