MSR36-60 关于PPP计费问题
问题描述:
想要通过在账户里配置access-limit限制L2TP VPN账户使用人数。access-limit需要通过PPP的计费来实现。但是发现如果两个用户用同一个账号拨入,显示的用户数还是只有一个。
配置如下:
#
l2tp-group 1 mode lns
allow l2tp virtual-template 1
undo tunnel authentication
#
l2tp enable
#
interface Virtual-Template1
PPP authentication-mode chap
ppp account-statistics enable
ip address 192.168.200.1 255.255.255.0
#
local-user h3c class network
password cipher $c$3$6P3rkJeI+koDYSgH/z22BGAoWJKKbQ==
access-limit 1
service-type ppp
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
authorization-attribute ip 192.168.100.2
两台设备同时拨入后信息如下:
<H3C>display ppp access-user username h3c
Basic:
Interface: VA0
User ID: 0x28000001
Username: h3c
Domain: -
IP address: 192.168.100.2
IPv6 address: -
IPv6 PD prefix: -
VPN instance: -
Access type: L2TP
Authentication type: CHAP
AAA:
Authentication state: Authenticated
Authorization state: Authorized
Realtime accounting switch: Closed
Realtime accounting interval: -
Login time:
ACL&QoS:
User profile: -
User group profile: -
Inbound CAR: -
Outbound CAR: -
Flow Statistic:
IPv4 uplink packets/bytes: 1674/130615
IPv4 downlink packets/bytes: 0/0
IPv6 uplink packets/bytes: 0/0
IPv6 downlink packets/bytes: 0/0
Basic:
Interface: VA1
User ID: 0x28000002
Username: h3c
Domain: -
IP address: 192.168.100.2
IPv6 address: -
IPv6 PD prefix: -
VPN instance: -
Access type: L2TP
Authentication type: CHAP
AAA:
Authentication state: Authenticated
Authorization state: Authorized
Realtime accounting switch: Closed
Realtime accounting interval: -
Login time:
ACL&QoS:
User profile: -
User group profile: -
Inbound CAR: -
Outbound CAR: -
Flow Statistic:
IPv4 uplink packets/bytes: 0/0
IPv4 downlink packets/bytes: 0/0
IPv6 uplink packets/bytes: 0/0
IPv6 downlink packets/bytes: 0/0
<H3C>dis local-user user-name h3c class network
Total 1 local users matched.
Network access user h3c:
State: Active
Service type: PPP
Access limit: Enabled Max access number: 1
Current access number: 1
User group: system
Bind attributes:
Authorization attributes:
Work directory: cfa0:
User role list: network-admin, network-operator
IP address: 192.168.100.2
可以看到,一个计费状态是 Accounting state: Stop,一个是Accounting state: Accounting。
如果是因为针对单一IP进行计费导致的,那么如果让两个用户获取到不同地址,效果也是一样的。
<H3C>dis ppp access-user username h3c
Basic:
Interface: VA0
User ID: 0x28000001
Username: h3c
Domain: -
IP address: 192.168.100.2
IPv6 address: -
IPv6 PD prefix: -
VPN instance: -
Access type: L2TP
Authentication type: CHAP
AAA:
Authentication state: Authenticated
Authorization state: Authorized
Realtime accounting switch: Closed
Realtime accounting interval: -
Login time:
ACL&QoS:
User profile: -
User group profile: -
Inbound CAR: -
Outbound CAR: -
Flow Statistic:
IPv4 uplink packets/bytes: 0/0
IPv4 downlink packets/bytes: 0/0
IPv6 uplink packets/bytes: 0/0
IPv6 downlink packets/bytes: 0/0
Basic:
Interface: VA1
User ID: 0x28000002
Username: h3c
Domain: -
IP address: 192.168.100.3
IPv6 address: -
IPv6 PD prefix: -
VPN instance: -
Access type: L2TP
Authentication type: CHAP
AAA:
Authentication state: Authenticated
Authorization state: Authorized
Realtime accounting switch: Closed
Realtime accounting interval: -
Login time:
ACL&QoS:
User profile: -
User group profile: -
Inbound CAR: -
Outbound CAR: -
Flow Statistic:
IPv4 uplink packets/bytes: 195/14653
IPv4 downlink packets/bytes: 0/0
IPv6 uplink packets/bytes: 0/0
IPv6 downlink packets/bytes: 0/0
<H3C>display local-user user-name h3c class network
Total 1 local users matched.
Network access user h3c:
State: Active
Service type: PPP
Access limit: Enabled Max access number: 1
Current access number: 1
User group: system
Bind attributes:
Authorization attributes:
Work directory: cfa0:
User role list: network-admin, network-operator
请问一下,这种情况是什么原因?
(0)
最佳答案
已采纳 Cookie Cookie 七段 粉丝:6人 关注:3人
在认证域里面配置accounting start-fail offline试试
(0)
感谢,已解决
1 发表时间:不客气
Cookie 发表时间:该问题暂时没有网友解答
,MSR36-60 关于PPP计费问题版权声明:本文由CRM小助手整理收集与网络,仅供学习交流使用,不代表CRM论坛观点。如有侵权,请联系我们,我们将及时删除处理。
CRM论坛投稿:投稿地址
CRM论坛(CRMBBS.COM)始办于2019年,是致力于CRM实施方案、免费CRM软件、SCRM系统、客户管理系统的垂直内容社区网站,CRM论坛持续专注于CRM领域,在不断深化理解CRM系统的同时,进一步利用新型互联网技术,为用户实现企业、客户、合作伙伴与产品之间的无缝连接与交互。