please help with new MT router setup. Needs streamlined..

Hello all, please forgive my newness to this. I am learning as i go.

I have a full class C of public IPs. lets say 100.101.102.x/24

My gateway Cisco router is at 100.101.102.1
My Primary DNS is at 100.101.102.3
My MT router is at 100.101.102.4

The MT router has 4 NIC interfaces on it. They are:

public gateway - out to the cisco router
office-network - DHCPed network for office PCs.
PTP-B - a wireless PTP to a dial-up POP
PTP-H - a wireless PTP to a wireless POP

Here is the address list for each:

address network broadcast
public gateway 100.101.102.4/24 100.101.102.0 100.101.102.63
office-network 192.168.1.1/24 192.168.1.0 192.168.1.255
PTP-B 100.101.102.129/26 100.101.102.128 100.101.102.191
PTP-H 192.168.2.1/24 192.168.2.0 192.168.2.255

Here is the IP Pool list:

office-network 192.168.1.2 192.168.1.254 - pool for office PCs
PTP-H pool 192.168.2.10 192.168.2.254 - pool for wireless customers

Routes:
DEST GATEWAY PREF SOURCE DIST INTERFACE
AS 0.0.0.0 1001.101.102.4 (blank) 1 public gateway
DAC 100.101.102.0/26 (blank) 100.101.102.4 0 public gateway
DAC 100.101.102.128/26 (blank) 100.101.102.129 0 PTP-B
DAC 192.168.1.0/24 (blank) 100.101.102.129 0 PTP-B
DAC 192.168.2.0/24 (blank) 192.168.2.1 0 PTP-H


As you can see, the dynamic routes are messed up. I do not know how to fix them. Or if I could put in a simple static route for each and delete the dynamic route, that would be fine too.

Please advise,

I know this setup needs work.

Please forgive, all info taken from Winbox screen.

What would help a lot is to be able to change this dynamic route below:

DAC 192.168.1.0/24 (blank) 100.101.102.129 0 PTP-B

The interface needs to be OFFICE-NETWORK instead of PTP-B

I don’t know why it is setup that way.

Please help me fix this.

Thank you.

These are not dynamic routes, they’re routes to directly connected networks.

The issue is that you have an address overlap between your public network and PTP-B. In addition, you have the broadcast address for your public network defined incorrectly.

Public gateway is 100.101.102.4/24 which means that the broadcast address is 100.101.102.255 and not 100.101.102.63

The end result of this will be that the router is very confused about which networks are connected to which interfaces.

Regards

Andrew

Thanks for the tips. Here are my corrections:

ip address print:
#__ADDRESS__________NETWORK_______BROADCAST_______INTERFACE
0 ;;;added by setup
__100.101.102.4/26____100.101.102.0____100.101.102.63____public Gateway
1_100.101.102.129/26__100.101.102.128__100.101.102.191___PTP-B
2_192.168.1.1/24______192.168.1.0______192.168.1.255_____office-network
3_192.168.2.1/24______192.168.2.0______192.168.2.255_____PTP-H

ip route print:
#__DST-ADDRESS______PREF-SRC________G_GATEWAY_______DIS
0 AS
;;; added by setup
______0.0.0.0/0__________________________r_100.101.102.1____1
1 ADC_100.101.102.0/26___100.101.102.4______________________0
2 ADC_100.101.102.128/26_100.101.102.129____________________0
3 ADC_192.168.1.0/24_____100.101.102.129____________________0
4 ADC_192.168.2.0/24_____192.168.2.1________________________0


As you can see, to me it looks like the pref-src for #3 is wrong. Shouldn’t it be 192.168.1.1? Again, there are 4 NICs on this machine.

Would someone please help me out with this? I found this post:

http://forum.mikrotik.com/t/dynamic-routes-and-preferred-source/9448/1

It seems that the “pref source” might be a possible bug in the software.

Has anyone dealt with this before? I need to have it fixed.

What version are you running? If not current then upgrade.

What happens to these routes when you reboot the router?

Do you have bridging setup on any interfaces?

Anything else you haven’t told us that might be relevant?

If all else fails, reset to a default configuration and add the IP addresses to the ethernet interfaces and see what the routing table looks like. Then add the rest of your config in line by line until the routing table breaks.

Regards

Andrew

What version are you running? If not current then upgrade. 2.943

What happens to these routes when you reboot the router? nothing. Same thing

Do you have bridging setup on any interfaces? no bridges at all.

Anything else you haven’t told us that might be relevant? I can’t think of anything. I will tell you this. When I changed the gateway for :

office-network 192.168.1.1/24 192.168.1.0 192.168.1.255 this one

then this ip range below gets routed through the office-network gateway.
PTP-B 100.101.102.129/26 100.101.102.128 100.101.102.191

That is b/c Mikrotik put them on the same interface, when they are not in reality.

Thanks for the tips,

jakkwb

Anyone care to tell me why the above is happening?

How can that broacast be so? Shouldn’t it be 100.101.102.191?

Actually, I have my main group of IPs split into 4 subnets. It is a class A address subnetted into class C.

Those are not the real IP numbers.

Thank you.

I remember something like this. But it was fixed long time ago by MT. I suggest you to upgrade to latest version. Probably you are running unfixed version.