IPQ方案常用命令
移动光猫账号: CMCCAdmin 密码:aDm8H%MdA
桥接模式
root@CMCC-A1:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'auto'
config switch
option name 'switch0'
config interface 'lan'
option ifname 'eth0 eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.71.1'
option netmask '255.255.255.0'
option ip6assign '60'
option multicast_querier '0'
option igmp_snooping '0'
option ieee1905managed '1'
option configured '1'
config interface 'lan2'
option ifname 'br-lan'
option proto 'dhcp'
获取STA列表
wlanconfig ra2 list sta
获取最大带机量
cfg80211tool ath0 get_maxst
扫描周边STA
iwinfo ath1 scan
iwlist ath0 scanning
获取网口双工模式
cat /sys/class/net/eth0/duplex
TFTP升级
板子升级方法:
Uboot启动时按任意键,会停在uboot阶段,运行以下命令:
setenv ipaddr 192.168.1.11
setenv serverip 192.168.1.xx (TFTP server address)
tftpboot nand-ipq5018-apps.img
imgaddr=$fileaddr && source $imgaddr:script
reset
IPTV VLAN划分
root@CMCC-A1:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'auto'
config switch
option name 'switch0'
config switch
option name 'switch1'
option enable '1'
option enable_vlan '1'
option reset '1'
config switch_vlan
option device 'switch1'
option vlan '1'
option ports '1 6t'
config switch_vlan
option device 'switch1'
option vlan '2'
option ports '2 6t'
config switch_vlan
option device 'switch1'
option vlan '3'
option ports '3 6t'
config switch_vlan
option device 'switch1'
option vlan '100'
option vid '100'
option ports '1t 2t 3t 6t'
config interface 'iptv'
option ifname 'eth1.100'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.17.234'
option netmask '255.255.255.0'
config interface 'lan'
option ifname 'eth1.1 eth1.2 eth1.3'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option multicast_querier '0'
option igmp_snooping '0'
option ieee1905managed '1'
config interface 'wan'
option ifname 'eth0'
option proto 'dhcp'
config interface 'wan6'
option ifname 'eth0'
option proto 'dhcpv6'
获取公网IP时区
http://ip-api.com/json/?lang=zh-CN&fields=16409
RAID组装
mdadm -A -u ea2f636b-9e01-7f50-84bf-bc07367bbdfa 2

浙公网安备 33010602011771号