上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 44 下一页
摘要: 在openwrt文件 ar71xx.sh中 查询设备类型时,有这么一句, machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)解决:1)查看cpuinforoot@hbg:/dev# cat /pro 阅读全文
posted @ 2016-05-20 09:00 hbg-rohens 阅读(8815) 评论(0) 推荐(0)
摘要: root@OpenWrt:/# ifconfigbr-lan Link encap:Ethernet HWaddr 00:11:22:34:56:78 inet addr:192.168.2.125 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: 阅读全文
posted @ 2016-05-18 14:49 hbg-rohens 阅读(863) 评论(0) 推荐(0)
摘要: 文件位于 /etc/inittab, 内容如下: root@hbg:/# cat /etc/inittab ::sysinit:/etc/init.d/rcS S boot::shutdown:/etc/init.d/rcS K shutdown::askconsole:/bin/login tty 阅读全文
posted @ 2016-05-16 10:37 hbg-rohens 阅读(1598) 评论(0) 推荐(0)
摘要: IEEE于1999年颁布了标准化VLAN实现方案的 IEEE 802.1Q 协议标准草案,对带有VLAN标识的报文结构进行了统一规定。 传统的以太网数据帧在目的MAC和源MAC地址之后封装的是上层协议的类型字段,如下图所示: 其中,DA表示目的MAC地址,SA表示源MAC地址,Type表示报文所属协 阅读全文
posted @ 2016-05-14 15:00 hbg-rohens 阅读(707) 评论(0) 推荐(0)
摘要: SNMP使用的协议为UDP,默认端口为161和162. 使用iptables 命令如下: iptables -A INPUT -p udp -m udp --dport 161:162 -j DROP 使用mib browser采集设备上的节点,会超时(timeout) 在串口打开tcpdump打印 阅读全文
posted @ 2016-05-13 15:27 hbg-rohens 阅读(1777) 评论(1) 推荐(0)
摘要: Targets: (1)ACCEPT : 让帧通过 (2)DROP: 丢弃帧。 (3)CONTINUE:让帧继续走下面的规则(rule) (4)RETURN: 停止当前链的过滤规则,进而去走前面链的下一条规则 注意:在BROUTING链中ACCEPT和DROP有不同的含义: TABLES: 内置三个 阅读全文
posted @ 2016-05-12 16:21 hbg-rohens 阅读(4827) 评论(0) 推荐(0)
摘要: 理论上,WEP可以搭配任意长度的密钥,因为RC4并未要求非得使用特定长度的密钥。 不过,大多数产品均支持一种或两种长度的密钥。唯一出现在标准中的密钥长度时64位的WEP种子(seed),其中40位是两个工作站进行传送时所共享的密码。不同厂商会以各种不同的名称来称呼标准的WEP模式:standard 阅读全文
posted @ 2016-05-10 17:24 hbg-rohens 阅读(3142) 评论(0) 推荐(0)
摘要: 目前烧写完CC(chaos calmer 15.05)版本,查看其uboot变量如下: ath> printenvbootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:2 阅读全文
posted @ 2016-05-05 15:56 hbg-rohens 阅读(3663) 评论(0) 推荐(0)
摘要: ebtables的参数中: -p:指明使用的协议类型,ipv4,arp等可选(使用时必选)详情见/etc/ethertypes --ip-proto:IP包的类型,1为ICMP包,6为TCP包,17为UDP包,在/etc/protocols下有详细说明 root@hbg:/etc# cat ethe 阅读全文
posted @ 2016-05-03 11:17 hbg-rohens 阅读(3125) 评论(0) 推荐(0)
摘要: 借鉴地址:http://www.pppei.net/blog/post/536 1、向文件 \target\linux\ar71xx\generic\profiles\atheros.mk 中添加ap143类型 define Profile/AP143 NAME:=Atheros AP143 ref 阅读全文
posted @ 2016-04-27 18:33 hbg-rohens 阅读(1932) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 44 下一页