[CentOS] Trying to override MAC addr

Thu Aug 21 14:25:45 UTC 2014
Robert Moskowitz <rgm at htt-consult.com>

On 08/21/2014 10:15 AM, Reindl Harald wrote:
>
> Am 21.08.2014 um 16:09 schrieb Robert Moskowitz:
>> I am trying to override the mac addr.  Now this is on an armv7 actually
>> running the F19 kernel and Redsleeve 6, but it SHOULD be standard
>> Centos6 ifcfg-eth0 content.  Of course RSEL does not start with a
>> ifcfg-eth0 file, letting network services do all the work, so I am
>> starting from scratch, using the file from one of my C6 boxes with
>> static addressing.  My file has in it:
>>
>> DEVICE="eth0"
>> BOOTPROTO=none
>> NM_CONTROLLED="no"
>> ONBOOT="yes"
>> TYPE="Ethernet"
>> NAME="System eth0"
>> DNS1=208.83.67.188
>> GATEWAY="208.83.67.177"
>> IPADDR="208.83.67.179"
>> HOSTNAME="rigel2.htt-consult.com"
>> IPV6INIT="yes"
>> MACADDR=02:67:15:00:01:79
>> MTU=1500
> that's easy - you need to tell it the physical too
> works from Fedora 10 up to Fedora 20 that way
>
> [root at srv-rhsoft:~]$ cat ifcfg-eth1
> DEVICE=eth1
> HWADDR=68:05:ca:0d:62:c1
> MACADDR=00:50:8d:b5:cc:de
>
> "00:50:8d:b5:cc:de" is the on my interface has after it is up
> "68:05:ca:0d:62:c1" is the pysical one of the device before fake it

OK.  I ws going by: 
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-networkscripts-interfaces.html

which says:

MACADDR=/<MAC-address>/

    where /<MAC-address>/ is the hardware address of the Ethernet device
    in the form /AA:BB:CC:DD:EE:FF/. This directive is used to assign a
    MAC address to an interface, overriding the one assigned to the
    physical NIC. This directive should *not* be used in conjunction
    with HWADDR.


>
> [root at srv-rhsoft:~]$ ifconfig eth1
> eth1: flags=67<UP,BROADCAST,RUNNING>  mtu 1500
>          inet 62.178.103.85  netmask 255.255.255.0  broadcast 255.255.255.255
>          ether 00:50:8d:b5:cc:de  txqueuelen 500  (Ethernet)
>          RX packets 74959980  bytes 25037014848 (23.3 GiB)
>          RX errors 0  dropped 0  overruns 0  frame 0
>          TX packets 67607627  bytes 39867204808 (37.1 GiB)
>          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>          device interrupt 16  memory 0xf7cc0000-f7ce0000
>