152
View
Interface view
Default level
2: System level
Parameters
ethernet
: Specifies the access port type as Ethernet, which corresponds to code 15.
wireless
: Specifies the access port type as IEEE 802.11 standard wireless interface, which corresponds to
code 19. This keyword is usually specified on an interface for wireless portal users, making sure that the
NAS-Port-Type value delivered by the access device to the RADIUS server is wireless.
Description
Use the
portal nas-port-type
command to specify the access port type (indicated by the NAS-Port-Type
value) on the current interface. The specified NAS-Port-Type value is carried in the RADIUS requests sent
from the device to the RADIUS server.
Use the
undo portal nas-port-type
command to restore the default.
By default, the access port type of an interface is not specified, and the NAS-Port-Type value carried in
RADIUS requests is the user access port type obtained by the access device.
Examples
# Specify the NAS-Port-Type value of VLAN-interface 2 as IEEE 802.11 standard wireless interface.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] portal nas-port-type wireless
portal offline-detect interval
Syntax
portal offline-detect interval
offline-detect-interval
undo portal offline-detect interval
View
Layer 2 Ethernet interface view
Default level
2: System level
Parameters
offline-detect-value
: Online Layer 2 portal user detection interval, in the range of 60 to 65535.
Description
Use the
portal offline-detect interval
command to set the online Layer 2 portal user detection interval.
Then, after a Layer 2 portal user gets online, the device starts a detection timer for the user, and checks
whether the user has sent any packet to the device at this interval. If the device receives no packets from
the user during two detection intervals or finds that the user's MAC address entry has been aged out, the
device considers that the user has gone offline and clears the authentication information of the user.
Use the
undo portal offline-detect interval
command to restore the default.
By default, the online Layer 2 portal user detection interval is 300 seconds.