日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

iw命令 linux 没有_linux下ifconfig、iwconfig、iwlist命令详解

發(fā)布時(shí)間:2024/9/19 linux 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 iw命令 linux 没有_linux下ifconfig、iwconfig、iwlist命令详解 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

在linux下查看網(wǎng)絡(luò)信息。

一、ifconfig

用途:配置網(wǎng)絡(luò)信息。

如果沒(méi)有參數(shù),將給出當(dāng)前的active 接口。

# ifconfig

eth0 Link encap:Ethernet HWaddr 02:00:E1:00:11:5A

inet addr:192.168.1.234 Bcast:192.168.1.255 Mask:255.255.254.0

inet6 addr: fe80::e1ff:fe00:115a/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:17338002 errors:0 dropped:11993 overruns:0 frame:0

TX packets:228594 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:1759095713 (1.6 GiB) TX bytes:67780580 (64.6 MiB)

Interrupt:33 Base address:0xc000

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:43362 errors:0 dropped:0 overruns:0 frame:0

TX packets:43362 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:4835488 (4.6 MiB) TX bytes:4835488 (4.6 MiB)

wlan0 Link encap:Ethernet HWaddr CC:79:CF:E2:FB:91

inet addr:192.168.50.180 Bcast:192.168.50.255 Mask:255.255.255.0

inet6 addr: fe80::ce79:cfff:fee2:fb91/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:460463 errors:0 dropped:26240 overruns:0 frame:0

TX packets:276794 errors:0 dropped:4 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:159088799 (151.7 MiB) TX bytes:83207394 (79.3 MiB)

這是開(kāi)發(fā)板上的一塊物理網(wǎng)卡和一個(gè)wifi模塊。我們可以看到IP信息,網(wǎng)卡地址等等。這個(gè)命令還常用來(lái)設(shè)置網(wǎng)絡(luò)信息

其中l(wèi)o地址是127.0.0.1,這個(gè)地址是一個(gè)回環(huán)地址,代表本機(jī)(localhost)。

eg:ifconfig eth0 192.168.1.100. 設(shè)置IP有文檔描述此命令即將廢除,取代這個(gè)命令的是ip addr和ip link。 可以試試 ip -s link。

二、iwconfig

用途:配置無(wú)線網(wǎng)絡(luò)接口

iwconfig [interface]

iwconfig?interface?[essid?X] [nwid?N] [modeM] [freq?F]

[channel?C][sens?S?][ap?A?][nick?NN ]

[rate?R] [rts?RT] [frag?FT] [txpower?T]

[enc?E] [key?K] [power?P] [retry?R]

[modu?M] [commit]

描述:iwconfig和ifconfig很相似。但是iwconfig僅僅和無(wú)線網(wǎng)絡(luò)相關(guān)。用來(lái)設(shè)置參數(shù)等。

freq/channel

eg:

iwconfig eth0 freq 2422000000

iwconfig eth0 freq 2.422G

iwconfig eth0 channel 3

iwconfig eth0 channel auto三、iwlist

iwlist:從無(wú)線網(wǎng)卡獲取更詳細(xì)的無(wú)線信息

描述:用于顯示關(guān)于無(wú)線網(wǎng)絡(luò)的額外信息。這些信息往往是iwconfig沒(méi)有顯示出來(lái)的。

scan:給出可以接入的熱點(diǎn)列表信息。

rate/bit: 列出設(shè)備支持的比特率

相關(guān)文件: /proc/net/wireless

Usage: iwlist [interface] scanning [essid NNN] [last]

[interface] frequency

[interface] channel

[interface] bitrate

[interface] rate

[interface] encryption

[interface] keys

[interface] power

[interface] txpower

[interface] retry

[interface] ap

[interface] accesspoints

[interface] peers

[interface] event

[interface] auth

[interface] wpakeys

[interface] genie

[interface] modulation

# iwlist wlan0 frequency

wlan0 13 channels in total; available frequencies :

Channel 01 : 2.412 GHz

Channel 02 : 2.417 GHz

Channel 03 : 2.422 GHz

Channel 04 : 2.427 GHz

Channel 05 : 2.432 GHz

Channel 06 : 2.437 GHz

Channel 07 : 2.442 GHz

Channel 08 : 2.447 GHz

Channel 09 : 2.452 GHz

Channel 10 : 2.457 GHz

Channel 11 : 2.462 GHz

Channel 12 : 2.467 GHz

Channel 13 : 2.472 GHz

Current Frequency:2.457 GHz (Channel 10)

# iwlist wlan0 channel

wlan0 13 channels in total; available frequencies :

Channel 01 : 2.412 GHz

Channel 02 : 2.417 GHz

Channel 03 : 2.422 GHz

Channel 04 : 2.427 GHz

Channel 05 : 2.432 GHz

Channel 06 : 2.437 GHz

Channel 07 : 2.442 GHz

Channel 08 : 2.447 GHz

Channel 09 : 2.452 GHz

Channel 10 : 2.457 GHz

Channel 11 : 2.462 GHz

Channel 12 : 2.467 GHz

Channel 13 : 2.472 GHz

Current Frequency:2.457 GHz (Channel 10)

總結(jié)

以上是生活随笔為你收集整理的iw命令 linux 没有_linux下ifconfig、iwconfig、iwlist命令详解的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。