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-parameter

url-parameter

Function

The url-parameter command sets parameters in a URL.

The undo url-parameter command deletes parameters in a URL.

By default, a URL does not carry parameters.

Format

url-parameter { ac-ip ac-ip-value | ac-mac ac-mac-value | ap-ip ap-ip-value | ap-mac ap-mac-value | login-url url-key url | redirect-url redirect-url-value | ssid ssid-value | sysname sysname-value | user-ipaddress user-ipaddress-value | user-mac user-mac-value } *

undo url-parameter

Parameters

Parameter

Description

Value

ac-ip ac-ip-value

Specifies the IP address of the AC carried in the URL and sets the parameter name displayed in the URL.

This parameter applies only to wireless users. By default, the value of device-ip carried in the URL is the CAPWAP gateway address.

NOTE:

Only Fat central APs support this parameter.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

ac-mac ac-mac-value

Specifies the MAC address of the AC carried in the URL and sets the parameter name displayed in the URL.

NOTE:

Only Fat central APs support this parameter.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

ap-ip ap-ip-value

Specifies the AP IP address carried in the URL and sets the parameter name.

This parameter is only valid for wireless access users.

NOTE:

Fat APs do not support this parameter.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

ap-mac ap-mac-value

Specifies the AP MAC address carried in the URL and sets the parameter name.

This parameter is only valid for wireless access users.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

login-url url-key url

Specifies the login URL of the access device.

  • url-key: specifies the identification keyword for the login URL sent to the Portal server during redirection.
  • url: is a specified URL on the access device.
  • url-key: The value is a string of 1 to 16 case-sensitive characters without spaces, question marks (?), ampersands (&), and equal signs (=).
  • url: The value is a string of 1 to 200 case-sensitive characters without spaces.

redirect-url redirect-url-value

Specifies the original URL that a user accesses carried in the URL and sets the parameter name.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

ssid ssid-value

Specifies the SSID associated that users associate with carried in the URL and sets the parameter name.

This parameter is only valid for wireless access users.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

sysname sysname-value

Specifies the device system name carried in the URL and sets the parameter name.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

user-ipaddress user-ipaddress-value

Specifies the user IP address carried in the URL and sets the parameter name.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

user-mac user-mac-value

Specifies the user MAC address carried in the URL and sets the parameter name.

The value is a string of 1 to 16 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

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 and URL is configured using the url (URL template view) command, you can use the url-parameter command to set the parameters in the URL. When a user accesses the Portal server according to the URL, the Portal server obtains user terminal information through the parameters in the URL. The Portal server then provides the corresponding web authentication page for the user according to user terminal information.

In addition, when users are pushed to a website rather than the Portal server according to the URL, the website provides the different web pages for the users according to user terminal information carried in the URL.

Precautions

Fat APs do not support carrying IP addresses of APs in the URL. If the URL is configured to carry the IP address and MAC address of the AP in the central Fat AP + RU scenario, the IP address and MAC address of the RU is used for redirection.

URL parameter names configured on the device must be the same as those supported by the server. In this example, the device is connected to the Agile Controller-Campus.

URL Parameter

URL Parameter Name Supported by the Agile Controller-Campus

ac-ip

ac-ip

ap-mac

apmac

ssid

ssid

redirect-url

url

user-ipaddress

userip

user-mac

usermac

Example

# Set the user MAC address and access device system name in the URL.

<Huawei> system-view
[Huawei] url-template name huawei
[Huawei-url-template-huawei] url-parameter user-mac usermac sysname huawei
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 209244

Downloads: 122

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