In the Ubuntu environment, the network configuration file for network connection configuration of Ubuntu mainly has the following key points: IP Address Configuration File:/etc/network/interfaces after it is opened, DHCP can be set or static IP can be set manually. Auto eth0 in front to enable automatic Nic mounting. 1. configure the NIC in DHCP mode to edit the file/etc/network/interfaces: sudo vi/etc/network/interfaces and replace the eth0 row with the following line: # The primary network interface-use DHCP to find our addressauto eth0iface eth0 inet dhcp use The following command to make The network settings take effect: sudo/etc/init. d/networking restart can also directly enter the following command under the command line to obtain the sudo dhclient eth0 address. configure the static IP address for the network adapter. edit the file/etc/network/interfaces: sudo vi/etc/network/interfaces and replace the following line with eth0: # The primary network interfaceauto eth0iface eth0 inet staticaddress 192.168.3.90gateway 192.168.3.1netmask 255.255.255.0 replace The above IP address and other information with your own. run the following command to make the network settings take effect: sudo/etc/init. d/networking restart error: SIOCADDRT: no such process is caused by whether the ip address and gateway are in the same network segment