Community discussions

MikroTik App
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

How to make use of /32 ips?

Tue Feb 19, 2019 11:59 am

Hello Folks.

I have a MK with a /22 subnet announced.
Bellow that MK, i have several servers, each one on his own vlan.
Each vlan have a /30 configured has follows (This is a example, my IPs are all public):
- 10.0.0.0: Subnet
- 10.0.0.1: Router IP
- 10.0.0.2: Server IP
- 10.0.0.3: Broadcast IP.
Everything works perfectly. I can ping the servers and the servers can ping between them and the internet.
Now, my problem is when i add IPs failover or Subnet Failover to the server...
1st problem: To add a /32 IP, i do this on the router:
/ip route add comment="Failover IP for Server 1" distance=1 dst-address=10.0.1.1/32 gateway=SRV01 pref-src=10.0.0.1
After i configure the IP on the server, i can ping that IP from internet. But... I can't ping it from other vlans. why?

2nd problem: To add a /28, i do this on the router:
/ip route add comment="Failover Subnet for Server 1" distance=1 dst-address=10.0.1.0/28 gateway=SRV01 pref-src=10.0.0.1
On the server i configure all ips has /32.
The problem is that i can't ping the IP's 10.0.1.0 or 10.0.1.15 from internet or other vlans. why? How can i make all the IPs accessible?

Regards
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7054
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to make use of /32 ips?

Tue Feb 19, 2019 12:15 pm

gateway=SRV01 is not a valid configuration on broadcast network.
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

Re: How to make use of /32 ips?

Tue Feb 19, 2019 12:16 pm

That gateway is the vlan interface.
I should put the vlan router ip?
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

Re: How to make use of /32 ips?

Tue Feb 19, 2019 12:40 pm

I got it working. The problem was in my firewall rules.

For your info:
gateway=SRV01 is not a valid configuration on broadcast network.
This configuration works perfectly well because SRV01 is the interface. MK already configure SRV01 has gateway when i add the ip address to that interface.

You can close this thread and mark it has solved
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7054
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to make use of /32 ips?

Tue Feb 19, 2019 1:19 pm

I would still suggest to change from interface to IP address. Even if it works at the moment, it may cause problems in the future. Interface gateway on broadcast network can trigger unexpected behavior.
 
webix
newbie
Topic Author
Posts: 33
Joined: Fri May 04, 2018 3:34 pm

Re: How to make use of /32 ips?

Tue Feb 19, 2019 4:55 pm

Ok.
I've tested like you said, to put the IP address instead of the interface... It doesn't work.
I loose full connection if i put the ip instead of the interface.

Also... what IP should i put?
If i put the interface IP, MK tells me that the subnet is unreachable.
If i put the server IP, MK tells me that the subnet is reachable, but i can't ping or have connection on those IPs.
The only way to get it working is to put the interface for gateway.

Regards

Who is online

Users browsing this forum: No registered users and 25 guests