169 
Syntax 
portal enable method { direct | layer3 | redhcp } 
portal ipv6 enable method { direct | layer3 } 
undo portal [ ipv6 ] enable 
Default 
Portal authentication is disabled on the interface. 
Views 
Interface view 
Predefined user roles 
network-admin 
Parameters 
ipv6: Enables IPv6 portal authentication. Do not specify this keyword for IPv4 portal authentication. 
method: Specifies an authentication mode: 
•  direct—Direct authentication. 
•  layer3—Cross-subnet authentication. 
•  redhcp—Re-DHCP authentication. 
Usage guidelines 
Make sure the device supports IPv6 ACL and IPv6 forwarding before you enable IPv6 portal 
authentication on the interface. 
IPv6 portal authentication does not support the re-DHCP authentication mode. 
Do not add an authentication-enabled interface to an aggregation group. Otherwise, portal 
authentication cannot take effect on the interface. 
You can enable both IPv4 and IPv6 portal authentication on an interface. 
Examples 
# Enable direct IPv4 portal authentication on interface GigabitEthernet 2/1/1. 
<Sysname> system-view 
[Sysname] interface gigabitethernet 2/1/1 
[Sysname-GigabitEthernet2/1/1] portal enable method direct 
Related commands 
display portal interface 
portal fail-permit server 
Use portal [ ipv6 ] fail-permit server to enable the portal fail-permit function for a portal authentication 
server on the interface. 
Use  undo portal [ ipv6]  fail-permit server to disable the portal fail-permit function for the portal 
authentication server. 
Syntax 
portal [ ipv6 ] fail-permit server server-name