Ubuntu command line network configuration modification method

Source: Internet
Author: User
Ubuntu command line to modify the network configuration method vi/etc/network/interfaces1. configure the network adapter autoeth0ifaceeth0inetdhcp2 in DHCP mode. configure a static IP address (dns-search does not know what it is) for the Nic autoeth0ifaceeth0inetstatica... ubuntu command line network configuration method vi/etc/network/interfaces 1. configure the Nic auto eth0iface eth0 inet DHCP in dhcp mode 2. configure a static IP address for the NIC (dns-search does not know what it is) auto eth0iface eth0 inet staticaddress 192.168.3.90gateway 192.168.3.1netmask 255.255.255.0dns-nameservers 192.168.3.1 192.168.3.2dns-sea Rch foo.org requires the root password before initialization: sudo passwd root is a virtual machine, and the network is a bridge.
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.