Fortinet black logo

Administration Guide

Learning about hosts on the network

Copy Link
Copy Doc ID 8bec453a-b242-11e9-a989-00505692583a:723904
Download PDF

Learning about hosts on the network

When a host is on the network, FortiNAC needs to know that the host has connected or disconnected and what that host's IP address and MAC address are. FortiNAC can learn this information in several ways including, link up/link down traps sent by the switch, MAC learned traps sent by the switch with the MAC address or by polling network devices.

Link up and link down traps

If a device on the network supports link up and link down traps, you should enable this feature and configure the device to send traps to the IP address of the FortiNAC Server or FortiNAC Control Server. As soon as the device is modeled in FortiNAC, FortiNAC listens for traps from that device. When FortiNAC receives a Linkup trap, it polls the switch to read the available host information. If FortiNAC does not receive information from the device after the first poll, it retries up to seven times.

Polling triggered by traps is configured from System > Settings > Network Device. The Minimum Trap Period (Sec) field controls the number of seconds FortiNAC waits after receiving a linkup trap before reading the forwarding table from the switch associated with the trap. The default is 10 seconds. The Max Number of Trap Periods field controls the number of periods FortiNAC waits before reading the forwarding table on the switch. The default setting for this field is 4. The number of retries is not configurable. See Network device.

If you use link up traps, the process for learning that the host is connected and its MAC address and IP address is as follows:

  1. A host connects to a switch.
  2. The switch sends a link up trap to FortiNAC.
  3. Assuming that the Minimum Trap Period is set to 10 seconds and the Max Number of Periods is set to 4, then FortiNAC waits 40 seconds to read the forwarding table on the switch.
  4. If the host's MAC address is not returned, FortiNAC waits another 40 seconds and reads the forwarding table on the switch again. FortiNAC repeats this process up to seven times until it retrieves the host data.
  5. If after seven retries the host data is not retrieved, FortiNAC does not try any more until the next scheduled poll for the device.

It is possible for a trap to be sent from the device and not be received by FortiNAC. Therefore, in addition to traps it is important to configure polling intervals in FortiNAC for each of your devices. Configuring polling is particularly important for wireless devices because it is the method used to determine that a host has disconnected from the wireless device. See L2 polling and L3 polling.

MAC notification traps

MAC Learned or MAC Notification Traps are traps that send host information when the host connects or disconnects alleviating the need for FortiNAC to poll. These traps are only supported on some devices, such as Cisco switches. If MAC Notification traps are available and supported by FortiNAC for the device, it is beneficial to enable them and reduce network traffic created by frequent polling. To use MAC Notification Traps they must be enabled on the device and configured to be sent to the IP address of the FortiNAC Server or Control Server and the device must be modeled in FortiNAC.

If you enable MAC Notification or MAC Learned traps on a device, you should disable Link Up and Link Down traps. They are redundant, cause additional traffic and prevent the MAC Learned event messages from being generated on FortiNAC.

If MAC Notification traps configured on Cisco devices are not being processed, verify the following:The SNMP user credentials entered in FortiNAC are for a User who is a member of a SNMP Group on the device. That the SNMP Group is configured with the contexts the group needs to access. Below is an example from a running configuration on a Cisco device:

snmp-server group testv3 v3 auth write view2
snmp-server group testv3 v3 auth context vlan-35
snmp-server group testv3 v3 auth context vlan-85

Polling

FortiNAC has a built in polling mechanism that compensates for missed traps or devices that are not configured to send traps by reading tables on network devices and retrieving host information. Polling information is stored for each device individually including: Enable/Disable Polling, Polling Interval, Last Successful Poll Time and Last Attempted Poll Time. For L3 devices Polling Priority is also stored.

Using the polling interval and the Last Successful Poll information stored for the device, FortiNAC polls devices individually. For example if device A has a polling interval of 15 minutes and a Last Successful Poll time of 10:15, then the next poll happens at 10:30 regardless of when other devices are being polled. The Last Successful Poll Time is updated any time the device is read, including using the Poll Now option or when a trap triggers FortiNAC to read the device. Updating Last Successful Poll Time for each contact with the device prevents unnecessary polling.

