Community discussions

MikroTik App
 
User avatar
kameelperdza
Member
Member
Topic Author
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Want to setup router1 as ntp server on network

Thu Mar 04, 2010 4:45 pm

Hi i have 4 mikrotik rb433's that is connected to each other using r5h mini cards. I have successfully setup routing. But now i want to setup router1 as ntp server. I am unable to ping router1 from router4 using /tools/ping or traceroute. But can ping router 1 from router 2.
 
miahac
Long time Member
Long time Member
Posts: 516
Joined: Wed Dec 14, 2005 5:04 pm
Location: Wichita, KS

Re: Want to setup router1 as ntp server on network

Thu Mar 04, 2010 5:01 pm

If you cannot ping all the routers, you have not set up routing. Do you want help with the routing or NTP? Do you have a dynamic routing protocol? or static routes?
 
User avatar
kameelperdza
Member
Member
Topic Author
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Want to setup router1 as ntp server on network

Fri Mar 05, 2010 8:18 am

Hi there yes i would like some help please. i have setup static routes.

router1;
[admin@KKT-HS] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   172.16.0.1/24      172.16.0.0      172.16.0.255    ether1
 1   172.23.128.1/29    172.23.128.0    172.23.128.7    bridge1
 2   192.168.13.1/24    192.168.13.0    192.168.13.255  bridge1
[admin@KKT-HS] /ip address>
[admin@KKT-HS] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 172.16.0.200         1        br..
 1   S  0.0.0.0/0                          r 172.16.0.201         1        br..
 2 ADC  172.16.0.0/24      172.16.0.1                             0        br..
 3 ADC  172.23.128.0/29    172.23.128.1                           0        br..
 4 A S  192.168.4.0/24                     r 172.23.128.2         1        br..
 5 A S  192.168.10.0/24                    r 172.23.128.3         1        br..
 6 A S  192.168.11.0/24                    r 172.23.128.3         1        br..
 7 A S  192.168.12.0/24                    r 172.23.128.3         1        br..
 8 ADC  192.168.13.0/24    192.168.13.1                           0        br..
[admin@KKT-HS] /ip route>

router2:
[admin@MikroTik] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   192.168.10.1/24    192.168.10.0    192.168.10.255  ether1
 1   172.23.128.3/29    172.23.128.0    172.23.128.7    Hannes-Link 1
 2   172.23.128.9/30    172.23.128.8    172.23.128.11   Thys-Link 1
[admin@MikroTik] /ip address>
[admin@MikroTik] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 172.23.128.1         1        Ha..
 1 ADC  172.23.128.0/29    172.23.128.3                           0        Ha..
 2 ADC  172.23.128.8/30    172.23.128.9                           0        Th..
 3 ADC  192.168.10.0/24    192.168.10.1                           0        et..
 4 A S  192.168.11.0/24                    r 172.23.128.10        1        Th..
 5 A S  192.168.12.0/24                    r 172.23.128.10        1        Th..
[admin@MikroTik] /ip route>

router3
[admin@Thys] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   172.23.128.10/29   172.23.128.8    172.23.128.15   Thys-Link 1
 1   192.168.12.1/24    192.168.12.0    192.168.12.255  ether1
 2   172.23.128.13/30   172.23.128.12   172.23.128.15   wlan3
[admin@Thys] /ip address>
[admin@Thys] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 172.23.128.9         1        Th..
 1 ADC  172.23.128.8/29    172.23.128.10                          0        Th..
 2 ADC  172.23.128.12/30   172.23.128.13                          0        wl..
 3 A S  192.168.11.0/24                    r 172.23.128.14        1        wl..
 4 ADC  192.168.12.0/24    192.168.12.1                           0        et..
[admin@Thys] /ip route>
router4:
[admin@LBdeWet] /ip address> print
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   172.23.128.14/30   172.23.128.12   172.23.128.15   wlan1
 1   192.168.11.1/24    192.168.11.0    192.168.11.255  ether1
[admin@LBdeWet] /ip address>
[admin@LBdeWet] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 #      DST-ADDRESS        PREF-SRC        G GATEWAY              DISTANCE IN..
 0 A S  0.0.0.0/0                          r 172.23.128.13        1        wl..
 1 ADC  172.23.128.12/30   172.23.128.14                          0        wl..
 2 ADC  192.168.11.0/24    192.168.11.1                           0        et..
[admin@LBdeWet] /ip route>

I am able to ping and do ntp on 192.168.11.0/24 ,192.168.12.0/24 and 192.168.10.0/24.
I have 2 gateways on my network, so im using mangle rules and routing rules(router1).

router1
[admin@KKT-HS] /ip firewall mangle> print
Flags: X - disabled, I - invalid, D - dynamic
 0 X chain=prerouting action=mark-routing new-routing-mark=Biscuit passthrough=no src-address=198.54.15.0/24

 1   ;;; Emile Home
     chain=prerouting action=mark-routing new-routing-mark=Kit.Kat passthrough=yes src-address=192.168.4.0/24 in-interface=bridge1

 2   ;;; Hannes Home
     chain=prerouting action=mark-routing new-routing-mark=Kit.Kat passthrough=yes src-address=192.168.10.0/24 in-interface=bridge1

 3   ;;; LB de Wet Home
     chain=prerouting action=mark-routing new-routing-mark=Kit.Kat passthrough=yes src-address=192.168.11.0/24 in-interface=bridge1

 4   ;;; Trok Afdeling
     chain=prerouting action=mark-routing new-routing-mark=Kit.Kat passthrough=yes src-address=192.168.12.0/24 in-interface=bridge1

 5   ;;; Derick Home
     chain=prerouting action=mark-routing new-routing-mark=Kit.Kat passthrough=yes src-address=192.168.13.0/24 in-interface=bridge1
[admin@KKT-HS] /ip firewall mangle>
[admin@KKT-HS] /ip route rule> print
Flags: X - disabled, I - inactive
 0   ;;; Hannes Home
     src-address=192.168.10.0/24 routing-mark=Kit.Kat action=lookup table=Kit.Kat

 1   ;;; LB de Wet Home
     src-address=192.168.11.0/24 routing-mark=Kit.Kat action=lookup table=Kit.Kat

 2   ;;; Emile Home
     src-address=192.168.4.0/24 routing-mark=Kit.Kat action=lookup table=Kit.Kat

 3   ;;; KKT Trok afdeling
     src-address=192.168.12.0/24 routing-mark=Kit.Kat action=lookup table=Kit.Kat

 4   ;;; Derick Home
     src-address=192.168.13.0/24 routing-mark=Kit.Kat action=lookup table=Kit.Kat
[admin@KKT-HS] /ip route rule>
thanx for the help
 
User avatar
kameelperdza
Member
Member
Topic Author
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: Want to setup router1 as ntp server on network

Wed Mar 10, 2010 3:09 pm

I have followed the example on http://wiki.mikrotik.com/wiki/OSPF-examples

Now i am able to ping ntp server(rb750g), The firewall logs shows that the link is active(port 123) but stil does not update the clock.

Im also getting is ospf info alerts in my logs.
Discarding Hello packet: mismatch in network mask
mine=255.255.255.252
remote=255.255.255.248
source=172.23.128.10
Someone told me to use 172.23.128.0/24 over my whole network.
So the links between routers run on 172.23.128.1/29 and 172.23.128.3/30 etc.

I realy hope i get a reply

Who is online

Users browsing this forum: Bing [Bot], Huy0880 and 144 guests