标签:
默认痛骂替换解决方法 |
分类: Linux |
每3 4 分钟就掉线,我快疯了,难怪没windows那么红,本来想痛骂linux一顿的,现在想起来好惭愧阿。
sudogedit /etc/network/interfaces
替换为:
#/etc/network/interfaces
#Thisfile describes the network interfaces available on your ystem
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).
#Theloopbacknetworkinterface
autolo
ifacelo inet loopback
#Thisisalistofhotpluggablenetworkinterfaces.
#Theywillbeactivatedautomaticallybythehotplugsubsystem.
mappinghotplug
scriptgrep
mapeth1
#Theprimarynetworkinterface
ifaceeth1 inet static
address58.46.49.165
netmask255.255.255.255
network10.0.0.0
broadcast10.0.0.255
#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalled
dns-nameservers211.162.32.1211.162.32.20
linux下很多选项都是默认的:解决频繁掉线的方法:
sudogedit /etc/ppp/options
把默认的lcp-echo-failure4
改为lcp-echo-failure40 即可
sudo
替换为:
#/etc/network/interfaces
#This
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).
#Theloopbacknetworkinterf
auto
iface
#Thisisalistofhotpluggabl
#Theywillbeactivatedautom
mapping
script
map
#Theprimarynetworkinterfa
iface
address
netmask
network
broadcast
#dns-*optionsareimplementedbyt
dns-nameservers
linux下很多选项都是默认的:解决频繁掉线的方法:
sudo
把默认的lcp-echo-failure
改为lcp-echo-failure