Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Re: [SLE] MAC address change
  • From: Alexandr Malusek <Alexandr.Malusek@xxxxxxxxxx>
  • Date: 08 Aug 2001 21:40:40 +0200
  • Message-id: <868zgu1gsn.fsf@xxxxxxxxxxxxxxxxxxxxx>
"David Bottrill" <david.bottrill@xxxxxxxxxxxx> writes:

> What I would like to know is how to change the MAC address under
> Linux

# ifconfig eth1 # List the old MAC address on the host up1
eth1 Link encap:Ethernet HWaddr 00:02:B3:15:E5:15
inet addr: Bcast: Mask:

# ifconfig eth1 hw ether 00:02:B3:15:E5:14 # Change the address

# ifconfig eth1 # List the new MAC address
eth1 Link encap:Ethernet HWaddr 00:02:B3:15:E5:14
inet addr: Bcast: Mask:

# Verify that other hosts (up2 in my case) see the new MAC address of up1
malusek@up2:~ > /sbin/arp up1
Address HWtype HWaddress Flags Mask Iface
up1.quark ether 00:02:B3:15:E5:14 C eth0

See also man ifconfig:
<man ifconfig>
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).
</man ifconfig>

My network card uses the eepro100.o module
$ /sbin/lspci
00:0e.0 Ethernet controller: Intel Corporation 82557 [Ethernet Pro 100]


< Previous Next >
Follow Ups