There are two ways to configure the network. These two methods conflict with each other. We recommend that you use network-manager for the desktop system. The server version is configured through the file/etc/Network/interfaces.
Network-Manager configuration method:
- Make sure that the/etc/Network/interfaces file contains only the content of the local loop, for example
- Make sure that network-manager is enabled. Open the configuration file/etc/NetworkManager. conf. The content of the configuration file is:
- After completing the last two steps, restart and press the shortcut key Alt + F2. Enter the command network connection to open the network connection Configuration window and configure the network as needed.
/Etc/Network/interfaces ):
- open the file/etc/Network/interfaces, make sure the network manager is not enabled (see the preceding figure), and configure the following content:
- Configure the DNS server, open the file/etc/resolv. conf, and set the content:
It is a pain to use this editor to arrange simple indentation formats...