網絡卡的混雜模式

2021-09-08 19:13:04 字數 843 閱讀 6188

混雜模式

promiscuous mode

混雜模式(promiscuous mode)是指一台機器能夠接收所有經過它的資料流,而不論其目的位址是否是他。是相對於通常模式(又稱「非混雜模式」)而言的。這被網路

管理員使用來診斷網路問題,但是也被無認證的想偷聽網路通訊(其可能包括密碼和其它敏感的資訊)的人利用。乙個非路由選擇節點在混雜模式下一般僅能夠在相同的衝突域(對乙太網和無線區域網)內監控通訊到和來自其它節點或環(對令牌環或fddi),其是為什麼網路交換被用於對抗惡意的混雜模式。

linux中開啟及關閉混雜模式:

# ifconfig eth0 promisc

# ifconfig eth0 -promisc 

開啟後ifconfig eth0這樣顯示:

link encap:ethernet hwaddr 00:50:56:c0:00:08

inet addr:192.168.4.1 bcast:192.168.4.255 mask:255.255.255.0

inet6 addr: fe80::250:56ff:fec0:8/64 scope:link

up broadcast running promisc multicast  mtu:1500 metric:1

rx packets:0 errors:0 dropped:0 overruns:0 frame:0

tx packets:406 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)

**: 

設定網絡卡混雜模式

關鍵api ioctlsocket 設定雜收模式 巨集 define sio rcvall 0x80000000 0x18000000 1 ip頭 typedef struct ipheader ipheader tcp頭 typedef struct tcpheader tcpheader 流程 ...

linux網絡卡混雜模式

1 網絡卡混雜模式promiscuous與linux上混雜模式的設定 2 linux下使用socket進行網絡卡抓包 1 3 linux下使用混雜模式抓包 2 4 linux下發包 3 混雜模式就是接收所有經過網絡卡的資料報,包括不是發給本機的包,即不驗證mac位址。普通模式下網絡卡只接收發給本機的...

linux網絡卡混雜模式

混雜模式就是接收所有經過網絡卡的資料報,包括不是發給本機的包,即不驗證mac位址。普通模式下網絡卡只接收發給本機的包 包括廣播包 傳遞給上層程式,其它的包一律丟棄。一般來說,混雜模式不會影響網絡卡的正常工作,多在網路監聽工具上使用。網絡卡具有如下的幾種工作模式 1 廣播模式 broad cast m...