Community discussions

MikroTik App
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

ppoe connection  [SOLVED]

Wed Jan 23, 2019 6:41 pm

Hello everyone
I am having a problem that I cannot solve if someone can help me I would be greatfull.Actually we are getting new connection from a new isp but we just have one ip from this new isp I know we can do masquerade private and create pppoe pools but in here. I have one main router(isp connection at one tower ) and and another router that is on the second tower(lets say router 2)
1)I assigned 192.168.199.2/24 ip on tower two routers(router 2) ethernet 1 and I assigned 192.168.199.1/24 on main towers(main router) ethernet1
2)ethernet 8 will be our isp connection on main tower(main router)
3)I created a pool on mikrotik router(router 2) that is 192.168.199.3-192.168.199.50
the pppoe server is on ethernet 2(router 2) I am using local address as 192.168.199,2 and remote address as pool i created.
4)I did masquerade on main tower(main router) to WAN ip the subnet 192.168.199.0/24
5)for dns on for pppoe clients i am putting ethernet 1 ip 192.168.199.2/24 on 2nd router.
6)I created a default route on 2nd router to 192.168.199.1
But still router 2 cannot ping dns which isp has given
The clients can get the ip from the pool and their connections shows in pppoe connections

But still this is not working
I am attaching a picture also.
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Wed Jan 23, 2019 8:44 pm

R2:
change your pppoe-ip-pool addresses
R1
route new-ippool address to R2
chnage your src-nat src-address=new-ip-pool
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Wed Jan 23, 2019 10:24 pm

R2:
change your pppoe-ip-pool addresses
R1
route new-ippool address to R2
how can i create static route that points towards r2 I mean I can only put one ip and I have a range of 192.168.180.20-30 how I am gonna do that?
chnage your src-nat src-address=new-ip-pool
so i should nat new ip pool to that WAN connection?
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Wed Jan 23, 2019 10:47 pm

R2:
change pppoe client ip pool address


R1:
/ip route
add des=R2-new-ip-pool gateway=192.168.199.2

/ip firewall nat
add chain=src-nat src-addrc=R2-ip-pool out-interface=WAN-Interface(Ether8) acction=masqurade
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Wed Jan 23, 2019 10:49 pm

R1:
/ip route add dst-address=192.168.180.0/24 gateway=192.168.199.2 check-gateway=ping
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Wed Jan 23, 2019 11:39 pm

R1:
/ip route add dst-address=192.168.180.0/24 gateway=192.168.199.2 check-gateway=ping
Thanks alot man I really appreciate your replies
But it is still not working even in my lab environment
You do not have the required permissions to view the files attached to this post.
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Wed Jan 23, 2019 11:42 pm

I think the problem is the dns server router 2 cannot ping the dns server in my lab environment I am sharing wifi with ethernet and ethernet is connected to main routers interface 8 (acting as isp connection) and I am running dhcp client on ether8 to get default gateway and dns and that is 192.168.137.1
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Wed Jan 23, 2019 11:52 pm

Please post here tracert to dns server ip address
And
R1&R2:
/ip route export
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:00 am

here they are(router 2)
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:03 am

Traceroute from R1 post here
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:08 am

on r1
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:15 am

Here is your problem
Miss configuration
Add new route
Add deafult route to R1gateway=to ether8
On R1
ip route add gateway=dhcp-client-gateway ip address
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:18 am

R1:
/ip add pr
/ip dhcp-client export
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:32 am

I think the problem is that r2 is not pinging the gateway of r1 I am showing all setting on r2
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:34 am

Send all of this details + ip address from R1
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:36 am

all the setting on r1
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:40 am

R1:
/ip firewall export
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:44 am

firewall on r2
You do not have the required permissions to view the files attached to this post.
 
User avatar
tromideh
newbie
Posts: 27
Joined: Tue Apr 28, 2009 1:45 pm
Contact:

Re: ppoe connection

Thu Jan 24, 2019 12:52 am

Everything is ok
You are nat only src address192.168.180.0/24
Your pppoe client now can access to dns 192.168.137.1
Without any problem
Disable NAT on R2 if exist
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 12:56 am

There is not nat on r2 but still the problem persists.
I do not know why but many many thanks for trying to help
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: ppoe connection

Thu Jan 24, 2019 5:03 pm

Hi tromideh
Here is something that might can help in understanding problem
You do not have the required permissions to view the files attached to this post.