The Polling interval on devices is set initially based on device media type (wired or wireless). When network devices are discovered, they are analyzed and placed in groups. L2 devices are automatically placed in either the L2 Wired Devices or L2 Wireless groups. The default polling interval is 10 minutes for wireless devices and one hour for wired devices. Polling on wireless devices is more frequent because it is the only method for determining that a host has disconnected from the wireless device.

A default L3 (IP --> MAC ) group is created by FortiNAC. During discovery this group is not automatically populated. You must add your L3 devices to this group.

Traps and SNMP support

The following table lists the traps and SNMP version that FortiNAC supports.

Vendor

Trap Name

OID

SNMP Version

MIB 2

linkUp

0.3

1

linkDown

0.2

1

linkUp

1.3.6.1.6.3.1.1.5.4

2

linkDown

1.3.6.1.6.3.1.1.5.3

2

HP

MACNotification

1.3.6.1.4.1.11.2.14.11.5.1.66.1.7

1

Aerohive

LinkTrap

1.3.6.1.4.1.26928.1.1.1.1.1

1

LinkTrap

1.3.6.1.4.1.26928.1.1.1.1.1.3

2

Extreme

linkUp

1.3.6.1.4.1.1916.2.131.50.0.16.0.1

2

linkDown

1.3.6.1.4.1.1916.2.131.50.0.16.0.2

2

MACNotification

1.3.6.1.4.1.1916.1.16.6.1

1

MacAdded

1.3.6.1.4.1.1916.1.16.6.0.1

2

MacDeleted

1.3.6.1.4.1.1916.1.16.6.0.2

2

MacMoved

1.3.6.1.4.1.1916.1.16.6.0.3

2

Cisco

MacNotification

1.3.6.1.4.1.9.9.215.1.1.8.1.2

1

H3C

MacNotification

1.3.6.1.4.1.25506.2.87.1.3.0.1

2

MacNotification2

1.6.1.3.6.1.4.1.25506.2.87.1.4

2

MacNotification3

1.3.6.1.4.1.25506.2.87.1.4

2

Juniper

MacNotification

1.3.6.1.4.1.2636.3.40.1.7.2.0.1

2

MacNotification

1.3.6.1.4.1.2636.3.40.1.7.1.1.1.8.1.2

1

Brocade

Trap

1.3.6.1.4.1.1991

1, 2

Learning about hosts on the network

When a host is on the network, FortiNAC needs to know that the host has connected or disconnected and what that host's IP address and MAC address are. FortiNAC can learn this information in several ways including, link up/link down traps sent by the switch, MAC learned traps sent by the switch with the MAC address or by polling network devices.

Link up and link down traps

If a device on the network supports link up and link down traps, you should enable this feature and configure the device to send traps to the IP address of the FortiNAC Server or FortiNAC Control Server. As soon as the device is modeled in FortiNAC, FortiNAC listens for traps from that device. When FortiNAC receives a Linkup trap, it polls the switch to read the available host information. If FortiNAC does not receive information from the device after the first poll, it retries up to seven times.

Polling triggered by traps is configured from System > Settings > Network Device. The Minimum Trap Period (Sec) field controls the number of seconds FortiNAC waits after receiving a linkup trap before reading the forwarding table from the switch associated with the trap. The default is 10 seconds. The Max Number of Trap Periods field controls the number of periods FortiNAC waits before reading the forwarding table on the switch. The default setting for this field is 4. The number of retries is not configurable. See Network device.

If you use link up traps, the process for learning that the host is connected and its MAC address and IP address is as follows:

  1. A host connects to a switch.
  2. The switch sends a link up trap to FortiNAC.
  3. Assuming that the Minimum Trap Period is set to 10 seconds and the Max Number of Periods is set to 4, then FortiNAC waits 40 seconds to read the forwarding table on the switch.
  4. If the host's MAC address is not returned, FortiNAC waits another 40 seconds and reads the forwarding table on the switch again. FortiNAC repeats this process up to seven times until it retrieves the host data.
  5. If after seven retries the host data is not retrieved, FortiNAC does not try any more until the next scheduled poll for the device.

It is possible for a trap to be sent from the device and not be received by FortiNAC. Therefore, in addition to traps it is important to configure polling intervals in FortiNAC for each of your devices. Configuring polling is particularly important for wireless devices because it is the method used to determine that a host has disconnected from the wireless device. See L2 polling and L3 polling.

