Community discussions

 
ahmedaly
just joined
Topic Author
Posts: 4
Joined: Fri Sep 09, 2016 1:25 am

Public IP subletting

Wed Sep 25, 2019 1:39 pm

dear all
i have Public IP 200.1.20.16/28
and have 2 client
1st client have IP 192.168.2/30
2nd client have IP 192.168.6/30

the Question is how to Route each client Range of IPs
1st client will have 200.1.20.16/29
2nd client will have 200.1.20.24/29
 
User avatar
xvo
Long time Member
Long time Member
Posts: 595
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Public IP subletting

Wed Sep 25, 2019 3:14 pm

Well, you just add routes to these subnets with their addresses as a gateway :)
 
ahmedaly
just joined
Topic Author
Posts: 4
Joined: Fri Sep 09, 2016 1:25 am

Re: Public IP subletting

Wed Sep 25, 2019 5:05 pm

you means

/ip route add dst-address=200.1.20.16/29 gateway=192.168.1
/ip route add dst-address=200.1.20.24/29 gateway=192.168.5
 
User avatar
xvo
Long time Member
Long time Member
Posts: 595
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: Public IP subletting

Wed Sep 25, 2019 5:27 pm

Almost:

/ip route add dst-address=200.1.20.16/29 gateway=192.168.XX.2
/ip route add dst-address=200.1.20.24/29 gateway=192.168.XX.6

Who is online

Users browsing this forum: Google [Bot] and 119 guests