ubuntu防止掉线命令

刷字体缓存
fc-cache -fv


## desible ipv6
sudo sed -ie '/net-pf-10/d' /etc/modprobe.d/aliases
sudo sh -c 'echo "alias net-pf-10 off" >> /etc/modprobe.d/aliases'
sudo sed -ie '/ipv6/d' /etc/modprobe.d/aliases
sudo sh -c 'echo "alias ipv6 off" >> /etc/modprobe.d/aliases '

## desible ipv4.tcp_ecn
sudo sed -ie '/net.ipv4.tcp_ecn/d' /etc/sysctl.conf
sudo sh -c 'echo "net.ipv4.tcp_ecn = 0" >> /etc/sysctl.conf ' 

/etc/ppp/options
lcp-echo-failure  15

防止 ADSL 掉线
sudo  gedit /etc/network/interfaces
复制下面内容完全复盖即可
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1

# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 211.162.32.1 211.162.32.20

dns-nameservers 是你的dns服务器地址,如果有路由器的同志可以打开路由器设置看看,把路由器上的默认dns服务器贴上。 


sudo apt-get install pppoe

sudo pon dsl-provider

plog 
dsl-provider 
ifconfig

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值