I'm running a CentOS 5.4 box for which I need to spoof a MAC address in order to make a certain software work (nothing illegal going on, before you ask).
Problem: Whenever I try to change the MAC, I no longer can connect to the network, not even the gateway.
I've used:
ip link set eth0 address <mac>
My ifcfg-eth0 file:
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.0.34
NETMASK=255.255.255.0
NETWORK=192.168.0.0
GATEWAY=192.168.0.36
ONBOOT=yes
NM_CONTROLLED=yes
TYPE=Ethernet
DNS1=<hidden>
DNS2=<hidden>
DOMAIN=<hidden>
Whenever I restore the original MAC address, I regain connectivity.
Perhaps it's related to the NIC brand/model? I'm at a loss, and would like to rule out software-related issues before buying a new NIC.
Any help is appreciated. Thanks in advance!