Linux multi-NIC configuration

zhaozj2021-02-16  94

Linux multi-NIC configuration Oldjavaman Prance is in the Northeast coffeeum, after a few hours of Google search, I know how to configure it, I will be posted now, my brother, my brother, I will know the same question next time: 1) Process network configuration file: / 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 resolve domain names, 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) Configuring the ETC / Host file below 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, 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-15325.html

New Post(0)