MACOF(8) System Manager's Manual MACOF(8)

macof - flood a switched LAN with random MAC addresses

macof [-i interface] [-s src] [-d dst] [-e tha] [-x sport] [-y dport] [-n times]

macof floods the local network with random MAC addresses (causing some switches to fail open in repeating mode, facilitating sniffing). A straight C port of the original Perl Net::RawIP macof program by Ian Vitek <>.

Specify the interface to send on.
Specify source IP address.
Specify destination IP address.
Specify target hardware address.
Specify TCP source port.
Specify TCP destination port.
Specify the number of packets to send.

Values for any options left unspecified will be generated randomly.


Dug Song <>