Enabling and Disabling Promiscuous Mode

Copy form : http://www.kernelfaq.com/2008/04/enabling-and-disabling-promiscuous-mode.html

In both Linux and FreeBSD, we can enable/disable promiscuous mode for an interface using “ifconfig". The parameters “promisc" and “-promisc" are used to enable and disable promiscuous mode respectively. In Solaris, promiscuous mode can be enabled using “snoop".

Examples

Linux
Enable promiscuous mode of the interface eth0:
# ifconfig eth0 promisc

Disable promiscuous mode of the interface eth0
# ifconfig eth0 -promisc

FreeBSD
Enable promiscuous mode of the interface nxge0
# ifconfig nxge0 promisc

Disable promiscuous mode of the interface nxge0
# ifconfig nxge0 -promisc

Solaris
Enable promiscuous mode of the interface vxge0
# snoop -d vxge0

Quit snoop to disable promiscuous mode

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s