C7 And Spoofed MAC Address
Got a problem: a user’s workstation froze. He wound up rebooting, without calling me in first, so I dunno. But, and this is a show-stopper, when it came up, it came up with the firmware MAC, not the spoofed one. In
/etc/sysconfig/network-scripts/ifcg-eth0, I’ve got the spoofed MAC
address, and a UUID. In the grub.conf, I’ve got net.ifnames=0
biosdevname=0. But when I logged onto his machine, ip a showed eth0… but with the firmware MAC.
And I’m wondering if it went to renew its IP address, and lost the spoofed MAC. That might explain his freezes.
Anyway, does anyone have any idea if there’s some networkmangler or systemd configuration that would force it to pay attention?
Note that my hack to fix it was ifdown eth0/ifup eth0, and it’s fine.
mark
2 thoughts on - C7 And Spoofed MAC Address
Not much to go on here ….
Your ifcfg-* configs would be helpful.
There was a slight change to MAC spoof behaviour in the NM 1.4.0 that was part of EL7.3 compared to the older NM as I recall
https://www.hogarthuk.com/?q=node/18
That may or may not be affecting you.
I am using CentOS7-armv7hl and have had no problem altering my MAC
address. Much easier than back in CentOS6. All I have needed is in ifcfg-eth0 like:
DEVICE=”eth0″
BOOTPROTO=none ONBOOT=”yes”
TYPE=”Ethernet”
NAME=”eth0″
MACADDR:67:15:00:E0:02
MTU00
DNS12.168.224.2
GATEWAY=”192.168.224.1″
IPADDR=”192.168.224.2″
NETMASK=”255.255.255.0″
IPV6INIT=”yes”
No grub.conf but
cat /boot/extlinux/extlinux.conf
#Created by RootFS Build Factory ui menu.c32
menu autoboot CentOS
menu title CentOS Options
#menu hidden timeout 60
totaltimeout 600
label CentOS
kernel /vmlinuz-4.9.30-203.el7.armv7hl
append enforcing=1 root=UUID