最佳答案
有多种方式:① 本地dot1x认证(https://zhiliao.h3c.com/Theme/details/101782);② 本地portal认证(https://www.h3c.com/cn/d_202509/2654115_30005_0.htm)。
本地portal把,AC当portal服务器
本地portal认证参考:01-本地Portal认证典型配置举例(专家模式Web版)-新华三集团-H3C
明天仔细研究一下,谢谢
明天仔细研究一下,谢谢
display wlan ap all确认 AP 状态为 “normal”)。# 进入系统视图
system-view
# 创建本地用户(示例:用户名user1,密码123456;可批量创建多个用户)
local-user user1 class network
# 设置密码(simple表示明文,实际建议用cipher加密)
password simple 123456
# 允许该用户通过无线认证
service-type wireless
# 授权用户角色(默认network-operator即可)
authorization-attribute user-role network-operator
quit
# (可选)创建更多用户,重复上述命令
local-user user2 class network
password simple 654321
service-type wireless
quit
# 进入AAA视图
aaa
# 创建认证方案(命名为auth-local)
authentication-scheme auth-local
# 认证方式为本地用户数据库
authentication-mode local
quit
# 创建授权方案(可选,使用默认授权即可)
authorization-scheme auth-local
authorization-mode local
quit
# 创建计费方案(无需计费可跳过,或配置为不计费)
accounting-scheme acct-none
accounting-mode none
quit
# 创建服务组,关联认证/授权/计费方案
domain default_admin
authentication-scheme auth-local
authorization-scheme auth-local
accounting-scheme acct-none
# 绑定本地用户(默认domain已关联本地用户,无需额外配置)
quit
# 创建Portal模板(命名为portal-local)
portal template portal-local
# 认证方式关联AAA
authentication-method aaa
# 绑定之前创建的认证方案
authentication-scheme auth-local
# 允许未认证用户访问AC的Portal页面(关键:否则终端无法弹出认证页)
pre-authentication-acl 2000 # 后续需配置ACL 2000放行必要地址
# (可选)设置认证超时时间(默认30秒,可调整)
user-login-timeout 60
# (可选)启用HTTPS加密认证页面(更安全)
portal https enable
quit
# 创建ACL 2000,放行必要地址
acl number 2000
# 允许访问AC的管理IP(假设AC管理IP为192.168.1.254)
rule 5 permit ip destination 192.168.1.254 0
# 允许访问DNS服务器(假设核心提供的DNS为114.114.114.114)
rule 10 permit udp destination-port eq dns
# 允许访问网关(核心交换机的VLAN 100网关,假设为192.168.100.1)
rule 15 permit ip destination 192.168.100.1 0
quit
# 创建无线服务模板(命名为st_auth,SSID为“Company-WiFi”)
wlan service-template st_auth
# 设置SSID(用户连接时看到的WiFi名称)
ssid Company-WiFi
# 关闭客户端隔离(允许认证后终端互访,按需开启)
client-isolation disable
# 启用Portal认证
portal enable
# 绑定Portal模板
portal template portal-local
# 配置安全模式(Open+Portal,无需密码直接连接后弹出认证页)
security-ieee8021x disable # 关闭802.1X,用Portal
authentication-method open-system
# 绑定业务VLAN(无线终端所属VLAN,由核心交换机分配IP)
vlan 100
quit
# 进入AP组视图
wlan ap-group ap-group1
# 配置2.4G射频(radio 1)
radio 1
# 绑定服务模板(st_auth)到该射频
service-template st_auth
# (可选)设置信道和功率(自动即可)
channel auto
power auto
quit
# 配置5G射频(radio 2,若支持)
radio 2
service-template st_auth
channel auto
power auto
quit
quit
display local-user # 确认用户已创建,状态正常
display wlan ap-group ap-group1 # 确认radio绑定了st_auth
display wlan service-template st_auth # 确认Portal配置生效
password cipher加密(而非 simple)。portal https enable),避免密码明文传输。local-user max-user 50),防止滥用。security-ieee8021x enable,并绑定 802.1X 认证模板(配置类似)。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
本地portal把,AC当portal服务器