17.2.8.-->华三[H3C]

#本实例基于H3C MSR 810 系列路由器
#仅做参考,大致差不多
#如计费需要绑定地址池名,请在计费套餐里面指定 pool0或pool1。
#如果是标识对接,sysname命令设置设备的主机名也是标识名。
 
radius server IP:192.168.10.2
网关IP:192.168.10.1
 
system-view
 
#设置外网
interface GigabitEthernet0/0
port link-mode route
ip address 192.168.11.251 255.255.255.0
dns server 223.5.5.5
dns server 223.6.6.6
nat outbound
ip route-static 0.0.0.0 0 GigabitEthernet0/0 192.168.11.1
 
#第一步,配置RADIUS模板,有的用组
#radius-server模板,模板名称为lf_pppoe,radius服务器IP为192.168.10.2,密钥为123456
radius scheme lf_pppoe
primary authentication 192.168.10.2 1812
primary accounting 192.168.10.2 1813
key authentication simple 123456
key accounting simple 123456
#计费时间间隔1分种
timer realtime-accounting 1
#配置发送给RADIUS服务器的用户名不携带ISP域名。
user-name-format without-domain
#mac地址格式化,按6段冒号格式
attribute 31 mac-format section six separator : lowercase
#限速用最小单位
data-flow-format data byte packet one-packet
quit
#授权踢线接口
radius dynamic-author server
port 3799
client ip 192.168.10.2 key simple 123456
 
#第二步,创建并进入名称为lf_pppoe的ISP域。
domain lf_pppoe
#配置ISP域使用的RADIUS方案lf_pppoe
authentication ppp radius-scheme lf_pppoe
authorization ppp radius-scheme lf_pppoe
accounting ppp radius-scheme lf_pppoe
quit
 
#第三步,创建地址池段,并且建立pppoe服务器
ip pool pool0 10.101.0.100 10.101.100.254
ip pool pool1 10.101.101.100 10.101.200.254
 
interface Virtual-Template0
ppp authentication-mode chap domain lf_pppoe
#开启计费统计功能
ppp account-statistics enable
ppp ipcp dns 223.5.5.5 223.6.6.6
remote address pool pool0
ip address 10.101.0.1 255.255.255.255
 
interface Vlan-interface1
ip address 192.168.10.1 255.255.255.0
tcp mss 1280
pppoe-server session-limit per-mac 65534
pppoe-server bind virtual-template 0
 
#配置成功后需要保存,重启验证
quit
save
#如有配置失误恢复出厂设置并重启
reset save
reboot
 
#其他
#查看在线用户display ppp access-user domain lf_pppoe
#display ppp access-user interface Vlan-interface 1
#

 
© 凌风认证计费 http://www.lflflf.net/

文档更新时间: 2024-03-02 14:52   作者: