华为交换机802.1X有线配置
华为交换机
- 华为交换机配置AAA
复制代码
# 创建Radius服务器模板controller。[SwitchA] radius-server template controller# 配置RADIUS认证密钥、主备用RADIUS服务器和计费服务器的IP地址、端口和主备运算法则。[SwitchA-radius-controller] radius-server authentication 10.7.66.66 1812 weight 80[SwitchA-radius-controller] radius-server accounting 10.7.66.66 1813 weight 80[SwitchA-radius-controller] radius-server authentication 10.7.66.67 1812 weight 40[SwitchA-radius-controller] radius-server accounting 10.7.66.67 1813 weight 40[SwitchA-radius-controller] radius-server algorithm master-backup[SwitchA-radius-controller] radius-server shared-key cipher Example@123# 配置自动探测功能。[SwitchA-radius-controller] radius-server testuser username test1 password cipher abc@123# 配置对状态为Down的RADIUS服务器的自动探测周期和探测报文的超时等待时间。(取值为缺省值)[SwitchA-radius-controller] radius-server detect-server interval 60[SwitchA-radius-controller] radius-server detect-server timeout 3# 配置RADIUS认证请求报文的重传次数和周期。(取值为缺省值)[SwitchA-radius-controller] radius-server retransmit 3 timeout 5[SwitchA-radius-controller] quit# 配置将RADIUS服务器标记为Down的条件。(取值为缺省值)[SwitchA] radius-server dead-interval 5[SwitchA] radius-server dead-count 2[SwitchA] radius-server detect-cycle 2[SwitchA] radius-server max-unresponsive-interval 300# 配置认证方案auth,认证模式为RADIUS认证。[SwitchA] aaa[SwitchA-aaa] authentication-scheme auth[SwitchA-aaa-authen-auth] authentication-mode radius[SwitchA-aaa-authen-auth] quit# 配置计费方案acc,计费模式为RADIUS计费。[SwitchA-aaa] accounting-scheme acc[SwitchA-aaa-accounting-acc] accounting-mode radius[SwitchA-aaa-accounting-acc] quit# 配置example域,在域下应用认证方案auth、计费方案acc、RADIUS服务器模板controller。[SwitchA-aaa] domain example[SwitchA-aaa-domain-example] authentication-scheme auth[SwitchA-aaa-domain-example] accounting-scheme acc[SwitchA-aaa-domain-example] radius-server controller[SwitchA-aaa-domain-example] quit[SwitchA-aaa] quit
- 华为交换机配置802.1X认证。
复制代码
# 将NAC配置模式切换成统一模式。设备默认为统一模式。传统模式与统一模式相互切换后,设备会自动重启。[SwitchA] authentication unified-mode# 配置802.1X接入模板d1、配置客户端认证超时时间为30秒。[SwitchA] dot1x-access-profile name d1[SwitchA-dot1x-access-profile-d1] dot1x authentication-method eap[SwitchA-dot1x-access-profile-d1] dot1x timer client-timeout 30[SwitchA-dot1x-access-profile-d1] quit# 配置认证模板绑定802.1X接入模板d1、指定认证模板下用户的强制域为example。认证模板下配置强制域之后,使用该认证模板的用户,无论用户名是否携带域名或携带何种域名,均在该域下进行认证。[SwitchA] authentication-profile name p1[SwitchA-authen-profile-p1] dot1x-access-profile d1[SwitchA-authen-profile-p1] access-domain example force[SwitchA-authen-profile-p1] quit# 配置RADIUS服务器故障时的逃生权限和RADIUS服务器恢复后的重认证功能。以用户逃生时授权VLAN为例,其他授权信息的配置可参考(可选)配置认证事件授权信息。[SwitchA] authentication-profile name p1[SwitchA-authen-profile-p1] authentication event authen-server-down action authorize vlan 20[SwitchA-authen-profile-p1] authentication event authen-server-up action re-authen[SwitchA-authen-profile-p1] quit# 去使能预连接功能。[SwitchA] undo authentication pre-authen-access enable# 在接口GE1/0/2到GE1/0/n上绑定认证模板p1,使能802.1X认证。以接口GE1/0/2为例。[SwitchA] interface gigabitethernet 1/0/2[SwitchA-GigabitEthernet1/0/2] authentication-profile p1[SwitchA-GigabitEthernet1/0/2] quit
阅读剩余
版权声明:
作者:SE_Gao
链接:https://www.cnesa.cn/2189.html
文章版权归作者所有,未经允许请勿转载。
THE END