< Home

mac-authen dhcp-trigger dhcp-option

Function

The mac-authen dhcp-trigger dhcp-option command enables the device to send DHCP option information to the authentication server when triggering MAC address authentication through DHCP packets.

The undo mac-authen dhcp-trigger dhcp-option command restores the default configuration.

By default, the device does not send DHCP option information to the authentication server when triggering MAC address authentication through DHCP packets.

Format

In the system view:

mac-authen dhcp-trigger dhcp-option option-code [ interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10> ]

undo mac-authen dhcp-trigger dhcp-option option-code [ interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10> ]

In the interface view:

mac-authen dhcp-trigger dhcp-option option-code

undo mac-authen dhcp-trigger dhcp-option option-code

Parameters

Parameter Description Value
option-code

Specifies the option that the device sends to the authentication server.

The value is fixed as 82.
interface { interface-type interface-number1 [ to interface-number2 ] } Specifies the interface type and number.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-

Views

System view, Ethernet interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Port group view

Default Level

2: Configuration level

Usage Guidelines

Option82 record information about DHCP user locations and services (voice and data services). After this command is run, if the device supports the function of triggering MAC address authentication though DHCP packets, it sends Option82 information to the authentication server when triggering MAC address authentication through DHCP packets. Based on the user information recorded in Option82, the authentication server then assigns different network access rights to users with different services in different locations. This implements accurate control on the network access right of each user.

Example

# Globally enable the device to send Option82 information to the authentication server when triggering MAC address authentication through DHCP packets.

<HUAWEI> system-view
[HUAWEI] mac-authen dhcp-trigger dhcp-option 82
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >