Comments on How to Configure a Static IP Address on CentOS 8
In this tutorial, I will show you three different ways to set up a static IP address on CentOS 8 by using nmcli, nmtui and by editing the interface configuration file directly.
5 Comment(s)
Comments
to use eth# (ie. eth0 ) either"net.ifnames=0 biosdevname=0" need to be added grub line "GRUB_CMDLINE_LINUX"(https://www.thegeekdiary.com/centos-rhel-7-how-to-modify-network-interface-names/)or MAC / Hardware address needs to stated in the network-scripteg. HWADDR="00:11:22:33:44:55"or RH new "improved" nic naming scheme will be used
to use eth# (eg. eth0, eth1, eth# ) either"net.ifnames=0 biosdevname=0" needs to be added to grub line "GRUB_CMDLINE_LINUX"(https://www.thegeekdiary.com/centos-rhel-7-how-to-modify-network-interface-names/)or a MAC/Hardware address needs to stated in the network-script for eth#eg. in ifcfg-eth0, include>>>>DEVICE="eth0"HWADDR="00:11:22:33:44:55"<<<<if this isn't done, RH's new "improved" nic naming scheme will be used and the config "ifcfg-eth0" will not be "activiated"
What is the purpose of this line "DEFROUTE=yes" ? I was looking into different articles but none of them explains each line.
GATEWY=192.168.10.1 An "A" is missing ;-)
Since nmcli is more command-line based, do you think it is more often used to set up Static IP address than nmtui because it being command-line based. I believe it would be much easier and probably faster than nmtui. This would be very helpful to me so that if I install Static IP on CentOS 8, I will know with one will be more useful to me.