

# cat /etc/sysconfig/network-scripts/ifcfg-eno1 Forcing a bond to get its MAC address from a specific slave, MACADDR directive has to be added with the MAC address of the required slave to /etc/sysconfig/network-scripts/ifcfg-bondX file.The HWADDR directive is changed with MACADDR : # cat /etc/sysconfig/network-scripts/ifcfg-eth1Īssigning permanent MAC address for a bonding network interface. # cat /etc/sysconfig/network-scripts/ifcfg-eth1 If HWADDR= directive is present in the network configuration file then make sure to replace it with MACADDR= directive and its corresponding value as follows: So that this value will be taken as the permanent MAC address of the network interface. Add MACADDR= directive and specify the required MAC address to the /etc/sysconfig/network-scripts/ifcfg-ethX network configuration.

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.
