Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

Sophos XGS OSPF

Hi all,

I'm using OSPF but don’t want to redistribute all routes. On Cisco, I would probably use a route map to filter which routes need to be advertised. Here with XGS, I have unchecked "Redistribute connected" and "Redistribute static." I’m using the "network" statement to explicitly select subnets that need to be advertised, which works fine for directly connected subnets.

Now, I need to advertise one of my static routes. I tried adding a network statement for the static route that needs to be advertised, but it seems that the "network" statement only applies to directly connected routes, as it’s not working.

Any idea how to advertise only one of my static route ?



Added TAGs
[edited by: Raphael Alganes at 3:45 PM (GMT -7) on 31 Oct 2024]
  • Hi  , 

    Selected redistribution of static routes into OSPF can be achieved by enabling redistrubution of static routes with a route-map.  The configuration is to be done via the CLI. 

    A sample config that would redistribute only the static route to destination 5.5.5.0/24 would be : 

    router ospf

      ospf router-id 27.27.27.27

      log-adjacency-changes

      redistribute static route-map abc

      network 27.27.27.0/24 area 0.0.0.0

    exit

    !

    access-list acl1 seq 5 permit 5.5.5.0/24

    !

    route-map abc permit 5

      match ip address acl1

    exit

    With the above config, even when multiple static routes are configured in the system, only the route to 5.5.5.0/24 would be redistributed into the OSPF domain. 

    Thanks,