Community discussions

MikroTik App
 
tomas
just joined
Topic Author
Posts: 13
Joined: Fri Mar 24, 2006 8:29 pm

How to use DHCP server insted of ip pool with pppoe server.

Sun Nov 19, 2006 10:24 pm

As it says in topic name.No need for large explanation just any hint will bi good.Thanks
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Mon Nov 20, 2006 9:51 am

Erm, when you are using PPPoE, there's no real room for DHCP to assing ip addresses. This is done by the access concentrator (PPPoE server), and DHCP has no place to fit in here...

Best regards,
Christian Meis
 
rootlinux
just joined
Posts: 18
Joined: Thu May 25, 2006 6:01 am

Mon Nov 20, 2006 11:30 am

why u want to use the DHCP server ip addresses?
 
tomas
just joined
Topic Author
Posts: 13
Joined: Fri Mar 24, 2006 8:29 pm

Mon Nov 20, 2006 2:41 pm

@Cmit

Thanks again man.

@rootlinux
For better control over assignig of ip adresses,to clients.In fact i was thinking to use dhcp to assign addresses to clients because that is done by pppoe server,my porblem with his assigning of addresses is that,that him don't change ip address of client when he get disconnect and get conncet again he get same ip address,
i just want to make client to get every time new ip address,
this is situation
we have pppoe server

we have pool for gateway, and this pool we put in profil in local address

... profil , remote address , are empty (ther is no pool put) ...


... we have 4 pools for 64, 128, 256, 512 in this MT

pppoe-64
pppoe-128
pppoe-256
pppoe-512


...with radius manger, we, make user with diferent pools


when users connect, he take first ip from pool, when reconnect he take second,...3, ....4, ... and this happend till reach last ip in pool,
when reach last ip in pool , there no change of ip any more happend, and he take this last ip agen and agen.


If we poot pools in profil , local addres and remote addres, there is no chage of ip, ever.




second problem are, subunet of user IP, subnet are /32, is there any way to make subnet of user IP, diferent, /30 /28 /24
Last edited by tomas on Mon Nov 20, 2006 3:37 pm, edited 2 times in total.
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Mon Nov 20, 2006 2:50 pm

If you would explain what you think that could be handled better by DHCP than PPPoE regarding address management, perhaps we could help you understand available features/options better.
I don't think there's something missing from the adress management features when you're working with PPPoE.

Best regards,
Christian Meis
 
tomas
just joined
Topic Author
Posts: 13
Joined: Fri Mar 24, 2006 8:29 pm

Mon Nov 20, 2006 3:05 pm

Post above Chris.I edit it with explaination of problem.
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Mon Nov 20, 2006 4:34 pm

The pool name should go into REMOTE address, not LOCAL address, as the REMOTE address is assigned to the client.
What address your customer is getting should be more or less random. If only one customer will always connect to your PPPoE server, he'll probably always get the same ip address, but not in real life.
Even he would get the same address several times - what's the problem? He cannot "mis-use" it as his fixed ip address, because on the very next connect we could (and probably will) get another ip address.

Regarding the subnet: PPPoE is a point-to-point connection (as is in the name), and so there always will be a /32 subnet mask associated with a PPPoE assigned address.
This is good, as it forces ALL customer traffic through your PPPoE server, where you can control it. So no more uncontrolled "intra-user" traffic...

Does that help a bit?

Best regards,
Christian Meis
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Mon Nov 20, 2006 5:56 pm

If you use Radius, use that to dynamically assign the IP addresses. Using FreeRadius and rlm_ippool, I hardly ever get the same IP twice...
 
tomas
just joined
Topic Author
Posts: 13
Joined: Fri Mar 24, 2006 8:29 pm

Tue Nov 21, 2006 12:38 am


Regarding the subnet: PPPoE is a point-to-point connection (as is in the name), and so there always will be a /32 subnet mask associated with a PPPoE assigned address.
This is good, as it forces ALL customer traffic through your PPPoE server, where you can control it. So no more uncontrolled "intra-user" traffic...

Does that help a bit?

Best regards,
Christian Meis
this one helped ,first part don't sorry.Realy I just want that my clients don't get same ip address even once in one period ,but pppoe server don't assign address in random maner,i was watching him how it is doing ,when one client stays on pool he gets always same ip address,i just wanna even when one client is on pool to get always random address,will try with this freeradius module thanks savage