Community discussions

MikroTik App
 
Atticraider
just joined
Topic Author
Posts: 4
Joined: Wed Mar 14, 2018 3:18 pm

Mikrotik CSR 125 - How to route all LAN traffic to a specific IP address.

Thu Jun 21, 2018 1:45 pm

Morning all,

Could someone be so kind and tell me how I would route all LAN traffic through a specific IP address please.

Would this be done through the firewall, DNS or something else?

Your assistance would be much appreciated.

Regards
Andy
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Mikrotik CSR 125 - How to route all LAN traffic to a specific IP address.

Thu Jun 21, 2018 1:52 pm

Not sure what you mean?
Do you mean you have two WANIPs but you want traffic to go through only one of hte WANIPs?
 
Atticraider
just joined
Topic Author
Posts: 4
Joined: Wed Mar 14, 2018 3:18 pm

Re: Mikrotik CSR 125 - How to route all LAN traffic to a specific IP address.

Thu Jun 21, 2018 2:28 pm

I am wanting to know how I can route all LAN traffic through a single public IP address so it can access the internet.

I have configured my internal network space to 10.x.x.x /24.

I would like all LAN traffic to be assigned an IP in the range of 144.240.244.171/28 for example.
 
martinx86
just joined
Posts: 2
Joined: Wed Mar 28, 2018 9:34 pm

Re: Mikrotik CSR 125 - How to route all LAN traffic to a specific IP address.

Thu Jun 21, 2018 2:47 pm

You need to setup your router to use NAT.
If you want to use one "external" ip in whole private network you need to use NAT

Try to look here
https://wiki.mikrotik.com/wiki/NAT_Tutorial
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19325
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Mikrotik CSR 125 - How to route all LAN traffic to a specific IP address.

Thu Jun 21, 2018 8:11 pm

Still confusing, he/she is asking to use the router like every router is already configured. Where is the catch?
Just to be clear you cannot choose what your public IP will be. The ISP has to follow rules for public IPs on the internet.
The main difference in public IPs is whether its a fixed IP address or dynamic (changes from time to time by the ISP provider).

In terms of the private IP structure behind the router (your LANS), you can pretty much have any IP structure you desire.
As noted when applying NAT rules (the default in any consumer router and in the default setup provided my mikrotik) the router will ensure
that all IPs coming from the LAN are mapped to your public IP and that is the IP the rest of the world will see.

In your case the only change possibly you would need to make is change the default IP address on the mikrotik from 192.168.88.1-.254
to whateveryou want in this case it appears a /28 subnet? (255.255.255.240) which means 14 useable private IPs......

144.240.244.171/28 which would equate to an IP Pool of 144.240.244.172-144.240.244.17.174 ???

Not quite sure if accurate but it should be close. Of course besides ip pool you would need to change DHCP server, and DHCP network and IP address.
The question i have what is the requirement that you need such as strange private IP structure???

Who is online

Users browsing this forum: No registered users and 63 guests