< Home

dot1x free-ip

Function

The dot1x free-ip command configures a free IP subnet.

The undo dot1x free-ip command deletes the configured free IP subnet.

By default, no free IP subnet is configured.

Format

dot1x free-ip ip-address { mask-length | mask-address }

undo dot1x free-ip { ip-address { mask-length | mask-address } | all }

Parameters

Parameter Description Value

ip-address

Specifies a free IP subnet.

The value is in dotted decimal notation.

mask-length

Specifies the mask length of an IP address.

The value is an integer that ranges from 1 to 32.

mask-address

Specifies the mask of the IP address.

The value is in dotted decimal notation.

all

Deletes all free IP subnets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

802.1X users can access networks only after being authenticated. You can configure a free IP subnet, so that users can access network resources in the free IP subnet before being authenticated.

Precautions

  • 802.1X authentication has been enabled globally and on an interface using the dot1x enable command.

  • To ensure that pre-connection users can be aged out normally, you need to run the dot1x timer free-ip-timeout command to set the aging time of authentication-free user entries.
  • After the free-ip function is configured, the guest VLAN, critical VLAN, and restrict VLAN are no longer effective.

  • The free IP subnet takes effect only when the interface authorization state is auto.

  • If a user who does not pass 802.1X authentication wants to obtain an IP address dynamically through the DHCP server, the network segment of the DHCP server needs to be configured to a free IP subnet so that the user can access the DHCP server.

  • After 802.1X users go offline, they are not allowed to access network resources on free IP subnets within a specified period to prevent malicious attacks.

  • After users succeed in 802.1X-based fast deployment, they can only access resources in the IP free subnets and some resources on the device.

Example

# Configure 192.168.1.0/24 as a free IP subnet that users can access before they pass 802.1X authentication.

<HUAWEI> system-view
[HUAWEI] dot1x free-ip 192.168.1.0 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >