Configuration Guide 802.1x Configuration
Ruijie(config-if-FastEthernet 0/24)#switchport access vlan 2
Ruijie(config-if-FastEthernet 0/24)#exit
! Turn on AAA switch
Ruijie(config)#aaa new-model
! Configure RADIUS server
Ruijie(config)#radius-server host 192.168.32.120
! Configure RADIUS key
Ruijie(config)#radius-server key ruijie
! Configure dot1x authentication method list
Ruijie(config)#aaa authentication dot1x hello group radius
! Apply dot1x authentication method list
Ruijie(config)#dot1x authentication hello
! Configure 802.1X accounting method list
Ruijie(config)#aaa accounting network jizhang start-stop group radius
! Apply 802.1X accounting method list
Ruijie(config)#dot1x accounting jizhang
! Configure the port as controlled port (enable port-based authentication)
Ruijie(config)#interface fastEthernet 0/1
Ruijie(config-if-FastEthernet 0/1)#dot1x port-control auto
! Enable dynamic VLAN assignment on the corresponding interface
Ruijie(config-if-FastEthernet 0/1)# dot1x dynamic-vlan enable
! Enable GUEST VLAN assignment on the interface
Ruijie(config-if-FastEthernet 0/1)#dot1x guest-vlan 10
! Configure the default route of device
Ruijie(config)#ip route 0.0.0.0 0.0.0.0 192.168.217.1
! Configure the IP address of device
Ruijie(config)#interface vlan 1
Ruijie(config-if-VLAN 1)#ip address 192.168.217.81 255.255.255.0
Verify Configurations
Step 1: If no reply is received after sending authentication request packets (EAP-Request/Identity) for the configured
number of tries, the user connected to the port will automatically join VLAN10. The CLI will prompt: