Hello every body
I install the Mikrotik with 2 interface and then Rename it 1-Wan(connect to internet) – 2-Lan(Connect to user).
Then i put ip to lan (192.168.0.1/24)
And go to DHCP Client tab and mark for wan and he get ip auto (192.168.0.158/24)and i found the getway in (ip — Router 192.168.0.1 om interface wan)
Then i make dhcp on interface lan
I put the dns of google (8.8.8.8 8.8.4.4) and go to tab (ip — firewall – Nat ) and add a new nat rule (chain: srcbat – action :masquerade) and then finish
the user computer take ip by dhcp and i can ping to adsl router 192.168.0.1 but no internet
what is the problem?
You have a subnet conflict there. That LAN and WAN have the same subnet. Change your LAN ip/subnet to something like 192.168.1.1/24. Then redo your dhcp server for that interface.
sorry for wrong the lan IP is (192.168.1.1/24) and The wan ip which he get iy automayic is (192.168.0.85/24)
Post the output of “/ip address print detail”, “/ip route print detail”, “/interface print detail”, “/ip firewall export”, and an accurate network diagram.
Did you add DNS server to the lan network in DHCP server ?
check it
/ip dhcp-server network> pr detail
0 address=192.168.1.0/24 gateway=192.168.1.1 dns-server=192.168.1.1
And Also
>ip dns print
servers: x.x.x.x
allow-remote-requests: yes
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 87KiB
check “Allow remote requests” property. It must be yes