NPS+MAC认证+MAC-VLAN,实现基于MAC地址的动态VLAN划分
windows 2012 nps配置
1.安装windows nps角色,安装网络策略服务器及主机凭据授权协议。
2、在RADIUS客户端中添加RADIUS客户端
3、配置连接策略,连接策略匹配满足策略条件的连接请求。
4、配置网络策略,网络策略条件匹配连接请求策略,并可对满足策略条件的连接下发配置。
5、用户组匹配网络策略条件,可对不同用户匹配不同的网络策略,下发不同的配置。
6、网络策略设置项,设置需要下发的vlan等信息。
H3C 交换机端配置
1、创建radius模版
radius scheme test
primary authentication 10.248.31.66
primary accounting 10.248.31.66
key authentication simple **** ###RADIUS客户端共享密钥
key accounting simple **** ###RADIUS客户端共享密钥
user-name-format without-domain
nas-ip 192.168.99.1
2、创建域
domain test
authentication default radius-scheme test
authorization default radius-scheme test
accounting default radius-scheme test
access-limit disable
state active
idle-cut disable
self-service-url disable
3、全局开启mac地址认证
mac-authentication
设置mac地址认证域
mac-authentication domain test
4、在端口下启用mac地址认证
interface GigabitEthernet1/0/1
mac-authentication