配置802.1x远端认证

网络 通信技术
为了保证网络的安全性,要求在用户接入网络时进行802.1x认证。认证服务器为两台Radius服务器,IP为10.10.10.1/24服务器作为主认证服务器,IP为10.10.10.2/24的服务器为备用认证服务器。

拓扑图

规格

适用于所有版本、所有形态的AR路由器。

组网需求

PC通过Router访问网络。为了保证网络的安全性,要求在用户接入网络时进行802.1x认证。认证服务器为两台Radius服务器,IP为10.10.10.1/24服务器作为主认证服务器,IP为10.10.10.2/24的服务器为备用认证服务器。当主用服务器不可用时,Router可以实现最快3s内切换到备用服务器。

操作步骤

1. Router上的配置

  1. V200R007及之前版本: 
  2. #                                                                                
  3. vlan batch 10                                                                    
  4. #                                                                                
  5. dot1x enable                                                                   
  6. #                                                                                
  7. radius-server template shiva  //配置RADIUS服务器模板shiva                                                     
  8.  radius-server shared-key cipher %^%#Q75cNQ6IF(e#L4WMxP~%^7'u17,]D87GO{"[o]`D%^%#                        
  9.  radius-server authentication 10.10.10.1 1812 //配置RADIUS主用认证服务器                                  
  10.  radius-server authentication 10.10.10.2 1812 secondary //配置RADIUS备用认证服务器                         
  11. #                                                                                
  12. aaa                                                                              
  13.  authentication-scheme scheme0 //创建名为scheme0的认证方案                                                       
  14.   authentication-mode radius                                                                              
  15.  domain huawei //配置名为huawei的域                                                                      
  16.   authentication-scheme scheme0                                                      
  17.   radius-server shiva                                                             
  18. #                                                                                
  19. interface Vlanif10                                                               
  20.  ip address 192.168.1.2 255.255.255.0                                            
  21. #                                                                                
  22. interface Ethernet2/0/0                                                          
  23.  port link-type access                                                           
  24.  port default vlan 10                                                            
  25.  dot1x enable                                                                
  26. V200R008及之后版本: 
  27. #                                                                                
  28. vlan batch 10                                                                    
  29. #                                                                                
  30. authentication-profile name p1 
  31.  dot1x-access-profile d1    //在认证模板p1上绑定802.1x接入模板d1 
  32. #                                                                                
  33. radius-server template shiva  //配置RADIUS服务器模板shiva                                                     
  34.  radius-server shared-key cipher %^%#Q75cNQ6IF(e#L4WMxP~%^7'u17,]D87GO{"[o]`D%^%#                        
  35.  radius-server authentication 10.10.10.1 1812 //配置RADIUS主用认证服务器                                  
  36.  radius-server authentication 10.10.10.2 1812 secondary //配置RADIUS备用认证服务器                         
  37. #                                                                                
  38. aaa                                                                              
  39.  authentication-scheme scheme0 //创建名为scheme0的认证方案                                                       
  40.   authentication-mode radius                                                                              
  41.  domain huawei //配置名为huawei的域                                                                      
  42.   authentication-scheme scheme0                                                      
  43.   radius-server shiva                                                             
  44. #                                                                                
  45. interface Vlanif10                                                               
  46.  ip address 192.168.1.2 255.255.255.0                                            
  47. #                                                                                
  48. interface Ethernet2/0/0                                                          
  49.  port link-type access                                                           
  50.  port default vlan 10                                                            
  51.  authentication-profile p1  //接口下绑定认证模板p1 
  52. dot1x-access-profile name d1 

2. 验证配置结果

RADIUS服务器添加用户user1@huawei,密码Huawei@2012,共享密钥与路由器保持一致配置为radius。客户端认证成功后,执行display access-user可以查看Username字段里有用户名为user1@huawei,并且相应Status字段显示为Success。

配置注意事项

  • 路由器与RADIUS服务器上认证端口的值需要保持一致。
  • 路由器和RADIUS服务器上共享密钥需要保持一致。
  • 路由器与RADIUS服务器间需要路由可达

 

 

责任编辑:赵宁宁 来源: 厦门微思网络
相关推荐

2013-10-09 10:44:14

交换机配置802.1X认证

2010-06-13 10:18:11

IEEE 802.1x

2010-08-04 13:13:48

路由器配置

2009-11-17 12:33:55

2012-12-25 10:27:55

2010-01-06 14:40:01

2010-06-13 12:53:41

2010-06-25 14:34:11

IEEE 802.1x

2010-10-19 09:44:34

802.1X验证最佳实践

2010-09-26 08:46:08

802.1x

2010-06-13 12:56:40

IEEE 802.1x

2015-09-02 11:52:03

802.1xEAPPEAP

2011-10-24 14:22:05

2012-06-15 10:14:22

2023-03-08 17:54:29

802.1x协议无线网络

2009-12-24 15:26:14

2010-01-05 14:24:58

2012-05-08 19:15:42

2012-05-21 16:18:09

2010-01-26 14:28:10

点赞
收藏

51CTO技术栈公众号