查看小米路由改私有云的源代码
←
小米路由改私有云
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Applications == === Connected devices === Using the dnsmaq to monitor: <pre> /data/dhcp.leases </pre> <source lang=bash> root@Jarvis:~# wl -i wl0 assoclist root@Jarvis:~# wl -i wl1 assoclist assoclist 18:FE:34:A2:65:AD assoclist 18:FE:34:F2:8A:14 assoclist AC:A2:13:CA:B3:7A assoclist 5C:CF:7F:82:6B:D8 assoclist 5C:CF:7F:94:D9:9A assoclist 5C:CF:7F:94:DC:2C assoclist AC:A2:13:CA:F0:40 # Proprietary Atheros (madwifi) # wlanconfig ath0 list sta </source> more info: [[wl usage]] <br><br> === Reset AP === <source lang=bash> root@Jarvis:~# wl -i wl0 down && sleep 5 && wl -i wl0 up root@Jarvis:~# wl -i wl1 down && sleep 5 && wl -i wl1 up </source> <br><br> === Kick up a STA === <source lang=bash> root@Jarvis:~# wl -i wl1 deauthenticate MAC_ADDR </source> <br><br> === WiFi Config files === <source lang=bash> root@Jarvis:~# cat /etc/config/network config switch 'eth0' option enable '1' config switch_vlan 'eth0_1' option device 'eth0' option vlan '1' option ports '0 2 5*' config switch_vlan 'eth0_2' option device 'eth0' option vlan '2' option ports '4 5' config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option type 'bridge' option ifname 'eth0.1' option proto 'static' option ipaddr '192.168.31.1' option netmask '255.255.255.0' config interface 'wan' option username '900000563616' option proto 'pppoe' option password 'i7k9e7b8' option ifname 'eth0.2' </source> <br><br> === dnsmasq configuration === files: * /etc/init.d/dnsmasq * /etc/config/dhcp * /var/etc/dnsmasq.conf You need to modify the /etc/init.d/dnsmasq to generate the /var/etc/dnsmasq.conf like: <source lang=bash> # auto-generated config file from /etc/config/dhcp conf-dir=/etc/dnsmasq.d/ address=/workforme.stat.localdomain/127.0.0.1 address=/apiiot.mjyun.com/192.168.31.10 dhcp-authoritative domain-needed filterwin2k clear-on-reload localise-queries read-ethers bogus-priv expand-hosts neg-ttl=10 max-ttl=30 cache-size=3000 dns-forward-max=1000 server=/lan/ dhcp-leasefile=/data/dhcp.leases resolv-file=/tmp/resolv.conf.auto local-ttl=0 addn-hosts=/tmp/hosts dhcp-range=lan,192.168.31.100,192.168.31.199,255.255.255.0,12h dhcp-option-force=lan,43,XIAOMI_ROUTER no-dhcp-interface=pppoe-wan address=/Jarvis/192.168.31.1 ptr-record=1.31.168.192.in-addr.arpa,Jarvis no-dhcp-interface=eth0.2 </source> <br><br>
返回到
小米路由改私有云
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面