通过Windows NPS,配置有线802.1x认证

目录

1. Windows配置

1.1 NSP配置

1.2 CA配置及证书自动注册

1.3 802.1x域策略配置

2. 交换机配置 

2.1 华为

2.2 华三


1. Windows配置

1.1 NSP配置

 

 

1.2 CA配置及证书自动注册

CA配置证书自动注册_夜邢的博客-CSDN博客

1.3 802.1x域策略配置

这部分按需配置

 

 

 

 

 

2. 交换机配置 

2.1 华为

------传统模式------
---radius模板配置
[SwitchA] radius-server template dot1x
[SwitchA-radius-dot1x] radius-server authentication 10.130.16.42 1812
[SwitchA-radius-dot1x] radius-server shared-key cipher admin@123
[SwitchA-radius-dot1x] undo radius-server user-name domain-included

---创建AAA认证方案“dot1x”,并配置认证方式为RADIUS。
[SwitchA] aaa
[SwitchA-aaa] authentication-scheme dot1x
[SwitchA-aaa-authen-dot1x] authentication-mode radius
[SwitchA-aaa-authen-dot1x] quit

---创建AAA认证方案“abc”并配置认证方式为RADIUS。
[SwitchA-aaa] authentication-scheme dot1x
[SwitchA-aaa-authen-dot1x] authentication-mode radius
[SwitchA-aaa-authen-dot1x] quit

---认证域"dot1x"配置
[SwitchA-aaa] domain dot1x
[SwitchA-aaa-domain-dot1x] authentication-scheme dot1x
[SwitchA-aaa-domain-dot1x] radius-server dot1x
[SwitchA-aaa-domain-dot1x] quit
[SwitchA-aaa] quit

---NAC配置模式为传统模式
[SwitchA] undo authentication unified-mode

---全局开启
[SwitchA] dot1x enable
[SwitchA] dot1x authentication-method eap

---下接接口配置
[SwitchA-GigabitEthernet0/0/1] dot1x enable
[SwitchA-GigabitEthernet0/0/1] dot1x domain dot1x
------统一模式------
---radius模板配置
[SwitchA] radius-server template dot1x
[SwitchA-radius-dot1x] radius-server authentication 10.130.16.42 1812
[SwitchA-radius-dot1x] radius-server shared-key cipher admin@123
[SwitchA-radius-dot1x] undo radius-server user-name domain-included

---配置自动探测功能
[SwitchA-radius-dot1x] radius-server testuser username admin password cipher admin@123
[SwitchA-radius-dot1x] quit

---创建AAA认证方案“abc”并配置认证方式为RADIUS。
[SwitchA] aaa
[SwitchA-aaa] authentication-scheme dot1x
[SwitchA-aaa-authen-dot1x] authentication-mode radius
[SwitchA-aaa-authen-dot1x] quit

---认证域配置
[SwitchA-aaa] domain dot1x
[SwitchA-aaa-domain-dot1x] authentication-scheme dot1x
[SwitchA-aaa-domain-dot1x] radius-server dot1x
[SwitchA-aaa-domain-dot1x] quit
[SwitchA-aaa] quit

---去使能预连接
[SwitchA] undo authentication pre-authen-access enable

---接入模板配置,DHCP触发802.1X认证、认证模式、认证超时
[SwitchA] dot1x-access-profile name dot1x
[SwitchA-dot1x-access-profile-dot1x] authentication trigger-condition dhcp
[SwitchA-dot1x-access-profile-dot1x] dot1x authentication-method eap
[SwitchA-dot1x-access-profile-dot1x] quit

---认证模板配置
[SwitchA] authentication-profile name dot1x
[SwitchA-authen-profile- dot1x] dot1x-access-profile dot1x
[SwitchA-authen-profile- dot1x] access-domain dot1x force 
[SwitchA-authen-profile- dot1x] quit


---接入口配置
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port link-type access
[SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 10
[SwitchA-GigabitEthernet0/0/1] authentication-profile dot1x

//查看用户上线信息

display access-user 

2.2 华三

#
radius scheme dot1x
 primary authentication 10.130.16.42
 key authentication simple admin@123
 user-name-format without-domain
#
domain dot1x
 authentication lan-access radius-scheme dot1x
 authorization lan-access none
 accounting lan-access none
#
 dot1x
 dot1x authentication-method eap


//接入端口上配置
#
interface GigabitEthernet1/0/2
 port access vlan 10
 dot1x
 undo dot1x handshake
 dot1x mandatory-domain dot1x

//查看用户上线信息
display dot1x connection

  • 5
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
NPS(网络策略服务器)是微软公司提供的一种网络访问服务,用于控制和认证网络用户的访问权限。配置WiFi 802.1x计算机证书验证是在NPS上实现无线网络认证的一种方法。 首先,确保NPS服务器已经安装和配置好,并且具备有效的计算机证书。计算机证书可以通过许多途径获得,例如使用Active Directory证书服务或通过第三方证书颁发机构。 在NPS配置WiFi 802.1x认证时,首先需要将无线接入点(WAP)与NPS服务器进行关联。这种关联可以通过配置WAP上的认证设置来完成,将NPS服务器作为认证服务器进行配置。 然后,需要在NPS服务器上创建策略,用于配置和验证WiFi 802.1x认证。创建策略时,需要选择适当的认证方法,其中包括基于证书的认证。在此选择中,将使用计算机证书作为验证WiFi用户身份的凭证。 接下来,配置策略的条件和约束规则,以限制访问网络的用户。这些条件可以基于用户组、用户角色、时间等信息进行配置。确保只有经过身份验证的用户被允许连接到无线网络。 最后,测试和优化配置。测试过程应该包括向无线网络发送身份验证请求,以确保NPS服务器和计算机证书正常工作,并且用户能够成功连接到无线网络。 总结:通过在NPS服务器上配置WiFi 802.1x计算机证书验证,可以实现对无线网络用户的身份验证和访问控制。这种配置可以提高网络的安全性,只有经过身份验证的用户才能连接到无线网络。同时,确保NPS服务器具备有效的计算机证书,以保证身份验证的有效性。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值