H3C测试配置文件修改

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1修改配置文件clients.conf文件●目录:/opt/kd/radius/2.1/etc/raddb

●进入clients.conf 在文件末尾增加如下配置

client 218.5.101.44 {

ipaddr=218.5.101.44

secret=qzradius

}

2修改字典dictionary.h3c文件

●目录/opt/kd/radius/2.1/share/freeradius

●增加属性

ATTRIBUTE H3C-ISP-ID 17 string

ATTRIBUTE H3C-Auth-Detail-Result 246 integer

ATTRIBUTE H3C-WEB-URL 250 string

3 修改modules.xml文件

●目录/opt/kd/radius/2.1/etc/raddb

●在文件开头增加如下配置

公网IPV4测试场景

mod_null

Pseudo-Request-Type=Accounting-Request

User-Name="22989911@qzadsl"

mod_null

User-Name="22989911@qzadsl"

Pseudo-Request-Type=Access-Request

Session-Timeout=604800

Idle-Timeout=3600

H3C-Input-Basic-Rate=4823450

H3C-Output-Basic-Rate=120586240

H3C-Input-Average-Rate=4823450

H3C-Output-Average-Rate=120586240

H3C-ISP-ID=public_ipv4

私网IPV4场景

mod_null

Pseudo-Request-Type=Accounting-Request

User-Name="22989911@qzadsl"

mod_null

User-Name="22989911@qzadsl"

Pseudo-Request-Type=Access-Request

Session-Timeout=604800

Idle-Timeout=3600

H3C-Input-Basic-Rate=4823450

H3C-Output-Basic-Rate=120586240

H3C-Input-Average-Rate=4823450

H3C-Output-Average-Rate=120586240

H3C-ISP-ID=private_ipv4

彩虹通道账号为欠费账号

mod_null

Pseudo-Request-Type=Accounting-Request

User-Name="22989911@qzadsl"

mod_null

User-Name="22989911@qzadsl"

Pseudo-Request-Type=Access-Request

Session-Timeout=604800

Idle-Timeout=3600

H3C-ISP-ID=auth_fail

H3C-Auth-Detail-Result=1

H3C-WEB-URL =":16905/btss_lt/htm/ep08.html"

彩虹通道输入密码错误

mod_null

Pseudo-Request-Type=Accounting-Request

User-Name="22989911@qzadsl"

mod_null

User-Name="22989911@qzadsl"

Pseudo-Request-Type=Access-Request

Session-Timeout=604800

Idle-Timeout=3600

H3C-ISP-ID=auth_fail

H3C-Auth-Detail-Result=2

H3C-WEB-URL

=":16905/btss_lt/htm/ep04.html"

相关文档
最新文档