110
dot1x
[
interface
interface-list
]
undo dot1x
[
interface
interface-list
]
In Ethernet interface view:
dot1x
undo dot1x
Default
802.1X is neither enabled globally nor enabled for any port.
Views
System view, Ethernet interface view
Default command level
2: System level
Parameters
interface
interface-list
: Specifies a port list, which can contain multiple ports. The
interface-list
argument is in the format of
interface-list
= {
interface-type
interface-number
[
to
interface-type
interface-number
] } & <1-10>, where
interface-type
represents the port type,
interface-number
represents the port number, and & <1-10> means that you can provide up to 10 ports or port ranges.
The start port number must be smaller than the end number and the two ports must be of the same
type.
Usage guidelines
Use the
dot1x
command in system view to enable 802.1X globally.
Use the
undo dot1x
command in system view to disable 802.1X globally.
Use the
dot1x interface
command in system view or the
dot1x
command in interface view to enable
802.1X for specified ports.
Use the
undo dot1x interface
command in system view or the
undo dot1x
command in interface
view to disable 802.1X for specified ports.
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.
Examples
# Enable 802.1X for ports GigabitEthernet 3/0/1, and GigabitEthernet 3/0/5 to GigabitEthernet 3/0/7.
<Sysname> system-view
[Sysname] dot1x interface gigabitethernet 3/0/1 gigabitethernet 3/0/5 to gigabitethernet
3/0/7
Or
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] dot1x
[Sysname-GigabitEthernet3/0/1] quit
[Sysname] interface gigabitethernet 3/0/5
[Sysname-GigabitEthernet3/0/5] dot1x
[Sysname-GigabitEthernet3/0/5] quit
[Sysname] interface gigabitethernet 3/0/6
[Sysname-GigabitEthernet3/0/6] dot1x
[Sysname-GigabitEthernet3/0/6] quit