• 全部
  • 經驗案例
  • 典型配置
  • 技術公告
  • FAQ
  • 漏洞說明
  • 全部
  • 全部
  • 大數據引擎
  • 知了引擎
產品線
搜索
取消
案例類型
發布者
是否解決
是否官方
時間
搜索引擎
匹配模式
高級搜索

MSR36-60 關於PPP計費問題

2017-05-20提問
  • 0關注
  • 1收藏,5253瀏覽
1 六段
粉絲:4人 關注:0人

問題描述:

想要通過在賬戶裏配置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: 2017-05-20  21:09:04:388
  Accounting start time: 2017-05-20  21:09:04:394
  Online time(hh:mm:ss): 00:04:00
  Accounting state: Accounting
  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: 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: 2017-05-20  21:12:59:442
  Accounting start time: -
  Online time(hh:mm:ss): 00:00:05
  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

<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: 2017-05-20  21:25:58:685
  Accounting start time: -
  Online time(hh:mm:ss): 00:00:43
  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: 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: 2017-05-20  21:26:09:502
  Accounting start time: 2017-05-20  21:26:09:511
  Online time(hh:mm:ss): 00:00:33
  Accounting state: Accounting
  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: 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

請問一下,這種情況是什麼原因?


最佳答案

已采納
Cookie 七段
粉絲:7人 關注:3人

在認證域裏麵配置accounting start-fail offline試試

回複1:

不客氣

Cookie 發表時間:2017-05-22 更多>>

感謝,已解決

1 發表時間:2017-05-22
回複1:

不客氣

Cookie 發表時間:2017-05-22
0 個回答

該問題暫時沒有網友解答

編輯答案

你正在編輯答案

如果你要對問題或其他回答進行點評或詢問,請使用評論功能。

分享擴散:

提出建議

    +

親~登錄後才可以操作哦!

確定

親~檢測到您登陸的賬號未在http://hclhub.h3c.com進行注冊

注冊後可訪問此模塊

跳轉hclhub

你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作

舉報

×

侵犯我的權益 >
對根叔社區有害的內容 >
辱罵、歧視、挑釁等(不友善)

侵犯我的權益

×

泄露了我的隱私 >
侵犯了我企業的權益 >
抄襲了我的內容 >
誹謗我 >
辱罵、歧視、挑釁等(不友善)
騷擾我

泄露了我的隱私

×

您好,當您發現根叔知了上有泄漏您隱私的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您認為哪些內容泄露了您的隱私?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)

侵犯了我企業的權益

×

您好,當您發現根叔知了上有關於您企業的造謠與誹謗、商業侵權等內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到 pub.zhiliao@h3c.com 郵箱,我們會在審核後盡快給您答複。
  • 1. 您舉報的內容是什麼?(請在郵件中列出您舉報的內容和鏈接地址)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
  • 3. 是哪家企業?(營業執照,單位登記證明等證件)
  • 4. 您與該企業的關係是?(您是企業法人或被授權人,需提供企業委托授權書)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

抄襲了我的內容

×

原文鏈接或出處

誹謗我

×

您好,當您發現根叔知了上有誹謗您的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您舉報的內容以及侵犯了您什麼權益?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

對根叔社區有害的內容

×

垃圾廣告信息
色情、暴力、血腥等違反法律法規的內容
政治敏感
不規範轉載 >
辱罵、歧視、挑釁等(不友善)
騷擾我
誘導投票

不規範轉載

×

舉報說明