Ubuntu cancel the setting of the automatic dialing number when PPPoE starts _unix Linux
Source: Internet
Author: User
Solution:
sudo gedit/etc/network/interfaces
Auto Dsl-provider changed into #auto dsl-provider
In addition, all DSL-related statements are commented, restarted, OK.
To set a static IP method:
Ubuntu's network parameters are saved in file/etc/network/interfaces, and the default setting uses DHCP, which reads as follows:
# The Primary network interface
Auto Eth0
Iface eth0 inet DHCP
The method for setting up static IP is as follows:
(1) Edit/etc/network/interfaces
1.1 to shield a DHCP line
# The Primary network interface
Auto Eth0
#iface eth0 inet DHCP
1.2 Add parameters related to static IP
# The Primary network interface
Iface eth0 inet Static
Address 192.168.0.10
Netmask 255.255.255.0
Gateway 192.168.0.1
(2) Edit/etc/resolv.conf, set DNS
NameServer 202.96.134.133
NameServer 202.106.0.20
(3) Execute the following two commands to enable the new settings
$sudo Ifdown eth0
$sudo ifup eth0
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