最近老是掉线,我快疯了,我开始还以为帐号被别人窃取了。
sudo gedit /etc/network/interfaces
替换为:
#/etc/network/interfaces
#This file describes the network interfaces available on your ystem
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).
#Theloopbacknetworkinterface
auto lo
iface lo inet loopback
#Thisisalistofhotpluggablenetworkinterfaces.
#Theywillbeactivatedautomaticallybythehotplugsubsystem.
mapping hotplug
script grep
map eth1
#Theprimarynetworkinterface
iface eth1 inet static
address 58.46.49.165
netmask 255.255.255.255
network 10.0.0.0
broadcast 10.0.0.255
#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalled
dns-nameservers 211.162.32.1211.162.32.20
linux下很多选项都是默认的:解决频繁掉线的方法:
sudo gedit /etc/ppp/options
把默认的lcp-echo-failure 4
改为lcp-echo-failure 40 即可。
转载于:https://blog.51cto.com/tong646591/491023