Mikrotik can't ping the internet just can ping gateway (DSL)

Hello all master, I am a newbie n being tried Mikrotik RB750..

Here’s the topology and the settings:

Description:

-Inet: Dynamic IP (Changing) [Internet home]

-Modem DSL/WiFi: 192.168.1.254

-Mikrotik:
— WAN IP: 192.168.1.1
– LOCAL IP: 192.168.2.1
– Gateway: 192.168.1.254

-DNS: 8.8.8.8 / 8.8.4.4

-Client XP: 192.168.2.2

-NAT: chain = srcnat action = masquerade src-address = 192.168.2.0 out-interface = WAN

The question is :

Why of Mikrotik (RB750) can not ping to google or DNS ??

Logically if Mikrotik can not ping google how clients can access the Internet??

I hope all master can help me to do task..

Thanks btw.. :smiley:

I think it is nat problem
In your nat rule change:

  1. “src-address = 192.168.2.0” to “src-address = 192.168.2.0/24”
  2. delete “out-interface = WAN”.

But sir, I can’t change with 0/24.. I dont know why :frowning:
Ohh delete the out interface??

Ok, i try first.. Thank you sir.. :smiley:

open a new terminal and paste this:

/ip firewall nat
add action=masquerade chain=srcnat disabled=no src-address=192.168.2.0/24

This should work for you.

This will cover your masquerade for all your localnets, not just one.

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

If WAN is not the name of your WAN interface, change that.