Community discussions

MikroTik App
 
Hardian
just joined
Topic Author
Posts: 4
Joined: Thu Mar 11, 2010 4:43 am

Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 12:32 am

Hi! I have to pppoe clients with the same user and password connected.
I see two active connections and I see two simple queues but I can't match the correct one

> ppp active print detail
Flags: R - radius
0 R name="pepe" service=pppoe caller-id="E0:E8:E6:1E:B3:4F" address=172.16.121.4 uptime=5h58m9s encoding="" session-id=0x81800083 limit-bytes-in=0 limit-bytes-out=0
1 R name="pepe" service=pppoe caller-id="8C:88:2B:00:00:08" address=172.16.121.5 uptime=5h57m22s encoding="" session-id=0x81800084 limit-bytes-in=0 limit-bytes-out=0

> queue simple print
Flags: X - disabled, I - invalid, D - dynamic
0 D name="<pppoe-pepe>" target=<pppoe-pepe> parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=2M/2M max-limit=2M/2M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s bucket-size=0.1/0.1
1 D name="<pppoe-pepe-1>" target=<pppoe-pepe-1> parent=none packet-marks="" priority=8/8 queue=default-small/default-small limit-at=2M/2M max-limit=2M/2M burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s bucket-size=0.1/0.1

Are there any way to know which queue correspond to which active connection?
Thanks in advance and sorry for my english
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 4804
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 1:56 am

...session-id=0x81800083 ...
...session-id=0x81800084 ...

0 name="<pppoe-pepe>" target=<pppoe-pepe> ...
1 name="<pppoe-pepe-1>" target=<pppoe-pepe-1> ...
 
Hardian
just joined
Topic Author
Posts: 4
Joined: Thu Mar 11, 2010 4:43 am

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 2:40 am

Sorry, I don't get it.
The "-1" is not related with the number 1 pppoe active account, I have a lot of other cases with -2 -3 -4
Thanks!
 
joegoldman
Long time Member
Long time Member
Posts: 626
Joined: Mon May 27, 2013 2:05 am

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 3:27 am

You can use ppp interface instead where it uses interface name - you can cross reference session by caller ID from ppp active via ppp interface to get interface name then reference that to simple queues.

Best way to do it depends on what you are trying to achieve.
 
JuNex03
just joined
Posts: 3
Joined: Wed Jun 16, 2021 2:51 pm

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 3:42 am

Sorry, I don't get it.
The "-1" is not related with the number 1 pppoe active account, I have a lot of other cases with -2 -3 -4
Thanks!
Go to the PPPOE Profile that account is using, then go to Limits and change "Only one" from "default" or "no" to "yes"

After this, it they're not closed already, close the active accounts with names having "-1", "-2", etc in them.

Then go to your log, you should see multiple devices trying to connect with the same account.
Last edited by JuNex03 on Fri Jun 18, 2021 3:47 am, edited 1 time in total.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 4804
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 3:44 am

Go to the PPPOE Profile that account is using, then go to Limits and change "Only one" from "default" or "no" to "yes"
NO!!!
this behavior is required

as OP: >>>have to pppoe clients with the same user and password connected<<<

Before reply read the OP post, do not reply just for increase post count.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 4804
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 3:47 am

Sorry, I don't get it.
The "-1" is not related with the number 1 pppoe active account, I have a lot of other cases with -2 -3 -4
Thanks!
based only from your prints

...session-id=0x81800083 ...
...session-id=0x81800084 ...

bigger session ID are created LATER

0 name="<pppoe-pepe>" target=<pppoe-pepe> ...
1 name="<pppoe-pepe-1>" target=<pppoe-pepe-1> ...

-1 on name are created LATER, followed by -2, -3 , -4
little number, longer time
older session-id=0x81800083 correspond to older pppoe-pepe
newer session-id=0x81800084 correspond to newer pppoe-pepe-1
 
JuNex03
just joined
Posts: 3
Joined: Wed Jun 16, 2021 2:51 pm

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 3:50 am

Go to the PPPOE Profile that account is using, then go to Limits and change "Only one" from "default" or "no" to "yes"
NO!!!
this behavior is required

as OP: >>>have to pppoe clients with the same user and password connected<<<

Before reply read the OP post, do not reply just for increase post count.
OH I thought they were trying to remove duplicate connections. My bad
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 4804
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Multiple pppoe with same name and simple queues problem  [SOLVED]

Fri Jun 18, 2021 3:53 am

You can use ppp interface instead where it uses interface name - you can cross reference session by caller ID from ppp active via ppp interface to get interface name then reference that to simple queues.
Right .

for example user iusbfis on active connections with caller ID 4C:5E:0C:xx:xx:A3
has it's own dynamically added interface on interfaces like <pppoe-iusbfis-3> with same caller ID 4C:5E:0C:xx:xx:A3
and on that dynamically added interface, are the same name of simple queues <pppoe-iusbfis-3>
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 4804
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 4:03 am

OH I thought they were trying to remove duplicate connections. My bad
Can happen.
Luckily I didn't work as a surgeon,
otherwise with the mistakes I would have made,
I would have killed a lot of people...
 
Hardian
just joined
Topic Author
Posts: 4
Joined: Thu Mar 11, 2010 4:43 am

Re: Multiple pppoe with same name and simple queues problem

Fri Jun 18, 2021 6:46 am

Thanks for the answers!
"bigger session ID are created LATER"
It's every time all times?

I try getting from interfaces and I think with
interface pppoe-server print
I can get the user and remote addres then match the ppp active with the address and caller-id and the queue with interface name
Thanks!

Who is online

Users browsing this forum: No registered users and 100 guests