右键---open terminal

输入: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://www.cnblogs.com/maoyizhimi/p/6873261.html

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