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.
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.
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.
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).