通过iw或iwinfo命令获取无线客户端的MAC地址

本文介绍了如何利用iw和iwinfo命令在OpenWrt系统中查询并获取无线网络客户端的MAC地址。
摘要由CSDN通过智能技术生成

使用iw可以获取到连接到路由器上所有设备的MAC地址

root@OpenWrt:~# iw dev wlan0 station dump
Station e0:ac:cb:b1:ca:ba (on wlan0)
        inactive time:  27010 ms
        rx bytes:       198087
        rx packets:     1417
        tx bytes:       843928
        tx packets:     969
        tx retries:     66
        tx failed:      4
        signal:         -70 dBm
        signal avg:     -70 dBm
        tx bitrate:     72.2 MBit/s MCS 7 short GI
        rx bitrate:     24.0 MBit/s
        expected throughput:    34.84Mbps
        authorized:     yes
        authenticated:  yes
        preamble:       short
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
Station 04:52:f3:87:cf:77 (on wlan0)
        inactive time:  620 ms
        rx bytes:       316840
        rx packets:     3260
        tx bytes:       419569
        tx packets:     1576
        tx retries:     91
        tx failed:      0
        signal:         -78 dBm
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值