D
D
Danil2016-07-04 11:58:00
Computer networks
Danil, 2016-07-04 11:58:00

How to connect LAN and WAN on Mikrotik?

There is a Mikrotik. In the first port, the provider's cable, the speaker - eth-WAN. Connected, ping is coming. On the second port, the DHCP server that issues 192.168.0.0/20 - eth-LAN. NAT has a rule:

/ip firewall nat add out-interface=eth-LAN action=masquerade chain=srcnat

How to make it so that the eth-LANInternet appears?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cool Admin, 2016-07-04
@Veneomin

So, in order for everything to work, you need:
1. DHCP client is enabled on the External interface, with checkboxes about DNS and Default route
2. On the internal interface, the DHCP server, where Mikrotik is the gateway and DNS server in the network properties, or empty (the client will receive DNS from the provider) , either external (for example, from Google), or Mikrotik itself (in the properties of the DNS server there is a checkbox "allow external connections"
) .
Everything else must be disabled/not configured for everything to work. If firewall rules are added - in the furnace for the duration of the experiment, if routes are added - there, mangle - the same story, and so on.
Do the setup through the Quick setup wizard and don't love your brain.

N
Nikita Pavlov, 2016-07-04
@NikiN

In this situation, out-interface=eth-WAN should be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question