This shows you the differences between two versions of the page.
linux:networkmanager [2021/01/01 21:25] 127.0.0.1 external edit |
linux:networkmanager [2021/09/23 12:02] (current) manu |
||
---|---|---|---|
Line 360: | Line 360: | ||
Here I got problem with network driver, which is no more supported. You can check in /var/log/messages | Here I got problem with network driver, which is no more supported. You can check in /var/log/messages | ||
+ | |||
+ | ==== Rename network device ==== | ||
+ | |||
+ | Change from **ens192** to **eth0** | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 ~]# lshw -class network -short | ||
+ | H/W path Device Class Description | ||
+ | =========================================================== | ||
+ | /0/100/16/0 ens192 network VMXNET3 Ethernet Controller | ||
+ | </cli> | ||
+ | |||
+ | Add the option **net.ifnames=0** into file **/etc/default/grub**, and rebuild grub, then reboot | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 ~]# cat /etc/default/grub | ||
+ | ... | ||
+ | GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rd.lvm.lv=rhel/usr net.ifnames=0 rhgb quiet" | ||
+ | |||
+ | [root@ibmpvc01 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg | ||
+ | [root@ibmpvc01 ~]# init 6 | ||
+ | </cli> | ||
+ | |||
+ | After reboot | ||
+ | <cli prompt='#'> | ||
+ | [root@ibmpvc01 ~]# lshw -class network -short | ||
+ | H/W path Device Class Description | ||
+ | =========================================================== | ||
+ | /0/100/16/0 eth0 network VMXNET3 Ethernet Controller | ||
+ | </cli> |