Before you begin
Enable the 802.1X feature on the Cisco NX-OS device.
SUMMARY STEPS
1.
configure terminal
2.
interface ethernet slot / port
3.
dot1x port-control
{
auto
|
force-authorized
|
forced-unauthorized
}
4.
exit
5.
(Optional)
show dot1x all
6.
(Optional)
show dot1x interface ethernet slot / port
7.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Selects the interface to configure and enters interface
configuration mode.
interface ethernet slot / port
Example:
Step 2
switch(config)# interface ethernet 2/1
switch(config-if)#
Changes the 802.1X authentication state on the interface.
The default is force-authorized.
dot1x port-control
{
auto
|
force-authorized
|
forced-unauthorized
}
Example:
Step 3
switch(config-if)# dot1x port-control auto
Exits configuration mode.
exit
Example:
Step 4
switch(config)# exit
switch#
Displays all 802.1X feature status and configuration
information.
(Optional)
show dot1x all
Example:
Step 5
switch# show dot1x all
Displays 802.1X feature status and configuration
information for an interface.
(Optional)
show dot1x interface ethernet slot / port
Example:
Step 6
switch# show dot1x interface ethernet 2/1
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 7
switch# copy running-config startup-config
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
189
Configuring 802.1X
Controlling 802.1X Authentication on an Interface