Enabling and Disabling Promiscuous Mode

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

No comments:

Post a Comment