iw 输出含义?

iw 输出含义?

我找不到有关此输出的任何文档:

# iw dev

phy#0
         Interface wlan0
                 ifindex 3
                 wdev 0x1
                 addr xx:xx:xx:xx:xx:xx
                 type managed

有人能给出韋德夫线?

提前感谢并欢呼!

答案1

我认为“wdev”只是无线接口的另一个标识符。

例如,这个命令应该打印出相同的内容(在你的情况下)

iw dev wlan0 link
iw wdev 0x1 link

在我的电脑上我得到了这个输出

# iw dev
phy#1
    Interface wlan1
            ifindex 7
            wdev 0x100000002
            addr 14:cc:20:61:36:9b
            type managed
            channel 11 (2462 MHz), width: 20 MHz (no HT), center1: 2462 MHz
phy#0
    Interface wlan0
            ifindex 4
            wdev 0x1
            addr 14:cc:20:5a:47:90
            type managed


# iw dev wlan1 link
Connected to 14:cc:20:51:48:a3 (on wlan1)
    SSID: testwifi
    freq: 2462
    RX: 4093396 bytes (69259 packets)
    TX: 12393 bytes (181 packets)
    signal: -39 dBm
    tx bitrate: 1.0 MBit/s

    bss flags:      short-preamble short-slot-time
    dtim period:    0
    beacon int:     100


# iw wdev 0x100000002 link
Connected to 14:cc:20:51:48:a3 (on wlan1)
    SSID: testwifi
    freq: 2462
    RX: 4197598 bytes (71022 packets)
    TX: 12759 bytes (186 packets)
    signal: -45 dBm
    tx bitrate: 1.0 MBit/s

    bss flags:      short-preamble short-slot-time
    dtim period:    0
    beacon int:     100

希望对你有用。

PD:抱歉我的英语不好

相关内容