Configuring online Layer 2 portal user detection
Only Layer 2 portal authentication supports this feature.
After a Layer 2 portal user gets online, the device starts a detection timer for the user, and checks whether the user's MAC address entry has been aged out or the user's MAC address entry has been matched (a match means a packet has been received from the user) at the interval. If the device finds no MAC address entry for the user or receives no packets from the user during two successive detection intervals, the device considers that the user has gone offline and clears the authentication information of the user.
To set the Layer 2 portal user detection interval:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter interface view. | interface interface-type interface-number | N/A |
3. Set the Layer 2 portal user detection interval. | portal offline-detect interval offline-detect-interval | 300 seconds by default. |