321
Parameters
ipv6
: Specifies the IPv6 Web redirect feature. Do not specify this keyword for the IPv4 Web redirect
feature.
url url-string
: Specifies the URL to which the user is redirected. The URL is required to be complete
and begins with
http://
or
https://
, a string of 1 to 256 characters.
interval
interval
: Specifies the time interval at which the user is redirected to the specified URL. It is
in the range of 60 to 86400 seconds. The default interval is 86400 seconds.
Usage guidelines
This feature redirects a user on an interface or a service template to the specified URL before the
user can access an external network through a Web browser. After the specified interval, the user is
redirected to the specified URL again.
Web redirect does not work when both Web redirect and portal authentication are enabled.
On a service template, both Web redirect and portal authentication can be enabled and will take
effect at the same time.
The Web redirect feature takes effect only on HTTP packets that use the default port number 80.
Examples
# Configure IPv4 Web redirect on GigabitEthernet 1/0/1. Set the redirect URL to
http://192.0.0.1
and
the interval to 3600 seconds. (Wired application.)
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] web-redirect url http://192.0.0.1 interval 3600
# Configure IPv4 Web redirect on service template
service1
. Set the redirect URL to
http://192.0.0.1
and the interval to 3600 seconds. (Wireless application.)
<Sysname> system-view
[Sysname] wlan service-template service1
[Sysname-wlan-st-service1] web-redirect url http://192.0.0.1 interval 3600
Related commands
display web-redirect rule