H3C交换机配置有线网802.1x认证


环境:
服务端:win2019下部署AD、Radius
设备型号:交换机为 H3C_s5130
用户端:使用win10系统自带802.1x认证客户端

  1. <SW-H3c_5130>dis cu
  2. #
  3. version 7.1.070, Release 6318P01
  4. #
  5. sysname SW-H3c_5130
  6. #
  7. #
  8. dot1x
  9. dot1x authentication-method eap
  10. #
  11. #
  12. interface Vlan-interface6
  13. ip address 192.168.6.254 255.255.255.0
  14. #
  15. #### 端口开启认证,连接待认证计算机
  16. interface GigabitEthernet6/0/1
  17. port access vlan 6
  18. dot1x
  19. undo dot1x handshake
  20. dot1x mandatory-domain dot1x
  21. #
  22. #### 连接radius服务器
  23. interface GigabitEthernet6/0/14
  24. port access vlan 6
  25. #
  26. #
  27. scheduler logfile size 16
  28. #
  29. line class aux
  30. user-role network-admin
  31. #
  32. line class vty
  33. user-role network-operator
  34. #
  35. line aux 5
  36. user-role network-admin
  37. #
  38. line vty 0 4
  39. authentication-mode scheme
  40. user-role network-operator
  41. protocol inbound ssh
  42. #
  43. line vty 5 63
  44. user-role network-operator
  45. #
  46. ip route-static 0.0.0.0 0 10.1.4.254
  47. #
  48. ssh server enable
  49. #
  50. #
  51. #### 配置radius服务器地址为192.168.6.46
  52. radius scheme dot1x
  53. primary authentication 192.168.6.46
  54. key authentication cipher $c$3$paxK0cf+V+Bz+ZrnaVrkxV0z4gKOQMc0cM3F5coT
  55. #
  56. radius scheme system
  57. user-name-format without-domain
  58. #
  59. domain dot1x
  60. authentication lan-access radius-scheme dot1x
  61. authorization lan-access none
  62. accounting lan-access none
  63. #
  64. #
  65. local-user admin class manage
  66. password hash ***
  67. service-type https ssh terminal
  68. authorization-attribute user-role level-13
  69. authorization-attribute user-role network-admin
  70. authorization-attribute user-role network-operator
  71. #
  72. return

注:
dot1x authentication-method eap /默认是chap认证,当时在客户的环境中使用的是默认的chap认证,但是802.1x不通过,改成eap认证就好了/ 参考

参考:
Windows server 2019部署AD域 网页备份.mhtml

WindowsServer2019搭建Radius服务器,华为AC配置Radius认证 网页备份 .mhtml

通过Windows NPS,配置有线802.1x认证 网页备份 .mhtml

微软官方文档
配置 RADIUS 服务器
配置 RADIUS 客户端
配置网络策略


local 2021年12月9日 16:52 收藏文档