Enabling portal authentication only for DHCP users


[IMPORTANT: ]

IMPORTANT:

IPv6 wireless users use IPv6 temporary addresses to access the IPv6 network even though they have been assigned DHCPv6 addresses. To prevent such IPv6 users from failing authentication when the user-dhcp-only feature is enabled, make sure the IPv6 temporary address feature is disabled on the terminal devices.


To ensure that only users with valid IP addresses access the network, enable this feature on an interface or a service template. 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.

To enable portal authentication only for DHCP users on an interface:

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.

To enable portal authentication only for DHCP users on a service template:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter service template view.

wlan service-template service-template-name

N/A

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

portal 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.