Community discussions

MikroTik App
 
darshakamodi
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Oct 04, 2011 1:44 pm

Routing and PPPOE

Thu Jan 17, 2013 5:56 pm

Hi ,
we have configured pppoe on one server. And the same server we want to use for static ip/leased line customers also.

The pppoe users are on private ip and are masquered. But for static ip how to define routing?

pppoe [ 10.20.x.x] ----------------- SERVER [ IP: 202.x.x.x] ---------- Gateway[202.140.x.x]
|
Static IP [ 202.x.x.x/24] -------------------|

I had given IP 202.x.x.x/24 on WAN OF Server which is connected to Gateway. What configuration is needed on SERVER so that the static ip customers can also reach GATEWAY. Though the static ip, server wan and gateway are on same network ip pools.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Routing and PPPOE

Thu Jan 17, 2013 10:27 pm

How are the static IP customers attached to the router? Also via PPPoE? Another way?
 
User avatar
Antixx
Member Candidate
Member Candidate
Posts: 100
Joined: Mon Jun 26, 2006 9:46 am

Re: Routing and PPPOE

Thu Jan 17, 2013 10:34 pm

Just set an static invalid ip for customers and route the range of ip that you want to give them to that static ip. Thats all

Sent from my GT-I9300 using Tapatalk 2
 
darshakamodi
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Oct 04, 2011 1:44 pm

Re: Routing and PPPOE

Fri Jan 18, 2013 5:45 am

can you pl give steps/commands. I dont know about how to do that?
 
darshakamodi
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Oct 04, 2011 1:44 pm

Re: Routing and PPPOE

Fri Jan 18, 2013 6:03 am

static customers are given IP , no pppoe. they will be provided IP
 
User avatar
Antixx
Member Candidate
Member Candidate
Posts: 100
Joined: Mon Jun 26, 2006 9:46 am

Re: Routing and PPPOE

Fri Jan 18, 2013 3:07 pm

I perefer my users connect via PPPOE and get a static address then you can write static route for them for example for the user that has 10.10.75.75 and you want to route 85.185.76.0/28 (valid range) just use this command
/route add dst-address=85.185.76.0/28 gateway=10.10.75.75

You should change it with your IPs

Sent from my GT-I9300 using Tapatalk 2
 
darshakamodi
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Oct 04, 2011 1:44 pm

Re: Routing and PPPOE

Fri Jan 18, 2013 4:05 pm

PPPOE users having 10.20.21.0/24 IPs allocated.

For static OR say leased line customers, live ips are allocated.
On WAN interface ip is same as gw.
gw is 202.140.x.193
and MT IP is 202.140.x.212

And Leased line customer on LAN will be given IP 202.140.x.37-202.140.47.64.

How will I write the route on MT ?
 
User avatar
Antixx
Member Candidate
Member Candidate
Posts: 100
Joined: Mon Jun 26, 2006 9:46 am

Re: Routing and PPPOE

Fri Jan 18, 2013 10:18 pm

You should say more details, i am not sure what you exactly want.
If you want to give range of valid IPs to your customers you could do what i said at my last post if you dont use pppoe or without authentication how you want to control them?

Sent from my GT-I9300 using Tapatalk 2
 
darshakamodi
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Tue Oct 04, 2011 1:44 pm

Re: Routing and PPPOE

Sat Jan 19, 2013 8:17 am

Ok. The setup contains 2 things.

Customer [pppoe] ips. 10.x.x.x/24 OR [ 202.140.x.x can be changed ]

Customers [Leased line] 202.140.x.x

PPPOSERVER: 10.x.x.x [LAN Interface1] & WAN- IP. 202.140.x.212,
AND this server is connected to router 202.140.x.193 on WAN Interface

PPPOE customers are working fine, when they connect they get 10.x.x.x/24 ips and able to surf.
For LEADED Line customer e.g if customer has 202.140.x.235 ip, for him his bandwidth is capped at 202.140.x.193 and he should go via 202.140.x.193 ip.

I need to write some route so that x.235 users , first router is lan 10.x.x. & 202.x.x.212 [ wan] -----> Then 202.x.x.193 . Currently I have default route set to 193, and pppoe users are masqueraeded and able to go to 192. but these 202.140.x.235 users are not able to go to 202.140.x.193 ip
 
User avatar
Antixx
Member Candidate
Member Candidate
Posts: 100
Joined: Mon Jun 26, 2006 9:46 am

Re: Routing and PPPOE

Sat Jan 19, 2013 11:35 pm

As I understand you want to route some of users to special router so you have to use source route using mangle and mark it then write a special route with mark routing.

Sent from my GT-I9300 using Tapatalk 2
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: Routing and PPPOE

Sun Jan 20, 2013 12:16 am


And Leased line customer on LAN will be given IP 202.140.x.37-202.140.47.64.

How will I write the route on MT ?
These numbers seem a bit odd but to give you an example, try using a network allocation 202.140.x.32/28

You could either:

A
Place the IP 202.140.x.33 on your gateway router
Allocate 202.140.x.34-202.140.x.62 to the static IP customer

or

B

Use a private (say) /30 link net to the static IP customer's router and allocate the 202.140.x.32/28 network to their router while also providing routing to/from that range on your main router using the private /30 link net.

Who is online

Users browsing this forum: fadelliz78 and 76 guests