Community discussions

MikroTik App
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Cannot ping/connect default gateway  [SOLVED]

Thu Jan 24, 2019 8:03 pm

Hello Everyone
I was just doing a simple network I tried everything but the problem is I cannot connect ping main routers gateway.I have setup like this
Mikrotik 1 is the main router ether 1 has ip 192.168.199.1/24
Mikrotik 1 has ether 3 as a dhcp client it is getting everything default route dns from dhcp
mikrotik 2 is the second router that is connected to ether 1 with main router and ether 1 has ip 192.168.199.2/24
I tried everything but somehow the mikrotik 2 cannot ping default gateway of mikrotik 1
I did add static routes default gateway for mikrotik 2 is mikrotik 1
I did add dns ip of mikrotik 1 default gateway as dns on mikrotik 2
but still it is not working
 
johanplay
just joined
Posts: 3
Joined: Sat Jan 19, 2019 9:17 pm

Re: Cannot ping/connect default gateway

Thu Jan 24, 2019 9:33 pm

Just do it over from start but do ether1 as dhcp client and ether2 with ip 192.168.99.1 to the next router. You might need to route ether2 as gateway dst adress 192.168.99.0/24 pref source 192.168.99.1. nat chain: srcnat out interface: ether1 action: masquedrade


Sent from my 2014817 using Tapatalk

 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 12:17 am

From reading OP, should just work, as you will have DAC routes added dynamically.which should allow comms between these

Best is provide the output of: /export file=myconfig hide-sensitive and pas this here between the code brackets
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 891
Joined: Fri Nov 10, 2017 8:19 am

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 12:33 am

I fully agree with CZFan - hard to guess without config. Could be anything, but my personal bet is on misconfigured
/ip firewall filter
or
/ip firewall nat
(either packet is not being forwarded at all or it does not get SRCNATted so gateway does not know where to send it back)
This should be actually easy to debug with packet sniffer running on Mikrotik1 - unless there is bridge involved, then there will be always 4 entries per packet:
ICMP echo request, received on Mk1eth1
ICMP echo request, transmitted from Mk1eth3
ICMP echo reply, received on Mk1eth3
ICMP echo reply, transmitted from Mk1eth1
 
johanplay
just joined
Posts: 3
Joined: Sat Jan 19, 2019 9:17 pm

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 12:19 pm

Just do it over from start but do ether1 as dhcp client and ether2 with ip 192.168.99.1 to the next router. You might need to route ether2 as gateway dst adress 192.168.99.0/24 pref source 192.168.99.1. nat chain: srcnat out interface: ether1 action: masquedrade


Sent from my 2014817 using Tapatalk
His setup is easy. Like i said on router1 he can just run dhcp client on ether 1 and ether 2 with static ip to next router. Dhcp will automatically make route out then nat ether 2 and everything should word

Sent from my 2014817 using Tapatalk

 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 4:22 pm

Thanks guys I am attaching some pictures I was doing this on lab to just get it work perfectly when we deploy these settings this is the first time it ever happened to me I worked on cisco but I never had this much small problem and cannot figure it out These are some ip addresses i was testing someother day but the problem was same.
You do not have the required permissions to view the files attached to this post.
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 4:25 pm

just to let you know guys I had shared my wifi with my ethernet and that was acting as isp connection and it was giving ip with dhcp. I was trying to route pppoe but even without pppoe still mikrotik 2 cannot ping default gateway of router 1 that has isp connection
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 4:27 pm

I fully agree with CZFan - hard to guess without config. Could be anything, but my personal bet is on misconfigured
/ip firewall filter
or
/ip firewall nat
(either packet is not being forwarded at all or it does not get SRCNATted so gateway does not know where to send it back)
This should be actually easy to debug with packet sniffer running on Mikrotik1 - unless there is bridge involved, then there will be always 4 entries per packet:
ICMP echo request, received on Mk1eth1
ICMP echo request, transmitted from Mk1eth3
ICMP echo reply, received on Mk1eth3
ICMP echo reply, transmitted from Mk1eth1
I do agree with you when I go in connection I see mikrotik 2 tries to make connection with dns server but I think he does not get response back .When I do tracert It show packets going to ether of mikrotik 1 ip but it starts dropping after that
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: Cannot ping/connect default gateway

Fri Jan 25, 2019 5:41 pm

Thanks alot guys I do not know what was the problem but I tried everything almost the same way and It worked Thanks again