
409
After you configure online detection, the BRAS starts a detection timer to detect online users. If the
BRAS does not receive user packets from a user when the detection timer expires, it sends a
detection packet to the user and performs the following operations:
•
If the BRAS receives user packets within the maximum number of detection attempts, the
BRAS assumes that the user is online. It resets the detection timer, and starts the next detection
attempt.
•
If the BRAS does not receive user packets within the maximum number of detection attempts,
the BRAS assumes that the user is offline and deletes the user session.
This feature supports only leased subusers in Layer 2 access mode and individual users.
To configure online detection for dynamic individual users:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Configure online
detection for
dynamic individual
users.
•
For IPv4 dynamic individual users:
ip subscriber user-detect
{
arp
|
icmp
}
retry retries interval interval
•
For IPv6 dynamic individual users:
ipv6 subscriber user-detect
{
icmpv6
|
nd
}
retry retries interval
interval
By default:
•
The BRAS uses the ARP
request packet and ND NS
request packet to detect IPv4
and IPv6 dynamic individual
users, respectively.
•
The BRAS performs a
maximum of five detection
attempts after the first
detection failure.
•
The detection timer is 120
seconds.
Configuring NAS-Port-Type for an interface
The NAS-Port-Type attribute carries information about the access interface. The BRAS includes the
configured NAS-Port-Type in RADIUS requests sent to the RADIUS server.
To configure NAS-Port-Type for an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure
NAS-Port-Type.
•
Configure the IPv4 NAS-Port-Type::
ip subscriber nas-port-type
{
802.11
|
adsl-cap
|
adsl-dmt
|
async
|
cable
|
ethernet
|
g.3-fax
|
hdlc
|
idsl
|
isdn-async-v110
|
isdn-async-v120
|
isdn-sync
|
piafs
|
sdsl
|
sync
|
virtual
|
wireless-other
|
x.25
|
x.75
|
xdsl
}
•
Configure the IPv6 NAS-Port-Type:
ipv6 subscriber nas-port-type
{
802.11
|
adsl-cap
|
adsl-dmt
|
async
|
cable
|
ethernet
|
g.3-fax
|
hdlc
|
idsl
|
isdn-async-v110
|
isdn-async-v120
|
isdn-sync
|
piafs
|
sdsl
|
sync
|
virtual
|
wireless-other
|
x.25
|
x.75
|
xdsl
}
The default
NAS-Port-Type is
Ethernet
.