Linux multi-NIC configuration

zhaozj2021-02-16  68

PRANCE is in the northeast, after a few hours of Google search, I know how to configure it, I am posted now, my brother, my brother, I will know the same question next time:

1) Process the network configuration file first: /etc/host.conf

ORDER BIND, HOSTS MULTI ON OSPOOF ON

"ORDER BIND, HOSTS" Specifies the hostname query order, which specifies the use of DNS first to parse the domain name, then query "/ etc / hosts" file (or the opposite).

"Multi On" Specifies whether the host specified in the "/ etc / hosts" file can have multiple addresses, and the host with multiple IP addresses is generally referred to as a pocket host.

"Nospook ON" means that the server is not allowed to deceive the server. IP spoof is a means of attacking system security, and the trust of other computers is achieved by implying IP addresses to other computers.

/ etc / hosts file

When the machine is started, the machine needs to query some hostnames to the IP address before you can query DNS. These matching information is stored in the / etc / hosts file. In the case of a domain name server, all network programs on the system are queried by querying the file to parse the IP address corresponding to a host name.

2) Configure the ETC / Host file

Here is an example of a "/ etc / hosts" file:

IP address hostname alias 127.0.0.1 localhost Gate.openarch.com 208.164.186.1 Gate.openarch.com Gate .....................................................

The leftmost list is the host IP information, and the middle one is the host name. Any back column is the alias of the host.

3) Once the machine's network configuration file is configured, the network should be restarted to take effect. Use the following command to restart the network: /etc/rc.d/init.d/network restart.

转载请注明原文地址:https://www.9cbs.com/read-15987.html

New Post(0)