H3C设备之端口安全技术_DOT1X 

配置802.1X使PC在插入交换机端口时必须认证。

[SW2]dot1x                                   开启DOT1X

[SW2]dot1x interface E1/0/1   E1/0/2       将需要认证的端口加入到DOT1X

[SW2]local-user dot1x                    创建用来认证的用户
[SW2-luser-dot1x]password cipher dot1x12345678      设置密码
[SW2-luser-dot1x]service-type lan-access     设置用户的服务类型

此时PCA,B需要上网时,接入交换机必须通过用户名密码验证才可连接网络。