Enabling and Disabling Promiscuous Mode

Written by sdx Tuesday, 24 September 2013 14:11

Print

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