Hello Mikrtoik Community, I need your help.
I already have Mikrotik experience, but this is the first time I face this configuration, and so far, I’ve been unsuccessful.
Connection Diagram:
ISP->RB1200->Switch->N Customers
What I want to do:
I want to give each of my customers a /29.
My ISP gives me the following parameters:
WAN: 201.158.16.76/30
Gateway: 201.158.16.77
And I am configuring 201.158.16.78 for the RB1200.
They are also giving me the following IP segment to distribute between my customers:
201.158.19.0/24
How can I do this?
Customer 1: 201.158.19.16/29
Customer 2: 201.158.19.24/29
Ignore the switch for the moment; assume I am connecting my customers directly to the RB1200.
They are also giving me the following IP segment to distribute between my customers:
201.158.19.0/24
How can I do this?
Customer 1: 201.158.19.16/29
Customer 2: 201.158.19.24/29
Ignore the switch for the moment; assume I am connecting my customers directly to the RB1200.
Are you providing any DHCP to your customers, for these (/29) address blocks ?
This might be a place to start… I’ve only filled out the first four interfaces (ether2-ether5), but you’ll get the idea. I haven’t tested it, but try it and see if this is a good starting point for your customer nets.
/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB
max-udp-packet-size=512 servers=172.16.11.1 <----- Change this to whatever you use for dns
interface customers connect to:
set ip to 201.158.19.1 , customers use this as their default gateway.
WAN interface set to an ip in the range you are assigned by ISP
Then add routes to the interface customers connect to:
e.g:
destination:201.158.19.16/29 interface: ethCustomers
destination:201.158.19.24/29 interface: ethCustomers etc.
make sure to add a 0.0.0.0 route to the WAN interface on your RB and the customer’s.
customer CPE: assign the IPs in their range one by one to their WAN interface. then let them do the rest