Quick configuration for ubuntu

Source: Internet
Author: User
Article title: The fastest way to configure ubuntu network for beginners. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The residential area accesses the Internet through the static network segment 192.168.0.0/24. the link provider is Guangzhou Telecom, and the DNS is 61.144.56.100.

1. open the terminal configuration interface (that is, the network port) address and save it!
Root @ ns:/etc/network # vi/etc/network/interfaces
Iface eth0 inet static
Address 192.168.0.2
Netmask 255.255.255.0
Gateway 192.168.0.1

# If dynamic DHCP is used for faster retrieval, you only need to set the following
# Auto eth0

2. set the DNS server and save it!
Root @ ns:/etc/network # vi/etc/resolv. conf
Nameserver 61.144.56.100

3. restart the network as follows:
Root @ ns:/etc/network #/etc/init. d/networking restart
* Reconfiguring network interfaces... There is already a pid file/var/run/dhclient. eth1.pid with pid 5444
Killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

4. test the internet connection! Successful.

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.