1900
C
126: 802.1
HAPTER
Description
Related command:
Example
dot1x authentication-method
Syntax
C
C
X
ONFIGURATION
OMMANDS
interface-type represents the port type, interface-number represents the port
number, and & <1-10> means that you can provide up to 10 port indexes/port
index lists for this argument. The start port number must be smaller than the end
number and the two ports must of the same type.
Use the
command in system view to enable 802.1x globally.
dot1x
Use the
undo dot1x
Use the
dot1x interface
command in interface view to enable 802.1x for specified ports.
Use the
undo dot1x interface
undo dot1x command in interface view to disable 802.1x for specified ports.
By default, 802.1x is neither enabled globally nor enabled for any port.
Note that:
802.1x must be enabled both globally in system view and for the intended
■
ports in system view or interface view. Otherwise, it does not function.
You can configure 802.1x parameters either before or after enabling 802.1x.
■
display dot1x.
# Enable 802.1x for ports Ethernet 1/0, and Ethernet 1/5 to Ethernet 1/7.
<Sysname> system-view
[Sysname] dot1x interface ethernet 1/0 ethernet 1/5 to ethernet 1/7
Or
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] dot1x
[Sysname-Ethernet1/0] quit
[Sysname] interface ethernet 1/5
[Sysname-Ethernet1/0] dot1x
[Sysname-Ethernet1/0] quit
[Sysname] interface ethernet 1/6
[Sysname-Ethernet1/0] dot1x
[Sysname-Ethernet1/0] quit
[Sysname] interface ethernet 1/7
[Sysname-Ethernet1/0] dot1x
# Enable 802.1x globally.
<Sysname> system-view
[Sysname] dot1x
dot1x authentication-method { chap | eap | pap }
command in system view to disable 802.1x globally.
interface-list command in system view or the dot1x
interface-list command in system view or the