Computing.Net > Forums > Linux > I want to change MAC address in Linux

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

I want to change MAC address in Linux

Reply to Message Icon

Name: Alex
Date: March 10, 2002 at 03:18:35 Pacific
Comment:

I want to change MAC address in RedHat 7.2 , I heard it is posible with "ifconfig". Please help.



Sponsored Link
Ads by Google

Response Number 1
Name: Dave
Date: March 10, 2002 at 08:35:49 Pacific
Reply:

Here is what the man page for ifconfig says. I really don't suggest changing your MAC address unless you REALLY know what you are doing, because you could seriously screw something up.

hw class address

Set the hardware address of this interface, if the device driver supports this operation. The keyword must be followed by the name of the hardware class and the printable ASCII equivalent of the hardware address. Hardware classes currently supported include ether (Ethernet), ax25 (AMPR AX.25), ARCnet and netrom (AMPR NET/ROM).


0

Response Number 2
Name: jonRB
Date: March 11, 2002 at 04:55:30 Pacific
Reply:

Well er no you can't screw things up (you might however not be able to use it if your MAC address needs to be registered with a dhcp server - eg cable companies)

THe change of the MAC address is not perminant with ifconfig, just for the duration of uptime (for perminant change you need a firmware upgrade ONLY availabel on new cards).

to change MAC address on ethernet card eth0

ifconfig hw

ie.
#ifconfig eth0 hw ether ??:??:??:??:??:??

note only HEX characters are valid in the 12HEX MAC address.

J


0

Response Number 3
Name: spi
Date: April 25, 2002 at 12:34:22 Pacific
Reply:

Hi, i want to make more mac address on a single ethernet card. is it possible?


0

Response Number 4
Name: sthneed
Date: April 26, 2002 at 15:08:56 Pacific
Reply:

try:

ifconfig eth0:0 ipaddress

ifconfig eth0:1 ipaddress

.. etc.


0

Response Number 5
Name: The PastyHermit
Date: May 16, 2002 at 06:16:15 Pacific
Reply:

My Winblows instructor claims that this feature can only be done on a card that has the capability to store the MAC address in EEPROM, because the MAC address is used in CSMA/CD physical layer protocals. ifconfig changes the MAC address, can it do that to any Ethernet Card?

Let me know what you guys think. It would be good to know for security reasons.

Pasty.


0

Related Posts

See More



Response Number 6
Name: Eviljoeking
Date: June 7, 2002 at 09:01:27 Pacific
Reply:

any idea where to put the ifconfig eth0 hw ether command in debian linux?



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: I want to change MAC address in Linux

I want to change MAC address in Linux www.computing.net/answers/linux/i-want-to-change-mac-address-in-linux/8168.html

I want to Install device driver in Linux www.computing.net/answers/linux/i-want-to-install-device-driver-in-linux/7083.html

I want to try Linux system www.computing.net/answers/linux/i-want-to-try-linux-system/19173.html