1.4 KiB
1.4 KiB
将AP的ip设置为1.1
ifconfig eth0 192.168.1.1 up
ip route add default via 192.168.1.3 dev eth0
开启红黑隔离
echo -e "AT+GMAC=12,1\r" > /dev/ttyS4
关闭红黑隔离
echo -e "AT+GMAC=12,0\r" > /dev/ttyS4
开启cp网卡
echo -e "at+gmac=1,2\r" > /dev/ttyS4
设置ap地址
echo -e "AT+GMAC=11,154,42,22,189,195,194\r" > /dev/ttyS4 #原AP
echo -e "AT+GMAC=11,122,90,221,216,73,170\r" > /dev/ttyS4 #新AP
echo -e "AT+GMAC=11,108,31,247,37,159,211\r" > /dev/ttyS4 #pc
cp灌包
echo -e "at+gmac=2\r" > /dev/ttyS4
查看CP收包数
echo -e "AT+GMAC=6\r" > /dev/ttyS4
关闭回环
echo -e "at+gmac=13,0\r" > /dev/ttyS4
AP开启rbnet,CP开启回环后执行
ethtool -K eth0 rx-checksum off
ethtool -K eth1 rx-checksum off
AP收灌包
iperf-2.0.5 -s -u -i 1
AP设置CP的静态ARP
arp -s 192.168.1.3 04:05:06:07:08:09
AP向CP灌包
iperf -c 192.168.1.3 -u -b 100m -i 1 -t 30
echo -e "AT+CTRL0=0\r" > /dev/ttyS4
AQ指令
AQ+CKST?\r\n
echo -e "AT+XWLOCKSAT=19,1,1,1696664,0" > /dev/ttyS4
echo -e "at+cfun=1" > /dev/ttyS4
AQ+MAC=02:03:03:03:03:02
AQ+CFGIP=1,192.168.1.1\r\n
iperf-2.0.5 -c 192.168.1.3 -p 5001 -i 1 -t 10
iperf-2.0.5 -c 192.168.1.3 -u -b 100m -i 1 -t 10