Mikrotik basic router configuration - static ip and internet acces

Hello everybody,

I am new to this so please bare with me a little !

My situation is this :

  • i have a mikrotik router (912UAG-2HPnD) with a MiniPCI-e modem (ERICSSON KM226);
  • the static ip provided by my isp is 192.168.1.1;
  • i have a computer connected to the router which has a static ip 192.168.1.2; subnet mask : 255.255.255.0 ; no default gateway.

I am facing the following problem :

  • when i set the computer to DHCP i have internet access - when it is on static ip, i do not;
  • when i set up the computer to static ip, i can ping the computer from the router and i can ping the internet (wwww.google.com) from the router, but no internet access on my computer.

How should i set up the router in order to have internet access even if the ip of the connected computer is a static one ?
This must be something trivial but i can’t figure it out !
Can you please point me to a tutorial concerning this issue ?

Thank you so much !

Andrew

You need to set the default gateway (192.168.1.1) when configuring statically.

It works by DHCP because DHCP is setting (dinamically) your default gateway.

If a host doesn’t have a default gateway, it will only be able to communicate with hosts in the same subnet, 192.168.1.0/24 in your case.