286
Views
Interface view
Predefined user roles
network-admin
Parameters
type
: Specifies the detection type.
•
icmpv6
—ICMPv6 detection.
•
nd
—ND detection.
retry
retries
: Sets the maximum number of detection attempts, in the range of 1 to 10. The default
value is 3.
interval
interval
: Sets a detection interval in the range of 1 to 1200 seconds. The default interval is 3
seconds.
idle time
: Sets the user idle timeout in the range of 60 to 3600 seconds. The default idle timeout is
180 seconds. When the timeout expires, online detection of portal users is started.
Usage guidelines
If the device receives no packets from a portal user within the idle time, the device detects the user's
online status as follows:
•
ICMPv6 detection
—Sends ICMPv6 requests to the user at configurable intervals to detect the
user status.
If the device receives a reply within the maximum number of detection attempts, it considers
that the user is online and stops sending detection packets. Then the device resets the idle
timer and repeats the detection process when the timer expires.
If the device receives no reply after the maximum number of detection attempts, the device
logs out the user.
•
ND detection
—Sends ND requests to the user and detects the ND entry status of the user at
configurable intervals.
If the ND entry of the user is refreshed within the maximum number of detection attempts,
the device considers that the user is online and stops detecting the user's ND entry. Then
the device resets the idle timer and repeats the detection process when the timer expires.
If the ND entry of the user is not refreshed after the maximum number of detection attempts,
the device logs out the user.
Direct authentication and re-DHCP authentication support both ND detection and ICMPv6 detection.
Cross-subnet authentication only supports ICMPv6 detection.
If firewall policies on the access device filter out ICMPv6 packets, ICMPv6 detection might fail and
result in the logout of portal users. Make sure the access device does not block ICMPv6 packets
before you enable ICMPv6 detection on an interface.
Examples
# Enable online detection of IPv6 portal users on GigabitEthernet 1/0/1. Configure the detection type
as
ICMPv6
, the maximum number of detection attempts as
5
, the detection interval as
10
seconds,
and the user idle timeout as
300
seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname–GigabitEthernet1/0/1] portal ipv6 user-detect type icmpv6 retry 5 interval 10
idle 300
Related commands
display portal