Need help with very basic routes

Hello all, I would like to setup a very basic Mikrotik router. So far it has been easy to get to winbox and setup a few things.
What I would like to do is have:
Ether1 ->Internet Via DCHP
ether2-> local network with local DHCP SERVER

from winbox I can see both interfaces active yay! So first thing I did was to configure Ether1 to pickup a DCHP address and it does pick up everything fine
ip 192.168.0.100 gateway 192.168.0.1 and dns 192.168.0.1

the second thing I did was ad an ip address to ether2 of 10.5.50.1/24
Now the router has a local ip of 10.5.50.1
I can access this from the local network along with getting the DHCP server working well also. I can get to winbox via web so mikrotik router is indeed working.


Now for some reason I can’t seem to get a basic route to work so this thing can share internet (NAT MODE)

What I see in route from winbox is what seems to be autoconfigured. I can’t delete this. This is what is there now: Well I can delete the first one but durring reboot it comes back.

Destination 0.0.0.0/0 gateway 192.168.0.1 distance 0 interface ether1
Destination 10.5.50.0/24 pref source 10.5.50.1 ether2
Destination 192.168.0.0/24 pref source 192.168.0.1 ether1

This is prob my problem? this might be wrong or I have to ad something? any clues? I can ping 10.5.50.1 fine but not internet acccess. I can;t even ping the dns server 192.168.0.1 shows me theres a problem somewhere :frowning:

I have also added a firewall rule under NAT to masquerade outgoing ether1
im not to sure if this is right also

Am I on the right track? I simply want a simple dlink like router setup for now then later work with the bandwitth shaping and stuff once the router can route properly. I’m really stuck but this should be easy im sure its not something big. any info or help would be very useful!

thanks so much for reading :slight_smile:

if you already added the default gateway address and the src-nat masquerade rule, the internet should alsready be working. if you told your DHCP server to also distribute DNS address (your router address), make sure you have configured the DNS server address in your router, and have set the DNS in your router to “allow remote requests”
2009-06-12_1554.png

thanks for the infos I looked into that and this is what I got. I tried taking the 192.168.0.1 out and put 10.5.50.1 but after a reset it defaults back to 192.168.0.1 (I guess what it picked up from dhcp on ether1)

So I think that is also setup right. Strange …
thanks!
dns.jpg

primary DNS must be the address of a valid DNS server that can answer to DNS requests, use what your ISP gave you

hmmm I seem to have done this. in dhcp client. I uncheck use peer dns (ether1 would pick up linksys router dns 192.168.0.1 “Public net” )and under DNS I added my 2 dns servers from my isp. Then back on the Mikrotik local network, I did a release and renew and I got a local ip fine 10.5.50.252 with gateawy 10.5.50.1 and my isp dns.. So that seems to be working. Now back to routing I still can ping the gateway ip 10.5.50.1 (Mikrotik) but nothing else. I cant even ping the dns that I have received from DHCP. Now from winbox I can access telnet and log into the Mikrotik os from there I can ping google or any other web address or ip(shows that ether1 is working fine) and I can also ping the dns servers fine.

hmmmmm? any clues or should I just start from fresh?

thanks!

Ok maybe I just needed to reset? It’s all working now. Im posting this now using the internet true my Mirkotik Router.
DHCP is giving me The mikrotik router ip as the first dns 10.5.50.1 same as the default gateway.
then the second dns is the one from my isp. This seems to all be working well. All pages are loading and it’s quick :slight_smile:
thanks for the infos it must have been something with the DNS