Developers guide
Chapter 6
Copyright © 2008-2013 Inverse inc.
Configuration by example 38
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
Trap receiver
PacketFence uses snmptrapd as the trap receiver. It stores the community name used by the switch to
send traps in the switch config file (/usr/local/pf/conf/switches.conf):
[default]
SNMPCommunityTrap = public
Switch Setup
In our example, we enable linkUp/linkDown on a Cisco 2900LX and Port Security on a Cisco Catalyst 2960.
Please consult the Network Devices Configuration Guide for the complete list of supported switches and
configuration instructions.
linkUp/linkDown + MAC Notification
On the 2900XL.
global setup
snmp-server enable traps snmp linkdown linkup
snmp-server enable traps mac-notification
snmp-server host 192.168.1.5 trap version 2c public snmp mac-notification
mac-address-table notification interval 0
mac-address-table notification
mac-address-table aging-time 3600
on each interface
switchport mode access
switchport access vlan 4
snmp trap mac-notification added
Port Security
On the 2960.
global setup