R
R
RoffDaniel2020-03-12 22:31:41
network hardware
RoffDaniel, 2020-03-12 22:31:41

How can I assign an external IP address to one of the local ones?

Good evening. Please, tell the inexperienced how to make packets outgoing from a certain local network go through a certain external IP address?

I have three external ip addresses: 1.1.1.156, 1.1.1.157 and 1.1.1.158, as well as local ones: 10.0.10.0/24, 10.0.20.0/24 and 10.0.30.0/24. Here's how to do it through NAT or Routes, or somehow, so that, for example, 10.0.30.0/24 goes to the Internet under 1.1.1.158?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RoffDaniel, 2020-03-15
@RoffDaniel

Here is the answer to my question:
https://forum.mikrotik.com/viewtopic.php?f=13&t=158677

W
Wexter, 2020-03-12
@Wexter

Mikrotik, 3 providers, switching and splitting
Mikrotik 7 providers into 7 Vlan?
How to set up 2 providers, 2 subnets and 1 on all network printers on mikrotik?
Mikrotik Dual WAN without default route?

A
Artyom, 2020-03-13
@default_route

/ip firewall nat
add action=src-nat chain=srcnat src-address=10.0.10.0/24 to-addresses=1.1.1.156 out-interface=your_interface
add action=src-nat chain=srcnat src-address=10.0.20.0 /24 to-addresses=1.1.1.157 out-interface=your_interface
add action=src-nat chain=srcnat src-address=10.0.30.0/24 to-addresses=1.1.1.158 out-interface=your_interface

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question