随笔分类 -  CPE

4G router开发
radvd.conf - Linux man page
摘要:Nameradvd.conf - configuration file of the router advertisement daemonradvdDescriptionThis file describes the information which is included in the router advertisement (RA) of a specific interface.The file contains one or more interface definitions of the form:interface name { list of interface s... 阅读全文

posted @ 2014-03-11 11:22 小尾巴猴子 阅读(351) 评论(0) 推荐(0)

MTU设置
摘要:MTU是Maximum Transmission Unit的缩写。意思是网络上传送的最大数据包。大部分网络设备的MTU都是1500。如果本机的MTU比网关的MTU大,大的数据包就会被拆开来传送,这样会产生很多数据包碎片,增加丢包率,降低网络速度。把本机的MTU设成比网关的MTU小或相同,就可以减少丢包。如何检测网关的MTU?ping -f -l 172 192.168.0.1在本机打开dos窗口,执行: ping -f -l 1472 192.168.0.1 其中192.168.0.1是网关IP地址,1472是数据包的长度。请注意,上面的参数是“-l”(小写的L),而不是“-1”。 如果能p. 阅读全文

posted @ 2014-03-03 15:01 小尾巴猴子 阅读(1430) 评论(0) 推荐(0)

Linux IPv6 Router: RADVD + DHCPv6
摘要:Unlike IPv4, which uses DHCP for configuration, IPv6 uses the Neighbor Discovery Protocol to configure addresses and gateways. Unfortunately, originally the protocol had no means of providing addresses of DNS servers to clients, making it necessary to use DHCPv6 for that purpose. Modern Linux and Ma 阅读全文

posted @ 2014-01-13 16:47 小尾巴猴子 阅读(4007) 评论(0) 推荐(0)

Configuring DHCPv6
摘要:As the IPv4 address space is now exhausted, all networking people are focusing on IPv6. In this post, I will explain how to configure DHCPv6 on a Linux machine running Ubuntu 11.04 server (64 bits) with the ISC DHCPv6 service. Be carefull, you need the version 4.x of the ISC DHCP server that support 阅读全文

posted @ 2014-01-13 16:34 小尾巴猴子 阅读(582) 评论(0) 推荐(0)

ubuntu12.04下设置IPv6
摘要:1、安装miredo。$sudo apt-get install miredo2、修改防火墙IPv6设置以root权限打开ufw的配置文件: "/etc/default/ufw",找到"IPV6=no"这一行,将其改为"IPV6=yes"。最后禁用/启用防火墙来使刚刚的改动生效:$ sudo ufw disable$ sudo ufw enable3、重启网络,$sudo invoke-rc.d networking restart4、测试是否设置成功。$ping6 ipv6.google.comPING ipv6.google.co 阅读全文

posted @ 2013-12-20 14:52 小尾巴猴子 阅读(205) 评论(0) 推荐(0)

CPE常用指令
摘要:输入AT指令:法一:cat /dev/ttyUSB1 &echo "at">/dev/ttyUSB1法二:(busybox中集成工具microcom)microcom -s 115200 /dev/ttyUSB1ATE1OK上网配置:route del defaultifconfig $wan_lte_interface $wan_lte_ip uproute add default gw $wan_lte_ipiptables -t nat -A POSTROUTING -s $lan_ip -o $wan_lte_interface -j MASQUERA 阅读全文

posted @ 2013-11-08 18:06 小尾巴猴子 阅读(675) 评论(0) 推荐(0)

编译MT7620n NFS文件系统
摘要:做嵌入式开发,经常需要Download文件到开发板,一般文件少时,可以用tftp。可是,文件比较多时,tftp就不是很方便了。NFS可以很好的解决这个问题。下面就以MT7620N为例,编译嵌入式NFS文件client.1.Kernel配置File system --> Pseudo filesystems --> Virtual memory file system support(former shm fs) Tmpfs POSIX Access Control Lists Network File System --> NFS client support NF... 阅读全文

posted @ 2013-11-07 15:20 小尾巴猴子 阅读(284) 评论(0) 推荐(0)

HI3515海思开发板移植3G模块笔记
摘要:硬件平台:海思Hi3515 Linux3G模块:1、移动模块:ZTE M305(TD-SCDMA)2、联通模块:HUAWEI EM770W(WCDMA)3、电信模块:HUAWEI EM660(CDMA2000-EVDO)开始工作:1、在编译内核时,通过make menuconfig打开模块加载选项,因为调用3G需要用到pppd服务,所以找到pppd服务的,全部启用。2、修改串口驱动,在内核文件中找到option.c文件,在linux-2.6.24\drivers\usb\serial目录下,然后找到option_ids这个设备枚举变量的定义,大概是在134行的位置,然后在这个定义的最后面(“{ 阅读全文

posted @ 2013-11-01 17:30 小尾巴猴子 阅读(1184) 评论(0) 推荐(0)

编译内核开始的小问题Unable to find the Ncurses libraries
摘要:执行命令:sudo apt-get install ncurses-dev即可! 阅读全文

posted @ 2013-09-11 17:04 小尾巴猴子 阅读(167) 评论(0) 推荐(0)

Win7 开启upnp服务,直接在网络中设置连接路由设备
摘要:突然发现别人的电脑能够在网络中直接显示网络中的路由设备,双击就能进入设置界面,而我的确不可以,很郁闷,也许有人说直接输入路由IP不就行了么,干嘛那么麻烦,关键是路由是连在AP模式,IP地址不清楚,默认的IP进不去,只好找找原因。找找原因发现,是upnp服务的问题,也算长长知识了,先看一下什么是upnp:UPnP:通用即插即用 UPnP:Universal Plug and Play UPnP 是各种各样的智能设备、无线设备和个人电脑等实现遍布全球的对等(P2P)网络连接的结构。UPnP 的应用范围非常大,以致足够可以实现许多现成的、新的及令人兴奋的方案,包括家庭自动化、打印、图片处理、音频 / 阅读全文

posted @ 2013-05-09 14:27 小尾巴猴子 阅读(2358) 评论(0) 推荐(0)

ubuntu iptables设置
摘要:1. 查看iptables防火墙规则sudo iptables -L2. 清除已有iptables规则iptables -F或者iptables --flush这两条命令是等效的。有的linux不会清除NAT表中的规则,所有需要手动清除iptables -t NAT -Fiptables -Xiptables –Z将所有iptables以序号标记显示,执行:iptables –L –n --line-numbers比如要删除INPUT里序号为8的规则,执行:iptables –D INPUT 83. 开放指定的端口#允许本地回环接口(即运行本机访问本机)iptables -A INPUT -i 阅读全文

posted @ 2013-05-08 15:58 小尾巴猴子 阅读(400) 评论(0) 推荐(0)

如何获取RFC文档
摘要:1. http://www.rfc-editor.org/2.ftp://ftp.rfc-editor.org/ RFCs can be obtained via FTP fromFTP.RFC-EDITOR.ORG, with the pathname in-notes/rfcnnnn.txt (where"nnnn" refers to the number of the RFC). Login with FTP username"anonymous" and password "name@host.domain".3.http: 阅读全文

posted @ 2013-05-07 11:21 小尾巴猴子 阅读(286) 评论(0) 推荐(0)

导航