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.