< Home

portal auth-network

Function

The portal auth-network command configures the source subnet for Portal authentication.

The undo portal auth-network command restores the default setting.

By default, the source subnet for Portal authentication is 0.0.0.0/0, indicating that users in all subnets must pass Portal authentication.

Format

portal auth-network network-address { mask-length | mask-address }

undo portal auth-network { network-address { mask-length | mask-address } | all }

Parameters

Parameter

Description

Value

network-address

Specifies a Portal authentication subnet.

The value is in dotted decimal notation.

mask-length | mask-address

Specifies the mask length or mask of the Portal authentication subnet.

  • mask-length: specifies the mask length.
  • mask-address: specifies the mask.
  • The value of mask-length is an integer that ranges from 1 to 32.
  • The value of mask-address is in dotted decimal notation.

all

Deletes all Portal authentication subnets.

-

Views

Portal access profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the source subnet for Portal authentication is configured, only user packets from the subnet can trigger Portal authentication. If an unauthenticated user is not on a Portal authentication subnet and packets from the user do not match any Portal authentication-free rule, the device discards the user's packets.

Precautions

The command takes effect only for Layer 3 Portal authentication. In Layer 2 Portal authentication, users on all subnets must be authenticated.

Example

# In the Portal access profile p1, set the source authentication subnet to 10.1.1.0/24.

<HUAWEI> system-view
[HUAWEI] portal-access-profile name p1
[HUAWEI-portal-access-profile-p1] portal auth-network 10.1.1.0 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >