|## Configure eth0|
|# vi /etc/sysconfig/network-scripts/ifcfg-eth0|
|## Configure Default Gateway|
|# vi /etc/sysconfig/network|
|## Restart Network Interface|
|## Configure DNS Server|
|# vi /etc/resolv.conf|
|nameserver 18.104.22.168 # Replace with your nameserver ip|
|nameserver 192.168.1.1 # Replace with your nameserver ip|
I don't have eth0 in folder, please suggest I am pasting directory dump
ifcfg-lo ifdown-ppp ifup-ippp ifup-sit
I have configured static IP address (192.168.1.23). But everytime i boot up, its picking another IP address. (192.168.1.100).
But after the boot up, if i give "service network restart" it gets changed to my static IP. If the network is not restarted, its with its own (192.168.1.100). If i check the ifcfg-eth0 file, i see the IP which i have given.
How to fix it?
Check below link if someone still have issues with static ip on centos 6.
I had the same issue but managed to resolve it. The service
I must say when I started configuring static IP's on Cent OS 7 via CLI it was pretty confusing, but then i understood it - it became much easier. Without need to disable Network Manager, just type this command “nmtui” to open Network manager and edit any connection. This is super easy and no VI , NANO are needed. Plus can reset adapter too. Hope this will help others as well. Regards!
Can't figure it out. Seems to have a problem setting the IP. I'm trying to set it to 192.168.1.223
Okay so dumb question that I probably don't need to worry about, is there a difference when you do ONBOOT=yes versus ONBOOT="yes" with quotes? I get using quotes if there's a space in it like your example of NAME="System eth0" but does it matter for one word entries like yes or no?