166
Usage guidelines
If the device runs Portal 2.0, unsolicited portal packets (such as a logout notification packet) sent to the
portal authentication server must carry the BAS-IP attribute. If the device runs Portal 3.0, unsolicited portal
packets sent to the portal authentication server must carry the BAS-IP or BAS-IPv6 attribute.
After this command takes effect, the source IP address for unsolicited notification portal packets the
device sends to the portal authentication server is the configured BAS-IP or BAS-IPv6. Otherwise the
source IP address of the packets is the IP address of the interface.
If re-DHCP portal authentication is enabled on the interface, the portal device IPv4 or IPv6 address
specified on the portal authentication server and the IPv4 or IPv6 address of the interface must be the
same. Otherwise, portal authentication will fail. To ensure normal authentication for users, you can
configure the BAS-IP or BAS-IPv6 attribute for the interface, and specify the attribute value as the portal
device IPv4 or IPv6 address specified on the portal authentication server.
You must configure the BAS-IP/BAS-IPv6 attribute on an authentication-enabled interface if the portal
device IPv4 or IPv6 address specified on an HP IMC portal authentication server is not the IPv4 or IPv6
address of the interface.
Examples
# Configure the BAS-IP attribute of outgoing portal packets as 2.2.2.2 on interface GigabitEthernet
2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] portal bas-ip 2.2.2.2
Related commands
display portal interface
portal apply web-server
Use portal [ ipv6 ] apply web-server to reference a portal Web server on an interface. The device
redirects the HTTP requests sent by unauthenticated portal users to the portal Web server.
Use undo portal [ ipv6 ] apply web-server to delete the portal Web server referenced on the interface.
Syntax
portal [ ipv6 ] apply web-server server-name [ fail-permit ]
undo portal [ ipv6 ] apply web-server
Default
No portal Web server is referenced on the interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
ipv6: Specifies an IPv6 portal Web server. If the server is an IPv4 portal Web server, do not specify this
keyword.