Routing Btw subnets same router

Hello everyone.

After search 4 hours in internet and try different approach.

I put my case here thanks by your answers.

My case.

I have one router with BGP working but i decided create two networks instead put all in a bridge.

Internet <-> 38.x.x.1(Eth1) <-> 38.x.x.2 (Server 1)
Internet <-> 38.x.x.9(Eth2) <-> 38.x.x.10 (Server 2)
Actaully I can make:
ping from Server 1 to Eth2
ping from Server 2 to Eth1

But I can't make Ping btw Servers.

This is my routes

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 ADb 0.0.0.0/0 190.107.30.182 20
1 ADC 38.x.x.0/23 38.x.x.1 ether1 0
2 ADC 38.x.x.8/30 38.x.x.9 ether2 0
3 ADC 190.x.x.176/28 190.x.x.183 sfp-sfpplus1 0

What i missing.

Thanks.

What you are missing is that from the perspective of Server 1, the addres of Server 2 (38.x.x.10) is within its own subnet (38.x.x.0/23). So when it wants to send a packet to it, it sends an ARP request “who has 38.x.x.10”, but since Server 2 is in another L2 segment, the ARP request does not reach it so it cannot respond.

There are multiple ways to fix that, which may or may not be acceptable for you depending on other circumstances:

  • you can change the subnet mask of 38.x.x.2 (on the server) and 38.x.x.1 (on the router) from /23 to /30; doing so will make Server 1 use a gateway (38.x.x.1) when sending the packet to 38.x.x.10 rather than attempting to send it directly
  • you can make the router respond with its own MAC address to the ARP requests for 38.x.x.10 coming from Server 1 using the /ip arp add published=yes interface=ether1 address=38.x.x.10 command
  • you can add a route to 38.x.x10 via 38.x.x.1 to the routing table of server 1