MAC notification traps

MAC Learned or MAC Notification Traps are traps that send host information when the host connects or disconnects alleviating the need for FortiNAC to poll. These traps are only supported on some devices, such as Cisco switches. If MAC Notification traps are available and supported by FortiNAC for the device, it is beneficial to enable them and reduce network traffic created by frequent polling. To use MAC Notification Traps they must be enabled on the device and configured to be sent to the IP address of the FortiNAC Server or Control Server and the device must be modeled in FortiNAC.

If you enable MAC Notification or MAC Learned traps on a device, you should disable Link Up and Link Down traps. They are redundant, cause additional traffic and prevent the MAC Learned event messages from being generated on FortiNAC.

If MAC Notification traps configured on Cisco devices are not being processed, verify the following:The SNMP user credentials entered in FortiNAC are for a User who is a member of a SNMP Group on the device. That the SNMP Group is configured with the contexts the group needs to access. Below is an example from a running configuration on a Cisco device:

snmp-server group testv3 v3 auth write view2
snmp-server group testv3 v3 auth context vlan-35
snmp-server group testv3 v3 auth context vlan-85

Polling

FortiNAC has a built in polling mechanism that compensates for missed traps or devices that are not configured to send traps by reading tables on network devices and retrieving host information. Polling information is stored for each device individually including: Enable/Disable Polling, Polling Interval, Last Successful Poll Time and Last Attempted Poll Time. For L3 devices Polling Priority is also stored.

Using the polling interval and the Last Successful Poll information stored for the device, FortiNAC polls devices individually. For example if device A has a polling interval of 15 minutes and a Last Successful Poll time of 10:15, then the next poll happens at 10:30 regardless of when other devices are being polled. The Last Successful Poll Time is updated any time the device is read, including using the Poll Now option or when a trap triggers FortiNAC to read the device. Updating Last Successful Poll Time for each contact with the device prevents unnecessary polling.

The Polling interval on devices is set initially based on device media type (wired or wireless). When network devices are discovered, they are analyzed and placed in groups. L2 devices are automatically placed in either the L2 Wired Devices or L2 Wireless groups. The default polling interval is 10 minutes for wireless devices and one hour for wired devices. Polling on wireless devices is more frequent because it is the only method for determining that a host has disconnected from the wireless device.

A default L3 (IP --> MAC ) group is created by FortiNAC. During discovery this group is not automatically populated. You must add your L3 devices to this group.

Traps and SNMP support

The following table lists the traps and SNMP version that FortiNAC supports.

Vendor

Trap Name

OID

SNMP Version

MIB 2

linkUp

0.3

1

linkDown

0.2

1

linkUp

1.3.6.1.6.3.1.1.5.4

2

linkDown

1.3.6.1.6.3.1.1.5.3

2

HP

MACNotification

1.3.6.1.4.1.11.2.14.11.5.1.66.1.7

1

Aerohive

LinkTrap

1.3.6.1.4.1.26928.1.1.1.1.1

1

LinkTrap

1.3.6.1.4.1.26928.1.1.1.1.1.3

2

Extreme

linkUp

1.3.6.1.4.1.1916.2.131.50.0.16.0.1

2

linkDown

1.3.6.1.4.1.1916.2.131.50.0.16.0.2

2

MACNotification

1.3.6.1.4.1.1916.1.16.6.1

1

MacAdded

1.3.6.1.4.1.1916.1.16.6.0.1

2

MacDeleted

1.3.6.1.4.1.1916.1.16.6.0.2

2

MacMoved

1.3.6.1.4.1.1916.1.16.6.0.3

2

Cisco

MacNotification

1.3.6.1.4.1.9.9.215.1.1.8.1.2

1

H3C

MacNotification

1.3.6.1.4.1.25506.2.87.1.3.0.1

2

MacNotification2

1.6.1.3.6.1.4.1.25506.2.87.1.4

2

MacNotification3

1.3.6.1.4.1.25506.2.87.1.4

2

Juniper

MacNotification

1.3.6.1.4.1.2636.3.40.1.7.2.0.1

2

MacNotification

1.3.6.1.4.1.2636.3.40.1.7.1.1.1.8.1.2

1

Brocade

Trap

1.3.6.1.4.1.1991

1, 2