Network connection configuration in Ubuntu

Source: Internet
Author: User
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. In front of autoeth0, enable automatic Nic mounting. 1. DHCP configuration... 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.