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. Here you can add just the name of the system but it’s a good idea to append the. To adjust system hostname system-wide, open hostname and hosts file located on /etc path and edit both the following way. is the hardware address of the Ethernet device in the form AA:BB:CC:DD:EE:FF. Check New IP Address Step 3: Setting Hostname in CentOS. 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. is the hardware address of the Ethernet device in the form AA:BB:CC:DD:EE:FF.
So that this value will be taken as the permanent MAC address of the network interface. How to list MAC address on Linux is a commonly asked question during a Linux job interview. 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.