移动宽带

通过光纤网络高速TD-LTE网络向您提供宽带服务,满足全家高速上网、网上购物、视频点播、网络游戏、远程教育等业务需求。

本人用的是移动光纤50M   下载45M   上载20M

话说上载真的很良心了

移动很有趣

  1. 移动因为IDC太少,,,所以内容提供商服务器延迟较大。
  2. IPv4地址资源太少,,,在2月份的时候还是外网ip,,现在变成10开头的内网ip了,,延迟变大了10ms左右。不过现在电信,联通也基本上都是这样。
  3. 移动的dns时不时的挂掉

DNSmasq

配置文件

# auto-generated config file from /etc/config/dhcp
conf-dir=/tmp/etc/dnsmasq.d/
address=/workforme.stat.localdomain/127.0.0.1
dhcp-authoritative
domain-needed
no-hosts
clear-on-reload
localise-queries
bogus-priv
expand-hosts
all-servers
dhcp-client-update
neg-ttl=300
max-ttl=300
max-cache-ttl=1800
cache-size=1000
dns-forward-max=300
server=/lan/
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
local-ttl=30
intercept-ip-address=192.168.31.1
dhcp-script=/lib/dnsmasq/dhcp_lease

不过直接在这里改,重启后又会还原

# auto-generated config file from /etc/config/dhcp
config dnsmasq
	#enable domainneeded for samba
	option domainneeded	1
	option boguspriv	1
	option localise_queries	1
	option rebind_protection 0  # disable if upstream must serve RFC1918 addresses
	option rebind_localhost 1  # enable for RBL checking and similar services
	#list rebind_domain example.lan  # whitelist RFC1918 responses for domains
	option local	'/lan/'
	option expandhosts	1
	option nonegcache	0   //原来是1
	option authoritative	1
	option logqueries 0
	option logdhcp 0
        option nohosts 1            //添加的
	option allservers 1
	option clearonreload 1
	option cachesize 1000
	option negttl 300
	option maxttl 300	# 5 min
	option maxcachettl 1800 # 30 min
	option local_ttl 30         //原来是0
	option dnsforwardmax 300
	option leasefile	'/tmp/dhcp.leases'
	option resolvfile	'/tmp/resolv.conf.auto'
	option client_update_ddns '1'

主要目的是加入缓存

小米路由器有点不给力

在全速下载时,小米的dns 192.168.31.1 会。。。

想到在DHCP客户端多加一个dns

config dhcp lan
	option interface	lan
	option start	 5
	option limit	250
	option leasetime	12h
	#force mean start dhcp even if already have a dhcp server running
	option force	1
        list 'dhcp_option' '6,192.168.31.1,223.5.5.5'   //多加的

这样

更新于:2017-11-21