Page 1 of 1

ppoe connection  [SOLVED]

Posted: Wed Jan 23, 2019 6:41 pm
by kokaKorina
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.

Re: ppoe connection

Posted: Wed Jan 23, 2019 8:44 pm
by tromideh
R2:
change your pppoe-ip-pool addresses
R1
route new-ippool address to R2
chnage your src-nat src-address=new-ip-pool

Re: ppoe connection

Posted: Wed Jan 23, 2019 10:24 pm
by kokaKorina
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?

Re: ppoe connection

Posted: Wed Jan 23, 2019 10:47 pm
by tromideh
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

Re: ppoe connection

Posted: Wed Jan 23, 2019 10:49 pm
by tromideh
R1:
/ip route add dst-address=192.168.180.0/24 gateway=192.168.199.2 check-gateway=ping

Re: ppoe connection

Posted: Wed Jan 23, 2019 11:39 pm
by kokaKorina
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

Re: ppoe connection

Posted: Wed Jan 23, 2019 11:42 pm
by kokaKorina
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

Re: ppoe connection

Posted: Wed Jan 23, 2019 11:52 pm
by tromideh
Please post here tracert to dns server ip address
And
R1&R2:
/ip route export

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:00 am
by kokaKorina
here they are(router 2)

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:03 am
by tromideh
Traceroute from R1 post here

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:08 am
by kokaKorina
on r1

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:15 am
by tromideh
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

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:18 am
by tromideh
R1:
/ip add pr
/ip dhcp-client export

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:32 am
by kokaKorina
I think the problem is that r2 is not pinging the gateway of r1 I am showing all setting on r2

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:34 am
by tromideh
Send all of this details + ip address from R1

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:36 am
by kokaKorina
all the setting on r1

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:40 am
by tromideh
R1:
/ip firewall export

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:44 am
by kokaKorina
firewall on r2

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:52 am
by tromideh
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

Re: ppoe connection

Posted: Thu Jan 24, 2019 12:56 am
by kokaKorina
There is not nat on r2 but still the problem persists.
I do not know why but many many thanks for trying to help

Re: ppoe connection

Posted: Thu Jan 24, 2019 5:03 pm
by kokaKorina
Hi tromideh
Here is something that might can help in understanding problem