First, let's disable this predictable naming rule. You can pass the kernel parameters of & ldquo; net. ifnames = 0 & rdquo; at startup. This is achieved by editing the/etc/default/grub and adding & ldquo; net. ifnames = 0 & rdquo; to the grub1_linelinux variable. Run this command to regenerate GRUB configuration and update kernel parameters. $ Sudogrub
First, let's disable this predictable naming rule. You can pass the kernel parameter "net. ifnames = 0" at startup. This is achieved by editing/etc/default/grub and adding "net. ifnames = 0" to the grubw.linelinux variable.
Run this command to regenerate GRUB configuration and update kernel parameters.
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Next, edit (or create) a udev network naming rule File (/etc/udev/rules. d/70-persistent-net.rules) and add the following line. Replace it with your own MAC address (08: 00: 27: a9: 7a: e1) and interface (sushi ).
$ sudo vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a9:7a:e1", ATTR{type}=="1", KERNEL=="eth*", NAME="sushi"
Finally, restart the computer and verify the new interface name.
Note: view the mac address of the NIC in linux
1. ifconfig-a where the HWaddr field is the mac address
2. run cat/sys/class/net/eth0/address to view the mac address of eth0.
3. run cat/proc/net/arp to view the mac address of the remote ip address connected to the local machine.