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
And when I restart network, it can't find eth0:
# service network restart Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED]
but:
# ifconfig eth1 Link encap:Ethernet HWaddr 02:67:15:00:01:79 inet addr:208.83.67.179 Bcast:208.83.67.255 Mask:255.255.255.0 inet6 addr: 2607:f4b8:3:3:67:15ff:fe00:179/64 Scope:Global inet6 addr: fe80::67:15ff:fe00:179/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:254 errors:0 dropped:17 overruns:0 frame:0 TX packets:70 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:26575 (25.9 KiB) TX bytes:6104 (5.9 KiB) Interrupt:87 Base address:0x6000
The assigned MAC addr for eth0 is: 02:c3:04:01:77:c3
The tutorials that I have found on ifcfg-ethN say not to use both hwaddr and macaddr in the same cfg file, but it almost seems that is what is needed?
thanks