el 09-26-2023 09:14 PM
Hello community,
I have a router with hostname BANK, I have 2 segments 192.168.10.0/24 and 192.168.20.0/24 that are learned from 10.10.10.2 by ospf.
but the segments must be learned by neighbor 20.20.20.2,
They are learned on both sides, but 10.10.10.2 sends with a metric of 1, so it has a better preference.
How could my router with hostname BANCO stop receiving segments 192.168.10.0/24 and 192.168.20.0/24 from its neighbor 10.10.10.2?
please your kind help
¡Resuelto! Ir a solución.
el 09-26-2023 10:51 PM
I send you message check it
09-26-2023 09:53 PM - editado 09-26-2023 10:05 PM
Hello @Electronic20,
You could do one of these two methods:
-1- Set a specific OSPF cost for the neighbor 10.10.10.2 higher than the cost towards 20.20.20.2.
router ospf <process_id>
neighbor 10.10.10.2 cost <higher_cost_value>
-2- Use an access list to deny OSPF routes from 10.10.10.2. Apply that ACL under OSPf process to filter routes from 10.10.10.2.
access-list <acl_number> deny <ip>
access-list <acl_number> permit any
router ospf <process_id>
distribute-list <acl_number> in <interface>
el 09-26-2023 10:28 PM
Hi M02@rt37 ,
I got confused on an IP, I show the configuration:
router ospf 10
router id 1.1.1.1
interface vlan 10
ip add 10.10.10.3 255.255.255.0
ip ospf 10 area 0
neighbor 1: 10.10.10.1
neighbor 2: 10.10.10.2
network 192.168.10.0/24 and network 192.168.20.0/24 learn of 10.10.10.1 have cost 1
but, the 192.168.10.0/24 and 192.168.20.0/24 must be learned by the neighbor 10.10.10.2
In that scenario, how could these routes be learned by 10.10.10.2?
I can't modify that configuration:
router ospf <process_id>
neighbor 10.10.10.2 cost <higher_cost_value>
and If I apply the second option it would modify both neighbors
access-list <acl_number> deny <ip>
access-list <acl_number> permit any
router ospf <process_id>
distribute-list <acl_number> in <interface>
your kind support
09-26-2023 10:42 PM - editado 09-26-2023 10:44 PM
Have you got a draw of your topology?
In your first post you talk about neighbor 20.20.20.2 ? 10.10.10.2 in fact? Neighbor 10.10.10.1 and .2 are then throught the same interface ?
el 09-26-2023 10:54 PM
el 09-26-2023 11:00 PM
Thanks @Electronic20,
On SW-L3-3 interface vlan 10 add ip ospf cost 50 command.
This command allows you to manually override this automatic calculation and set a specific cost for the OSPF interface. This can be useful for influencing OSPF route selection without changing the actual bandwidth of the interface.
el 09-26-2023 11:09 PM
but it would affect SW L3-2 and SW L3-3 on routes 192.168.10.0/24 and 192.168.20.0/24
el 09-26-2023 10:51 PM
I send you message check it
el 09-26-2023 10:53 PM
You could use ip ospf cost command on the interface's remote router.
el 11-29-2023 09:45 PM
Hello @Electronic20
Great you find the issue ! Possible to share the solution on a post ? That could help others...
Thanks a lot.
el 11-30-2023 05:50 AM
Hello M02@rt37
The solution I wanted was not found.
The scenario had to be changed taking a point to multipoint scenario.
el 11-30-2023 05:55 AM
Thanks for you feedback.
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros
Navegue y encuentre contenido personalizado de la comunidad