url (URL template view)

Function

The url command configures the redirection URL or pushed URL.

The undo url command cancels the redirection URL or pushed URL.

By default, no redirection URL or pushed URL is configured.

Format

url [ ssid ssid ] [ push-only | redirect-only ] url-string

undo [ ssid ssid ] [ push-only | redirect-only ] url

Parameters

Parameter

Description

Value

url-string

Specifies the redirection URL of the Portal server or pushed URL.

It is a string of 1 to 200 case-sensitive characters without spaces.

ssid ssid

Specifies the SSID that users associate with.

It is a string of 1 to 32 case-sensitive characters without spaces.

push-only

Specifies the URL as a pushed URL.

-

redirect-only

Specifies the URL as a redirection URL.

-

Views

URL template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a URL template is created using the url-template name command, you can run this command to configure the redirection URL or pushed URL. The difference between redirection URL and pushed URL is as follows:

  • Redirection URL: When a user without network access right connects to the network, the Portal authentication device redirects the user to the redirection URL for authentication.
  • Pushed URL: After an authenticated user accesses the network through web for the first time, the access device pushes the web page corresponding to the URL to the user. The web access request from the user is redirected to the specified URL, and then the user is allowed to access network resources.

Precautions

If the push-only and redirect-only parameters are not specified, the configured URL is used as both redirection URL and pushed URL. You can configure pushed URL using the force-push command, or use the url-template (Portal server template view) command to bind a URL template to the Portal server template to configure redirection URL.

Example

# Set the redirection URL to http://1.1.1.1.

<HUAWEI> system-view
[HUAWEI] url-template name huawei
[HUAWEI-url-template-huawei] url http://1.1.1.1
Related Topics
force-push
url-template (Portal server template view)

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.