1.全局激活Dot1x认证功能
[H3C]dot1x
2.进入接口激活dot1x
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]dot1x
[H3C-GigabitEthernet1/0/1]qu
3.创建用户名密码
[H3C]local-user libin2 class network
[H3C-luser-network-libin]password simple 123 #明文
或者
[H3C-luser-network-libin]password cipher 123!@#qwe #密文
4.模式为局域网接入模式
[H3C-luser-network-libin]service-type lan-access