Community discussions

MikroTik App
 
RamonetNet
newbie
Topic Author
Posts: 28
Joined: Thu Dec 21, 2017 6:50 pm

basic routing does not work

Tue Jan 11, 2022 2:08 pm

We have a RB2011, connected to :
ether1 (ip=192.168.1.254/24)  -> internet router (ip=192.168.1.1)
ether9 (ip=5.5.5.5/24)        -> my PC           (ip=5.5.5.6)
The rsc file is exactly this one :
/ip address 
add address=192.168.1.254/24   comment="router FO"          interface=ether1   network=192.168.1.0 
add address=5.5.5.5/24         comment="port de Gestio"     interface=ether9   network=5.5.5.0
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=192.168.1.1 
/system identity
set name=SAG-a2f
... and the "import" goes fine.

I can access the router using "ssh admin@5.5.5.5" from my PC at 5.5.5.6
Being inside the router I can reach google's dns :
[admin@SAG-a2f] > ping 8.8.8.8
  SEQ HOST                                     SIZE TTL TIME  STATUS                                                          
    0 8.8.8.8                                    56 116 23ms 
    1 8.8.8.8                                    56 116 16ms 
    2 8.8.8.8                                    56 116 21ms 
    3 8.8.8.8                                    56 116 16ms 
    sent=4 received=4 packet-loss=0% min-rtt=16ms avg-rtt=19ms max-rtt=23ms 
... and also "wget" to access the router from the PC works fine :
nicolau@mars:~$ wget 5.5.5.5
--2022-01-11 12:37:38--  http://5.5.5.5/
Connecting to 5.5.5.5:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7023 (6.9K) [text/html]
Saving to: ‘index.html’

index.html                      100%[======================================================>]   6.86K  --.-KB/s    in 0.002s  

2022-01-11 12:37:38 (3.98 MB/s) - ‘index.html’ saved [7023/7023]
... but not from the PC at 5.5.5.6 : both "ping 8.8.8.8" and "wget 8.8.8.8" fail with Network is unreachable

It must be obvious for you, but I cant see what am I missing.

1) any ideas ?
2) any documentation ?

Thanks.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19370
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: basic routing does not work

Tue Jan 11, 2022 2:27 pm

Please post config not snippets
/export hide-sensitive file=anynameyouwish
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: basic routing does not work

Tue Jan 11, 2022 2:30 pm

Does your PC have 5.5.5.5 as default gateway?
 
RamonetNet
newbie
Topic Author
Posts: 28
Joined: Thu Dec 21, 2017 6:50 pm

Re: basic routing does not work

Tue Jan 11, 2022 3:34 pm

Does your PC have 5.5.5.5 as default gateway?
of course, and I can SSH into the router
 
RamonetNet
newbie
Topic Author
Posts: 28
Joined: Thu Dec 21, 2017 6:50 pm

Re: basic routing does not work

Tue Jan 11, 2022 3:34 pm

Please post config not snippets
/export hide-sensitive file=anynameyouwish
in 5 minutes

Here you are
# jan/11/2022 14:39:59 by RouterOS 6.38.1
# software id = ZUQ2-0MQC
#
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=5.5.5.5/24 interface=ether9 network=5.5.5.0
add address=192.168.1.254/24 comment="router FO" interface=ether1 network=\
    192.168.1.0
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=192.168.1.1
/system clock
set time-zone-name=Europe/Madrid
/system identity
set name=SAG-a2f
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: basic routing does not work

Tue Jan 11, 2022 4:04 pm

You'd be able to ssh into router even without default gateway, that's why I asked. Better check it again ("ip addr", "ip route"), because your router's config is as simple as possible, nothing can go wrong with that.

Who is online

Users browsing this forum: 0xAA55, Amazon [Bot] and 64 guests