128
When you configure a portal authentication source subnet, follow these restrictions and guidelines:
•
Authentication source subnets apply only to cross-subnet portal authentication.
•
In direct or re-DHCP portal authentication mode, a portal user and its access interface
(portal-enabled) are on the same subnet. It is not necessary to specify the subnet as the
authentication source subnet. If the specified authentication source subnet is different from the
access subnet of the users, the users will fail the portal authentication.
{
In direct mode, the access device regards the authentication source subnet as any source IP
address.
{
In re-DHCP mode, the access device regards the authentication source subnet on an interface
as the subnet to which the private IP address of the interface belongs.
•
If both authentication source subnets and destination subnets are configured on an interface, only
the authentication destination subnets take effect.
•
You can configure multiple authentication source subnets. If the source subnets overlap, the subnet
with the largest address scope (with the smallest mask or prefix) takes effect.
To configure an IPv4 portal authentication source subnet:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure an IPv4 portal
authentication source subnet.
portal layer3 source
ipv4-network-address
{
mask-length
|
mask
}
By default, no IPv4 portal
authentication source subnet is
configured, and users from any
subnets must pass portal
authentication.
To configure an IPv6 portal authentication source subnet:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Configure an IPv6 portal
authentication source subnet.
portal ipv6 layer3 source
ipv6-network-address prefix-length
By default, no IPv6 portal
authentication source subnet is
configured, and IPv6 users from
any subnets must pass portal
authentication.
Configuring an authentication destination subnet
By configuring authentication destination subnets, you specify that users trigger portal authentication
only when they accessing the specified subnets (excluding the destination IP addresses and subnets
specified in portal-free rules). Users can access other subnets without portal authentication.
If both authentication source subnets and destination subnets are configured on an interface, only the
authentication destination subnets take effect.