
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.If you know the network interface name and want to only show this one, you can specify it in the command line: I can now use it to assign a static IP address to this computer or allow the connection if I have a whitelist system on my network. is the hardware address of the Ethernet device in the form AA:BB:CC:DD:EE:FF. This directive is useful for machines with multiple NICs to ensure that the interfaces are assigned to the correct device names regardless of the configured load order for each NIC's module, This directive should not be used in conjunction with MACADDR. Note: Red Hat does not support assigning a permanent MAC address to bond interfaces in active-backup mode with the fail_over_mac option set to follow or active.Īfter performing the necessary changes in the network configuration files make sure to reboot the system for the MAC address to take effect. # cat /etc/sysconfig/network-scripts/ifcfg-bond0īONDING_OPTS="mode=active-backup primary=eno1 miimon=100" # cat /etc/sysconfig/network-scripts/ifcfg-eno2 # cat /etc/sysconfig/network-scripts/ifcfg-eno1

If you are not trying to rename your Rhel 7 network devices to ethX style, please see below resolution. Please keep in mind that ethX style naming will not work on Rhel 7. Resolution Assigning permanent MAC address for an Ethernet interface. Force the bond interface to take a MAC address of the slave.

How to assign a permanent MAC address to the bonding interface in RHEL ?.The Network Interface MAC address is changing after each reboot.
