Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
Couldn 't open PID file /var/run/named/named pid Permission denied
sendmail configuration on redhat
kernel 2 6 and /dev/sound/mixer not found
Promise 378 controller
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
Lotus Notes under Wine
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
/etc/security/limits conf question
Intel E/1000 driver
rpm database corrupt
Command stream end of file while reading
qla2300 modules
 
How to change mac address

How to change mac address

2007-04-26       - By Rick Stevens

 Back
Reply:     1     2     3     4     5     6     7  

On Thu, 2007-04-26 at 15:29 +0700, The Linux System & Configuration Your
Server wrote:
> Details here. http://www.sontayamyblog.com
>
> gerard labadie wrote:
> >
> >
> > 2007/4/26, Andrew Kelly <akelly@(protected)>:
> >        
> >        
> >         Isn't the MAC provided by the NIC and unique to every NIC?
> >        
> >         Andy
> >
> >
> > Yes, but you can change it.
> > For Vms (www.openvms.compaq.com) for example, when Decnet starts
> > (before any other protocol like Tcpip, Lat, Lavc, Amds or any) it
> > changes the Mac address from (for example 08-00-2B-.... to
> > AA-00-04-00..., because it has the Decnet address in it.
> > A Decnet address of 3.2 means (3*1024)+2= 3074
> > In hex, this is 0C04, so the Mac address will be (reversed)
> > aa-00-04-00-04-0C
> >
> > See http://h71000.www7.hp.com/wizard/wiz_4244.html

Gang, PLEASE bottom post on this list.  Top posting makes following the
logic of the thread REALLY hard.

As to the the original request:

To change the host name:

  Edit /etc/sysconfig/network and change the "HOSTNAME=" item.
  This changes the name of the machine permanently and takes
  effect on a reboot.

  Use "hostname new-name-of-host" as root to change it
  immediately.

To change the hardware (MAC) address of a NIC, do one of the following
as root:

  ifconfig ethX down
  ifconfig ethX hw ether aa:bb:cc:dd:ee:ff
  ifconfig ethX up

--or--

  ip set link dev ethX brd aa:bb:cc:dd:ee:ff

Note that there is no way to do this during the normal network setup.
You have to either do it yourself or run a script that does it for you.
If you MUST change the MAC on a NIC every time (a dubious thing in the
first place), put the commands you want at the end of the commands in
/etc/rc.d/rc.local.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
- Rick Stevens, Principal Engineer             rstevens@(protected) -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
- "People tell me I look at the dark side.  That's not true.  I have -
-   the heart of a small boy......in a jar right here on my desk."   -
-                                                    -- Stephen King -
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Redhat-install-list mailing list
Redhat-install-list@(protected)
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@(protected)
Subject: unsubscribe