Community discussions

MikroTik App
 
miguelgoncalves
just joined
Topic Author
Posts: 11
Joined: Tue Jul 19, 2011 12:43 am

Missing network route

Mon Aug 22, 2011 12:47 pm

Hi all!

I have 2 RB450G boards: one at my company and one at home (both RouterOS 4.14).

Recently, I switched ISPs at home and my RB450G is not getting the proper DHCP configuration.

I am getting an IP address from the range 188.x.y.z while my default gateway is 194.65.a.b. RouterOS is not creating the proper network route to reach 194.65.a.b. It only creates the 0.0.0.0/0 route that points to 194.65.a.b.

In my company, in a similar setup, my router sets up the following routes correctly:
[admin@firewall] > 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        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          84.92.37.1         1
(...)
22 ADC  10.0.254.0/24      10.0.254.254    GONAFEnet          0
23 ADC  84.92.37.0/22      84.92.37.25     Cabovisao          0
What am I doing wrong?

How can I debug this?

BTW, swapping the 450G by my MacBook I get a working connection.

Thanks in advance!

Cheers,
Miguel
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Missing network route

Wed Aug 24, 2011 11:31 am

0 ADS  0.0.0.0/0                          84.92.37.1         1
That is what you get from ISP DHCP server. /ip dhcp-client set <0> add-default-gateway=yes sets default gateway from DHCP-client. You can disable DHCP client and use static IP addressing, but I guess you need to contact ISP to clarify why you get wrong IP address.
 
miguelgoncalves
just joined
Topic Author
Posts: 11
Joined: Tue Jul 19, 2011 12:43 am

Re: Missing network route

Wed Aug 24, 2011 3:39 pm

I believe you didn't understand what I wrote.

I have 2 RB450Gs. One of them is working while the other one doesn't create the route to the 194.65.a.b network. It just creates

0.0.0.0/0 ----- routed to -----> 194.65.3.54 (for example)

and it doesn't create the route to get to the 194.65 network as my IP is 188.x.y.z.

This setup works fine with a MacOS X laptop but with Mikrotik it does not.

I am setting Mikrotik's dhcp-client add-default-route option to yes obviously and it adds the default route. But since this gateway is not on the side side of the "cable" it can't reach it.

Hope this helps.

If necessary I will pay for a license from Mikrotik to get this resolved.

Thanks!

Cheers,
Miguel
Hi all!

I have 2 RB450G boards: one at my company and one at home (both RouterOS 4.14).

Recently, I switched ISPs at home and my RB450G is not getting the proper DHCP configuration.

I am getting an IP address from the range 188.x.y.z while my default gateway is 194.65.a.b. RouterOS is not creating the proper network route to reach 194.65.a.b. It only creates the 0.0.0.0/0 route that points to 194.65.a.b.

In my company, in a similar setup, my router sets up the following routes correctly:
[admin@firewall] > 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        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          84.92.37.1         1
(...)
22 ADC  10.0.254.0/24      10.0.254.254    GONAFEnet          0
23 ADC  84.92.37.0/22      84.92.37.25     Cabovisao          0
What am I doing wrong?

How can I debug this?

BTW, swapping the 450G by my MacBook I get a working connection.

Thanks in advance!

Cheers,
Miguel
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Missing network route

Wed Aug 24, 2011 3:48 pm

Yes, you are right maybe I didn't understand you correctly.
But,
0.0.0.0/0 ----- routed to -----> 194.65.3.54 (for example)
and it doesn't create the route to get to the 194.65 network as my IP is 188.x.y.z.
That is route router gets from DHCP server. MikroTik Router (DHCP-client) has no control of ISP DHCP server.
I am getting an IP address from the range 188.x.y.z while my default gateway is 194.65.a.b. RouterOS is not creating the proper network route to reach 194.65.a.b
Something is wrong on DHCP server configuration. DHCP client is not going to create any custom route to unknown network. It creates default-gateway as DHCP-server gives it.
In 95% DHCP server is working within one broadcast domain and DHCP server is directly reachable (without custom routes).

Contact your ISP for help!

Who is online

Users browsing this forum: Bing [Bot], CGGXANNX, nescafe2002 and 69 guests