I am on 11.4R amd64. I have a hardware NIC (fxp0) that I want to do pure traffic analysis on using snort, tcpdump or the equivalent. It is physically connected to my switch on a port that will be configured to mirror other ports from time to time. But I do not want this interface to ever be a real IP interface. I've found that the interface must be "up" to receive anything, but it seems that if I don't configure an IP address, it only sees ethernet broadcast/multicast, which seems weird. I have configured:
This works as expected and can gather the traffic I expect to be able to see and analyse. Is using IPv4 address 0.0.0.0 a sensible choice? Is there a preferred ifconfig arrangement for this purpose?
Code:
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2009<RXCSUM,VLAN_MTU,WOL_MAGIC>
ether 00:90:27:aa:aa:aa
hwaddr 00:90:27:aa:aa:aa
inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.240
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
This works as expected and can gather the traffic I expect to be able to see and analyse. Is using IPv4 address 0.0.0.0 a sensible choice? Is there a preferred ifconfig arrangement for this purpose?