< Home

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 any parameters.

Format

url-parameter { redirect-url redirect-url-value | sysname sysname-value | user-ipaddress user-ipaddress-value | user-mac user-mac-value | login-url url-key url } *

undo url-parameter

Parameters

Parameter

Description

Value

redirect-url redirect-url-value

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

The value is a string of 1 to 16 case-sensitive characters without 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.

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.

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.

login-url url-key url

Specifies the login URL of an 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 247 case-sensitive characters without spaces.

Views

URL template view

Default Level

2: Configuration level

Usage Guidelines

After a URL template is created using the url-template name command and URL is configured using the url 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 redirected to a website rather than the Portal server according to the pushed URL, the website provides different web pages for the users according to user terminal information carried in the URL.

Example

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

<HUAWEI> system-view
[HUAWEI] url-template name huawei
[HUAWEI-url-template-huawei] url-parameter user-mac usermac sysname huawei
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >