Allowing only users with DHCP-assigned IP addresses to pass portal authentication
About allowing only users with DHCP-assigned IP addresses to pass portal authentication
This feature allows only users with DHCP-assigned IP addresses to pass portal authentication. Users with static IP addresses cannot pass portal authentication to come online. Use this feature to ensure that only users with valid IP addresses can access the network.
Restrictions and guidelines
To ensure that IPv6 users can pass portal authentication when only users with DHCP-assigned IP addresses to pass portal authentication, disable the temporary IPv6 address feature on terminal devices. Otherwise, IPv6 users will use temporary IPv6 addresses to access the IPv6 network and will fail portal authentication.
This configuration does not affect the online portal users.
Allowing only users with DHCP-assigned IP addresses to pass portal authentication on an interface
Enter system view.
system-view
Enter Layer 3 interface view.
interface interface-type interface-number
Allow only users with DHCP-assigned IP addresses to pass portal authentication.
portal [ ipv6 ] user-dhcp-only
By default, both users with IP addresses obtained through DHCP and users with static IP addresses can pass authentication to come online.