M9000为LNS,配置了本地账号,local-user,配置了access-limit 1,同时在domain下配置了的本地计费:accouting ppp local,希望做到1个账号只能拨一次。但是上述配置,无法实现。
组网:PC------Internet------M9000----内网
(0)
M9000配置:
#
ip pool vpdn 58.113.118.241 58.113.118.253
ip pool vpdn gateway 58.113.118.254
#
domain h3c
authorization-attribute ip-pool vpdn
accounting start-fail offline
accounting update-fail offline
authentication ppp local
authorization ppp local
accounting ppp local
#
interface Virtual-Template1
ppp authentication-mode pap chap
#
l2tp enable
#
l2tp-group 1 mode lns
allow l2tp virtual-template 1
undo tunnel authentication
#
local-user testn class network
password cipher $c$3$WpR3gUHDujjRQ==
access-limit 1
service-type ppp
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
authorization-attribute ip 58.113.118.249
#
测试发现,上述配置下,多个PC可以使用1个账号成功进行L2TP拨号,也就是说上述配置无法实现1个账号只能拨1次的效果。
[M9000]dis ppp access-user username testn@h3c
Basic:
Interface: VA0
User ID: 0x28000001
Username: testn@h3c
Domain: h3c
IP address: 58.113.118.249
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: 2020-08-02 10:56:49:204
Accounting start time: -
Online time(hh:mm:ss): 00:39:23
Accounting state: Stop
Idle cut: 0 sec 0 byte
Session timeout: -
Time remained: -
Byte remained: -
Redirect WebURL: -
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: VA2
User ID: 0x28000003
Username: testn@h3c
Domain: h3c
IP address: 58.113.118.249
IPv6 address: -
IPv6 PD prefix: -
VPN instance: -
Access type: L2TP
Authentication type: PAP
AAA:
Authentication state: Authenticated
Authorization state: Authorized
Realtime accounting switch: Closed
Realtime accounting interval: -
Login time: 2020-08-02 11:36:05:317
Accounting start time: -
Online time(hh:mm:ss): 00:00:07
Accounting state: Stop
Idle cut: 0 sec 0 byte
Session timeout: -
Time remained: -
Byte remained: -
Redirect WebURL: -
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
[M9000]
(0)
access-limit命令用来设置使用当前本地用户名接入设备的最大用户数。
undo access-limit命令用来恢复缺省情况。
【命令】
access-limit max-user-number
undo access-limit
【缺省情况】
不限制使用当前本地用户名接入的用户数。
【视图】
本地用户视图
【缺省用户角色】
network-admin
context-admin
【参数】
max-user-number:表示使用当前本地用户名接入设备的最大用户数,取值范围为1~1024。
【使用指导】
本地用户视图下的access-limit命令只在该用户采用了本地计费方法的情况下生效。
由于FTP/SFTP/SCP用户不支持计费,因此FTP/SFTP/SCP用户不受此属性限制。
【举例】
# 允许同时以本地用户名abc在线的用户数为5。
<Sysname> system-view
[Sysname] local-user abc
[Sysname-luser-manage-abc] access-limit 5
(0)
这个配置已经配过了,还是不行啊
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明