Enabling portal authentication only for DHCP users

This feature allows only users with DHCP-assigned IP addresses to pass portal authentication. Users with static IP addresses cannot pass portal authentication to get online. Use this feature to prevent users with illegal IP addresses from accessing the network.

To ensure that IPv6 users can pass portal authentication when this feature is enabled, 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.

To enable portal authentication only for DHCP users:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Enable portal authentication only for users with IP addresses obtained through DHCP.

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 get online.