No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
url (URL template view)

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 [ push-only | redirect-only ] url-string [ ssid ssid ]

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

Parameters

Parameter

Description

Value

url-string

Specifies the redirection URL or pushed URL.

It is a string of 1 to 200 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

push-only

Specifies the URL as a pushed URL.

-

redirect-only

Specifies the URL as a redirection URL.

-

ssid ssid

Specifies the SSID that users associate with.

This parameter is only valid for wireless access users. The SSID that users associate with must be the same as that configured on the device; otherwise, the device cannot push URLs to users.

The SSID must already exist.

NOTE:

If the first character of the SSID name is empty, the entered SSID name must start with a quotation mark (") and end with a quotation mark ("), for example, " hello". The quotation marks at the beginning and end of the SSID name occupy two characters. If the first character of the SSID name is a quotation mark, enter the escape character (\) before the quotation mark, for example, \"hello. The escape character occupies one character.

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 profile view) command to bind a URL template to the Portal server profile to configure redirection URL.

Example

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

<Huawei> system-view
[Huawei] url-template name huawei
[Huawei-url-template-huawei] url http://10.1.1.1
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 198363

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next