zoukankan      html  css  js  c++  java
  • ubuntu 总是断网解决办法 菜鸟办法

    右键---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 即可

  • 相关阅读:
    HttpUtils
    其实就是这么回事
    Spring 、 CXF 整合 swagger 【试炼】
    Jetty 学习记录
    WebSphere 学习记录
    Apache 学习记录
    WebLogic 学习记录
    Hessian 学习记录
    IntelliJ IDEA学习记录
    IntelliJ IDEA学习记录
  • 原文地址:https://www.cnblogs.com/maoyizhimi/p/6873261.html
Copyright © 2011-2022 走看看