292
Examples
# Set the format of the NAS-Port-ID attribute to format 1.
<Sysname> system-view
[Sysname] portal nas-port-id format 1
portal nas-port-type
Use
portal
nas-port-type
to specify the NAS-Port-Type value carried in RADIUS requests sent to
the RADIUS server.
Use
undo portal nas-port-type
to restore the default.
Syntax
portal nas-port-type
{
ethernet
|
wireless
}
undo portal nas-port-type
Default
The NAS-Port-Type value carried in RADIUS requests is the user's access interface type value
obtained by the access device.
Views
Interface view
Service template view
Predefined user roles
network-admin
Parameters
ethernet
: Specifies the NAS-Port-Type attribute value as Ethernet (number 15).
wireless
: Specifies the NAS-Port-Type attribute value as WLAN-IEEE 802.11 (number 19).
Usage guidelines
The following matrix shows the support of the MSR routers for this command in different views:
Hardware
Interface view
Service template view
MSR954 (JH296A/JH297A/JH298A/JH299A/JH373A)
Yes
Yes
MSR958 (JH300A/JH301A)
Yes
No
MSR1002-4/1003-8S
Yes
Yes
MSR2003
No
Yes
MSR2004-24/2004-48
Yes
Yes
MSR3012/3024/3044/3064
Yes
Yes
MSR4060/4080
No
No
As the access device, the BAS might not be able to correctly obtain a user's interface type when
multiple network devices exist between the BAS and the portal client. For example, the access
interface type obtained by the BAS for a wireless portal user might be the type of the wired interface
that authenticated the user. For the BAS to send correct user interface type to the RADIUS server,
use this command to specify the correct NAS-Port-Type value.