accel-cmd show sessions returning vlan_id

PPPoE related questions
Post Reply
beiriz
Posts: 10
Joined: 05 Mar 2016, 12:31

accel-cmd show sessions returning vlan_id

Post by beiriz » 08 Mar 2018, 12:40

Hello,
we searched here for "accel-cmd help" and did not find information that would be very useful:

We would like to know by which vlan_id a PPPoE user would be arriving at the accel. Here we would include, for example, the parameter vlanid in the command
"accel-cmd show sessions" would look like this:
accel-cmd show sessions "vlanid, ifname, username, type, state, calling-sid, called-sid, sid"

Is it possible to do this, or is there another way?
Thank you

beiriz
Posts: 10
Joined: 05 Mar 2016, 12:31

Re: accel-cmd show sessions returning vlan_id

Post by beiriz » 08 Mar 2018, 13:08

I even managed to get this information in the ACCEL LOG, however, it would be really interesting to get this information through "accle-cmd show sessions"

Log example:
[2018-03-08 09:58:29]: info: eth3.240: send [RADIUS (1) Access-Request id = 1 <User-Name "user123456"> <NAS-Identifier "PPPoE01">

Maksel
Posts: 14
Joined: 18 Jul 2015, 16:25
Location: UA, Krivoy Rog
Contact:

Re: accel-cmd show sessions returning vlan_id

Post by Maksel » 08 Mar 2018, 22:59

My log:
[2018-03-09 00:52:59]: info: eth2.106: send [RADIUS(1) Access-Request id=1 <User-Name "c2"> <NAS-Identifier "nas103"> <NAS-Port-Type Virtual> <Service-Type Framed-User> <Framed-Protocol PPP> <Calling-Station-Id "08:00:27:65:FB:22"> <Called-Station-Id "eth2.106"> <MS-CHAP-Challenge> <MS-CHAP2-Response>]
[2018-03-09 00:52:59]: info: eth2.106: recv [RADIUS(1) Access-Accept id=1 <Acct-Interim-Interval 600> <Framed-IP-Address 10.2.160.2> <MS-CHAP2-Success> <MS-MPPE-Recv-Key> <MS-MPPE-Send-Key> <MS-MPPE-Encryption-Policy 1> <MS-MPPE-Encryption-Type 6>]



accel-ppp# show sessions username,ip,called-sid match ip 10.2.160.2
username | ip | called-sid
--------------+---------------+------------
c2 | 10.2.160.2 | eth2.106

my config:
[pppoe]
called-sid=ifname


man accel-ppp.conf

called-sid=ifname|mac|ifname:mac
Specifies how to represent Called-Station-ID.
ifname - Called-Station-ID will contain name of interface accepted request.
mac - Called-Station-ID will contain mac address of interface accepted request.
ifname:mac - Called-Station-Id will contain both name and mac of interface.
есть только миг, между прошлым и будущим, именно он называется - ping.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest