
328
Enabling portal user login/logout logging
This feature logs information about user login and logout events, including the username, user IP
address and MAC address, user access interface, VLAN, and login result. The logs are sent to the
information center of the device. For the logs to be output correctly, you must also configure the
information center on the device. For more information about information center configuration, see
Network Management and Monitoring Configuration Guide
.
To enable portal user login/logout logging:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable portal user
login/logout logging.
portal user log enable
[
abnormal-logout
|
failed-login
|
normal-logout
|
successful-login
] *
By default, portal user login/logout
logging is disabled.
Configuring Web redirect
About Web redirect
Web redirect is a simplified portal feature. With Web redirect, a user does not perform portal
authentication but is directly redirected to the specified URL on the first Web access attempt in a
browser. After the specified redirect interval, the user is redirected from the visiting website to the
specified URL again.
Web redirect can provide ISPs with extended services. For example, the ISPs can place
advertisements and publish information on the redirected webpage.
Restrictions and guidelines
When you configure Web redirect, follow these restrictions and guidelines:
•
On Etherchannel interfaces, both Web redirect and portal authentication can be enabled at the
same time.
•
On non-Etherchannel interfaces, Web redirect does not work when both Web redirect and
portal authentication are enabled.
•
The Web redirect feature takes effect only on HTTP packets that use the default port number 80
and HTTPS packets that use the default port number 443.
Procedure
To configure Web redirect:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure Web redirect.
web-redirect
[
ipv6
]
url
url-string
[
interval
interval
]
By default, Web redirect is
disabled.