Base Linux network settings

Like any other operating system Linux needs adjustment after its installation. One of the largest facilities of the operating system is easily configured through simple text files. These files are located in the directory /etc. This folder contains many files and sub folders, such sub folder pool configuration files status. For example all the scripts, which run and stop processes, respectively the trigger and shut the computer located in sub folder rc.d. Sub folder X11 configuration files then combines the graphic server, etc. This lecture will introduce how you can tune your network settings after the installation of your Linux.

Files that set the network configuration of the operating system are many, but we will check only the important ones:

hosts – file describes the names of computers by connecting them with their IP addresses. Every computer can be taken, short name or nickname. File format is the following:

The first line is binding and describes the so-called loopback network address. Series starting with # are considered comment.

Resolv.conf – use the above file is possible only for small systems or networks unrelated DNS server to translate names into IP addresses. This method can not be used for hosts on the Internet, where description would be prohibitive task. So the Internet need a DNS server. Resolv.conf file serves as a description of the DNS servers which should bind the computer to translate the name into IP address. File format is the following:

After the change it needs to be enforced command: # killall-HUP inetd , to put changes into effect.

HOSTNAME – describes the name of the computer. It consists of a single line, which has a following:

freetutorialssubmit.com

host.conf – manage the way work translating the name in the client IP address. It consists of several directives. The form is the following:

Here multi and order are the directives, and hosts, bind and on, their options. Full information on file can be found on the man pages for Linux.

Hosts.allow, hosts.deny, hosts.equiv – describe Hosts who are allowed or not to connect to your computer. Hosts.equiv file describes Hosts trusted, they are allowed to carry out operations via remote commands rlogin and rsh.

Inetd.conf – file that describes which services meet inet demon. The difference between use and normal startup server is that inet demon that will not start service until it is not stated. This is useful for services that are rarely used because it is more slowly than the standard way, but to save memory. File format is the following:

"Name_of_service" is the name of the service described in the file services, "socket_type" depends on the protocol and stream for TCP protocol and dgram for the UDP. "Flags" is a box set of parameters inet demon. "User" to set field with the service. "Path" is the full path to the server servicing service. Due to security problems use special wrapper called tcpd, instead of the real server. "Arguments" are the arguments set tp tcpd, also here is defined the real server for a service.

/rc.d/rc.inet1 – Shell script that reads file rc.inet1.conf and set the computer IP address, IP address and network mask gateway. Description takes place in the file rc.inet1.conf and independent of each network card. To enter into force after the changes must be fulfilled command:

The information listed in this tutorial is just for starters. Its purpose is to show you the very first steps in the Linux network file system.

Filed Under: System

Anthony Gee About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.

Comments (2)

  1. Leonard Azubuike says:

    Hi! Please I would like to know how to connect as Linux System in an environment where the host domain server is window based.

    Many thanks.

  2. Stephen Think says:

    Hello Leonard, i’m missing in your post the way you want to connect to the remote windows server. You need to access a share, or you wan to connect to Windows Active directory or you want to do something else?

Leave a Reply