How to add public static IP in CentOS 7
How to add public static IP in CentOS 7
Hello,
I have a problem about setting up public static IP on my one server. I set up via nmtui edit vanjski_link(network name) IP, GW, MASK are correct and DNS are: 8.8.8.8 and 8.8.4.4. When I ping 8.8.8.8 it works but when I ping google.com it says name or service is unknown. However, I can't run yum update and yum install and I don't know why. It is fresh install of CentOS 7 Minimal.
I have a problem about setting up public static IP on my one server. I set up via nmtui edit vanjski_link(network name) IP, GW, MASK are correct and DNS are: 8.8.8.8 and 8.8.4.4. When I ping 8.8.8.8 it works but when I ping google.com it says name or service is unknown. However, I can't run yum update and yum install and I don't know why. It is fresh install of CentOS 7 Minimal.
Re: How to add public static IP in CentOS 7
Does your /etc/resolv.conf contain valid nameserver x.y.z.a entries pointing to e.g. 8.8.8.8?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: How to add public static IP in CentOS 7
When I run vim /etc/resolv.conf nothing happen. I don't have nameserver, should I have it or? If I should how to set up it.
Re: How to add public static IP in CentOS 7
You don't "run" /etc/resolv.conf, it's a config file and should have lines in it that look like
Code: Select all
search mydomain.com
nameserver 8.8.8.8
nameserver 8.8.4.4
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: How to add public static IP in CentOS 7
What is the command to see that config file?
Re: How to add public static IP in CentOS 7
Use your favorite editor.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: How to add public static IP in CentOS 7
I tried but it seems that I don't have etc directory and resolv.conf file in it. I can't ever run yum install or update . What you suggest?
Re: How to add public static IP in CentOS 7
Code: Select all
ls -l /etc