Confirming Linux Networking is Setup Properly

From SCInterface Wiki

Jump to: navigation, search

The following is useful for verifying that your network is setup correctly on most Linux kernels. It may very some from distro to distro.

First, login as root to your Linux server and make sure that scinterface.com resolves by running:

ping scinterface.com

If scinterface.com does not ping, edit /etc/resolv.conf. The IP address 208.67.222.222 is an open DNS server available from OpenDNS.com. You may need to add in your own name server and replace 208.67.222.222. Also make sure to replace mycompany.com with your main domain name.

Here is an example of a /etc/resolv.conf file:

domain  mycompany.com
nameserver      208.67.222.222

Second, from the console prompt verify your hostname is set by typing:

hostname

Make a note of this hostname. Make sure that this hostname is contained within /etc/hosts. For example, /etc/hosts my look like:

127.0.0.1  system1.mycompany.com system1 localhost localhost.localdomain

Finally, make sure that there are these 5 strings listed above. Each one is required to ensure that your system resolves correctly.

Personal tools