The prepaid function allows the RADIUS server to deliver
an EDSG service with a specified time or traffic volume quota in advance.
After the quota is exhausted, the BRAS reapplies for an EDSG service
quota from the RADIUS server. When the RADIUS server returns a zero
quota, the BRAS executes a deactivation or redirection policy. This
section describes how to configure the prepaid function.
Context
An authentication scheme, an accounting scheme, and a
RADIUS server group have been configured for the prepaid function
of EDSG services (for details, see AAA Configuration).
Procedure
- Run system-view
The system view is displayed.
- Configure a prepaid profile.
- Run prepaid-profile prepaid-profile-name
A prepaid profile is created, and the prepaid profile view
is displayed.
- Run radius-server
group group-name
A RADIUS server group is bound to the prepaid profile.
- Run authentication-scheme prepaid-profile-name
An authentication scheme is configured for the prepaid profile.
- Run accounting-scheme accounting-scheme-name command
An accounting scheme is configured for the prepaid profile.
The BRAS provides two fixed accounting schemes: default0 and default1. The two accounting schemes cannot
be deleted but can be modified.
- Run password cipher cipher-password
A password used is configured for the BRAS to apply for an
EDSG service quota from the RADIUS server.
- (Optional) Run threshold time time-threshold seconds
A time threshold is configured for the BRAS to reapply for
a time quota for EDSG services from the RADIUS server.
When
the remaining time quota of a user's EDSG service reaches a configured
time threshold, the BRAS reapplies for a time quota for the EDSG service
from the RADIUS server. When the RADIUS server returns a zero time
quota, the BRAS executes a deactivation or redirection policy.
- (Optional) Run threshold volume volume-threshold { kbytes | mbytes | bytes }
A traffic volume threshold is configured for the BRAS to
reapply for a traffic volume quota for EDSG services from the RADIUS
server.
When the remaining traffic volume quota of a user's
EDSG service reaches a configured traffic volume threshold, the BRAS
reapplies for a traffic volume quota for the EDSG service from the
RADIUS server. When the RADIUS server returns a zero traffic volume
quota, the BRAS executes a deactivation or redirection policy.
You
can configure both the time and traffic volume thresholds for the
BRAS to reapply for EDSG service quotas from the RADIUS server. Once
the remaining time or traffic volume quota of a user's EDSG service
reaches the corresponding configured threshold, the BRAS reapplies
for an EDSG service quota from the RADIUS server. For example, if
the time and traffic volume thresholds are respectively set to 60s
and 5 Mbytes for a user:
- When the remaining traffic volume quota of the user's EDSG service
is 5 Mbytes but the remaining time quota of the EDSG service is greater
than 60s, the BRAS reapplies for a traffic volume quota for the EDSG
service from the RADIUS server.
- When the remaining time quota of the user's EDSG service is 60s
but the remaining traffic volume quota of the EDSG service is greater
than 5 Mbytes, the BRAS reapplies for a time quota for the EDSG service
from the RADIUS server.
- Run commit command
The configuration is committed.
- (Optional) Configure a policy used when the quota is exhausted
as required.
- Configure a deactivation policy. When the quota of a
user's EDSG service is exhausted, the BRAS deletes the EDSG service.
Run the quota-out service deactivate command to configure a deactivation policy.
Run the commit command to commit the configuration.
Run the quit command to return to the system view.
- Configure a redirection policy. When the quota of a
user's EDSG service is exhausted, the user is redirected to a specified
web page.
Run the http-redirect-profile redirect-profile-name command to create an HTTP redirection profile and enter the HTTP
redirection profile view.
Run the web-server url redirect-url command to configure a redirection
web page.
(Optional) Run the web-server mode { get | post } command to
configure an HTTP access mode for the web server.
Run the commit command to commit the configuration.
Run the quit command to return to the system view.
Run the prepaid-profile prepaid-profile-name command to enter the prepaid profile view.
Run the quota-out redirect redirect-profile-name command to configure a redirection
policy and specify an HTTP redirection profile.
Run the commit command to commit the configuration.
Run the quit command to return to the system view.
- Apply the prepaid profile in the EDSG service policy view.
- Run service-policy name policy-name edsg
The EDSG service policy view is displayed.
An EDSG
service policy must have been configured. For details about how to
configure an EDSG service policy, see Configuring an EDSG Service Policy.
- Run prepaid-profile prepaid-profile-name
A prepaid profile is configured for the EDSG service policy.
- (Optional) Run service volume-quota apply { inbound | outbound }
The traffic direction to which the EDSG service
quota applies is configured.
- Run commit
The configuration is committed.