service force redirect

Function

The service force redirect command configures a forcible redirection profile for a service policy.

The undo service force redirect command restores the default configuration.

By default, no forcible redirection profile is configured for a service policy.

This command is supported only on the NetEngine 8000 F1A.

Format

service force redirect redirect-profile-name

undo service force redirect [ redirect-profile-name ]

Parameters

Parameter Description Value
redirect-profile-name

Specifies the name of a forcible redirection profile.

The value is a string of 1 to 31 characters.

Views

Service policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vas write

Usage Guidelines

Usage Scenario

By default, the device redirects a user to a quota notification page only when receiving a zero quota from a policy server. To enable the device to perform the redirection when the quota usage reaches a specified threshold, run the service force redirect command. Then, the device redirects a user immediately when the quota usage threshold is reached, without waiting for a zero quota from the policy server.

Prerequisites

A redirection profile has been configured using the http-redirect-profile <redirect-profile-name> command.

Configuration Impact

After the service force redirect command is run, the prepaid function of the service policy becomes ineffective.

Precautions

The HTTP redirection profile bound to the service policy template can be deleted only after the binding relationship has been canceled.

The service force redirect command is mutually exclusive with the http-redirect-profile <profile-name> command.

Example

# Configure a forcible redirection profile named redirectprofile1 for the EDSG service policy named edsg1.
<HUAWEI> system-view
[~HUAWEI] http-redirect-profile redirectprofile1
[~HUAWEI-redirect-profile-redirectprofile1] quit
[~HUAWEI] service-policy name edsg1 edsg
[*HUAWEI-service-policy-edsg1] commit
[~HUAWEI-service-policy-edsg1] service force redirect redirectprofile1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >