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.
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 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?
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
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.
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.