Community discussions

MikroTik App
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

How to use ip pool and ppp routes at the same time in VPN?

Sun Apr 20, 2008 8:12 pm

Hi all.
I'd like to configure ppp profile with ip pool and use it to connect remote routers. But problem is I should add route to remote network in ppp secret and if I use ip pool I can't do this because remote-address assigns dynamically. Is there some way to ovecome this? Maybe some keyword to put in route in ppp secret wich will convert to remote-address assigned by ip-pool?
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Re: How to use ip pool and ppp routes at the same time in VPN?

Sun Apr 20, 2008 10:06 pm

I don't know if I understood you well, but if you want your ppp routers to have a static IP from the IP pool, just at the ppp secret as remote address assign an IP form the pool, and this router will connect using the same IP always.

Regards.

Faton
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Re: How to use ip pool and ppp routes at the same time in VPN?

Mon Apr 21, 2008 9:54 am

I don't know if I understood you well, but if you want your ppp routers to have a static IP from the IP pool, just at the ppp secret as remote address assign an IP form the pool, and this router will connect using the same IP always.
Faton
No, I don't want to assign ip address for every ppp secret manually. I want to use ip pool to dynamically assign ip address from pool but to be able to automatically add correct routes to remote networks.
Is it possible?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: How to use ip pool and ppp routes at the same time in VPN?

Mon Apr 21, 2008 6:02 pm

youre already entering the routes in the ppp secret, why not enter the remote ip address as well ? not sure if in 3.x you can use an interface name instead of a next hop ip in that routes field, but either way, your already manually entering the routes on the secret, so just enter their Ip as well.
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Re: How to use ip pool and ppp routes at the same time in VPN?

Mon Apr 21, 2008 8:43 pm

youre already entering the routes in the ppp secret, why not enter the remote ip address as well ? not sure if in 3.x you can use an interface name instead of a next hop ip in that routes field, but either way, your already manually entering the routes on the secret, so just enter their Ip as well.
Then I should also enter local ip addresses manually as well. :(
Well, I resumed it's not possible, so I'll do it manually.