H3C S6812 Series Command Reference Manual page 1842

Hide thumbs Also See for S6812 Series:
Table of Contents

Advertisement

# Configure a match rule to redirect HTTP requests that carry the user agent string
5.0(WindowsNT6.1)AppleWebKit/537.36(KHTML,likeGecko)Chrome/36.0.1985.125Safari/537.
36 to the URL http://192.168.0.1.
<Sysname> system-view
[Sysname] portal web-server wbs
[Sysname-portal-websvr-wbs] if-match user-agent
5.0(WindowsNT6.1)AppleWebKit/537.36(KHTML,likeGecko)Chrome/36.0.1985.125Safari/537.36
redirect-url http://192.168.0.1
Related commands
display portal web-server
portal free-rule
url
url-parameter
ip (MAC binding server view)
Use ip to specify the IP address of a MAC binding server.
Use undo ip to restore the default.
Syntax
ip ipv4-address [ key { cipher | simple } string ]
undo ip
Default
The IP address of the MAC binding server is not specified.
Views
MAC binding server view
Predefined user roles
network-admin
Parameters
ipv4-address: Specifies the IP address of a MAC binding server.
key: Specifies a shared key to be used to authenticate packets between the device and the MAC
binding server. Portal packets exchanged between the device and MAC binding server carry an
authenticator that is generated with the shared key. The receiver uses the authenticator to verify the
correctness of the received portal packets. If you do not specify a shared key, the device and MAC
binding server do not authenticate the packets between them.
cipher: Specifies a shared key in encrypted form.
simple: Specifies a shared key in plaintext form. For security purposes, the key specified in plaintext
form will be stored in encrypted form.
string: Specifies the shared key. Its plaintext form is a case-sensitive string of 1 to 64 characters. Its
encrypted form is a case-sensitive string of 1 to 117 characters.
Usage guidelines
If you execute this command multiple times in the same MAC binding server view, the most recent
configuration takes effect.
Examples
# Specify the IP address of the MAC binding server as 192.168.0.111 and the plaintext key as portal.
28

Advertisement

Table of Contents
loading

This manual is also suitable for:

S6813 seriesS5150-ei

Table of Contents