博客
关于我
MT7628学习笔记(8)——开发板联网(以太网和WIFI模式)
阅读量:205 次
发布时间:2019-02-28

本文共 6380 字,大约阅读时间需要 21 分钟。

设置网口模式命令:

ethmode命令 网口状态
ethmode 查看网络模式命令
ethmode l 单网口0,LAN
ethmode w 单网口0,WAN
ethmode wllll 五网口,Port0为WAN,其余为LAN
ethmode lllll 五网口,均为LAN

 

设置WI-FI模式命令:

wifimode命令 状态
wifimode ap 仅AP热点,AP为LAN
wifimode sta 仅STA(apcli0),STA为WAN
wifimode apsta 以上两者共存,AP为LAN,STA为WAN

 

以太网模式联网: 

ethmode w
root@Hiwooya:~# ethmode wmode W[  151.670000] br-lan: port 2(ra0) entered disabled state[  151.680000] br-lan: port 1(eth0) entered disabled state[  151.700000] device eth0 left promiscuous mode[  151.710000] br-lan: port 1(eth0) entered disabled state[  151.730000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready[  151.750000] device ra0 left promiscuous mode[  151.750000] br-lan: port 2(ra0) entered disabled state[  154.930000] rt305x-esw 10110000.esw: link changed 0x00[  154.950000] (NULL device *): kill_sig_workqroot@Hiwooya:~# [  155.780000] device eth0.1 entered promiscuous mode[  155.790000] device eth0 entered promiscuous mode[  155.800000] br-lan: port 1(eth0.1) entered forwarding state[  155.810000] br-lan: port 1(eth0.1) entered forwarding state[  156.730000] device ra0 entered promiscuous mode[  156.740000] br-lan: port 2(ra0) entered forwarding state[  156.750000] br-lan: port 2(ra0) entered forwarding state[  157.810000] br-lan: port 1(eth0.1) entered forwarding state[  158.520000] rt305x-esw 10110000.esw: link changed 0x01[  158.530000] (NULL device *): kill_sig_workq[  158.750000] br-lan: port 2(ra0) entered forwarding state

查询获取到的IP: 

root@Hiwooya:~# ifconfig eth0.2eth0.2    Link encap:Ethernet  HWaddr 8C:88:2B:00:06:B1            inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0          inet6 addr: fe80::8e88:2bff:fe00:6b1/64 Scope:Link          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1          RX packets:276 errors:0 dropped:0 overruns:0 frame:0          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:0           RX bytes:44731 (43.6 KiB)  TX bytes:10700 (10.4 KiB)

 

WIFI模式联网:

wifimode apsta [WIFI名称] [WIFI密码]
root@Hiwooya:~# wifimode apsta CMCC cmcc123456[  314.400000] br-lan: port 2(ra0) entered disabled state[  314.420000] device ra0 left promiscuous mode[  314.430000] br-lan: port 2(ra0) entered disabled state[  314.950000] br-lan: port 1(eth0.1) entered disabled state[  314.970000] device eth0.1 left promiscuous mode[  314.980000] br-lan: port 1(eth0.1) entered disabled state[  314.990000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready[  315.260000] device eth0 left promiscuous mode[  318.250000] rt305x-esw 10110000.esw: link changed 0x00[  318.270000] (NULL device *): kill_sig_workqroot@Hiwooya:~# [  319.120000] device eth0.1 entered promiscuous mode[  319.130000] device eth0 entered promiscuous mode[  319.140000] br-lan: port 1(eth0.1) entered forwarding state[  319.150000] br-lan: port 1(eth0.1) entered forwarding state[  321.150000] br-lan: port 1(eth0.1) entered forwarding state[  321.840000] rt305x-esw 10110000.esw: link changed 0x01[  321.850000] (NULL device *): kill_sig_workq[  322.090000] =====================================================[  322.100000] Channel 1 : Busy Time = 1595, Skip Channel = FALSE[  322.110000] Channel 2 : Busy Time = 2616, Skip Channel = FALSE[  322.120000] Channel 3 : Busy Time = 1606, Skip Channel = FALSE[  322.130000] Channel 4 : Busy Time = 1270, Skip Channel = FALSE[  322.140000] Channel 5 : Busy Time = 5, Skip Channel = FALSE[  322.150000] Channel 6 : Busy Time = 305, Skip Channel = FALSE[  322.170000] Channel 7 : Busy Time = 1, Skip Channel = FALSE[  322.180000] Channel 8 : Busy Time = 0, Skip Channel = FALSE[  322.190000] Channel 9 : Busy Time = 3847, Skip Channel = FALSE[  322.200000] Channel 10 : Busy Time = 4, Skip Channel = FALSE[  322.210000] Channel 11 : Busy Time = 432, Skip Channel = FALSE[  322.220000] Channel 12 : Busy Time = 1257, Skip Channel = TRUE[  322.230000] Channel 13 : Busy Time = 1820, Skip Channel = TRUE[  322.250000] =====================================================[  322.260000] Rule 3 Channel Busy time value : Min Channel Busy  ==> Select Channel 8 [  322.270000] Min Channel Busy = 0[  322.280000] BW        = 40[  322.310000] |--------------------------------------------------------|[  322.320000] |------------Widora wifi driver--version:1.5-------------|[  322.330000] |Copyright 2016-2019 by WIDORA TECH.  All rights reserved|[  322.350000] |       This Driver licensing-only runs on Widora HW!    |[  322.360000] |  Found bug? Please contact widora@qq.com , thanks!     |[  322.370000] |--------------------------------------------------------|[  324.450000] device ra0 entered promiscuous mode[  324.460000] br-lan: port 2(ra0) entered forwarding state[  324.470000] br-lan: port 2(ra0) entered forwarding state[  326.470000] br-lan: port 2(ra0) entered forwarding state[  333.210000] AP-Client probe response: SSID=, BSSID=44:f9:71:7c:3b:a4[  333.230000] APCLI LINK UP - IF(apcli0) AuthMode(7)=WPA2PSK, WepStatus(6)=AES!

查询获取到的IP: 

root@Hiwooya:~# ifconfig apcli0apcli0    Link encap:Ethernet  HWaddr 8E:88:2B:00:06:B1            inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0          inet6 addr: fe80::8c88:2bff:fe00:6b1/64 Scope:Link          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1          RX packets:336 errors:0 dropped:0 overruns:0 frame:0          TX packets:122 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000           RX bytes:67380 (65.8 KiB)  TX bytes:10056 (9.8 KiB)

 

 

检查是否链接好上级AP:

ap_client
root@Hiwooya:~# ap_client ok

 

检查有哪些客户端连接了开发板WIFI:

iwpriv ra0 show stainfo
root@Hiwooya:~# iwpriv ra0 show stainfo[  589.960000] [  589.960000] HT Operating Mode : 0[  589.970000] [  589.970000] [  589.970000] MAC                MODE AID  BSS PSM WMM MIMOPS RSSI0/1/2 PhMd  BW  MCS   SGI   STBC  Idle   Rate   root@Hiwooya:~# [  698.760000] WLAN:STA a8:9c:ed:98:30:74(dev:ra0 rate:130Mbps RSSI:-38dBm) associated root@Hiwooya:~# iwpriv ra0 show stainfo[  705.550000] [  705.560000] HT Operating Mode : 2[  705.560000] [  705.570000] [  705.570000] MAC                MODE AID  BSS PSM WMM MIMOPS RSSI0/1/2 PhMd  BW  MCS   SGI   STBC  Idle   Rate   [  705.590000] A8:9C:ED:98:30:74  200012    0   0   1   3      -29/-35/0  HTMIX 20M 15    0   0    300    130    0         , 130, 100%[  705.610000]                                                  MaxCap:HTMIX     20M   15    1   1    [  705.620000]

 

转载地址:http://muzi.baihongyu.com/

你可能感兴趣的文章
mysql5.7性能调优my.ini
查看>>
MySQL5.7新增Performance Schema表
查看>>
Mysql5.7深入学习 1.MySQL 5.7 中的新增功能
查看>>
Webpack 之 basic chunk graph
查看>>
Mysql5.7版本单机版my.cnf配置文件
查看>>
mysql5.7的安装和Navicat的安装
查看>>
mysql5.7示例数据库_Linux MySQL5.7多实例数据库配置
查看>>
Mysql8 数据库安装及主从配置 | Spring Cloud 2
查看>>
mysql8 配置文件配置group 问题 sql语句group不能使用报错解决 mysql8.X版本的my.cnf配置文件 my.cnf文件 能够使用的my.cnf配置文件
查看>>
MySQL8.0.29启动报错Different lower_case_table_names settings for server (‘0‘) and data dictionary (‘1‘)
查看>>
MYSQL8.0以上忘记root密码
查看>>
Mysql8.0以上重置初始密码的方法
查看>>
mysql8.0新特性-自增变量的持久化
查看>>
Mysql8.0注意url变更写法
查看>>
Mysql8.0的特性
查看>>
MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
查看>>
MySQL8修改密码的方法
查看>>
Mysql8在Centos上安装后忘记root密码如何重新设置
查看>>
Mysql8在Windows上离线安装时忘记root密码
查看>>
MySQL8找不到my.ini配置文件以及报sql_mode=only_full_group_by解决方案
查看>>