现场AC型号是WAC380-60,版本是R5461P01,现场终端结合云简做固定账号认证,反馈之前能够认证成功,近期出现认证失败,没有修改配置。

1、 首先检查配置,主要配置如下:
wlan service-template cloud
ssid xx1
vlan 200
akm mode psk
preshared-key pass-phrase cipher $c$3$wPMi99sTbamqi4hMKTWH9OKQjOQsOCNEX3kk9LA=
cipher-suite ccmp
cipher-suite tkip
security-ie rsn
security-ie wpa
portal enable method direct
portal domain cloud
portal apply web-server cloud
portal temp-pass period 20 enable
service-template enable
#
domain cloud
authorization-attribute idle-cut 30 10240
authorization-attribute session-timeout 360
authentication portal none
authorization portal none
accounting portal none
#
portal web-server cloud
url http://oasisauth.h3c.com/portal/protocol
captive-bypass ios optimize enable
server-type oauth
url-parameter template_id value 677276
if-match user-agent CaptiveNetworkSupport redirect-url http://oasisauth.h3c.com/generate_404
if-match user-agent Dalvik/2.1.0(Linux;U;Android7.0;HUAWEI redirect-url http://oasisauth.h3c.com/generate_404
if-match original-url http://10.168.168.168 temp-pass
if-match original-url http://captive.apple.com user-agent Mozilla temp-pass redirect-url http://oasisauth.h3c.com/portal/protocol
if-match original-url http://captive.apple.com/hotspot-detect.html user-agent Mozilla temp-pass redirect-url http://oasisauth.h3c.com/portal/protocol
if-match original-url http://o2o.gtimg.com/wifi/echo temp-pass redirect-url http://oasisauth.h3c.com/generate_404
if-match original-url http://www.apple.com user-agent Mozilla temp-pass redirect-url http://oasisauth.h3c.com/portal/protocol
#
主要配置看着都没什么问题。
2、 其次根据经验分析,90011是AC给云简发送认证报文之后,没有收到云简的回复超时了。也就是如下图第8个报文,AC发出了没有收到回复。

基于此,让现场AC ping oasisauth.h3c.com的域名,ping不通,且该域名解析的地址是101.36.161.146,这个地址是老地址,云简后台升级之后IP变化了,正确的应该是101.42.30.13。

检查现场配置果然有一条静态域名解析的命令:ip host oasisauth.h3c.com 101.36.161.146,正常应该是动态域名解析,就算域名对应的IP变化也不会 影响认证。让现场将该配置修改成:ip host oasisauth.h3c.com 101.42.30.13
修改配置:ip host oasisauth.h3c.com 101.42.30.13