Page MenuHomeVyOS Platform

Allow route-map to set administrative distance
Closed, ResolvedPublicFEATURE REQUEST

Description

Hi,

We would like the ability to construct route maps to selectively apply an administrative distance to prefixes we receive. OSPF installs routes with a distance of 110 by default whilst BGP uses a default distance of 200. We have enabled MPLS label distribution and can subsequently install prefixes which target remote exits from our network.

Herewith a simple example:
VyOS configured to use OSPF as the interior gateway protocol (igp) to install a default gateway via directly connected next hop. OSPF only distributes loop back addresses and the network paths necessary to reach them, the default gateway subsequently has an administrative distance of 110. MPLS labels are exchanged via LDP so we wish to distribute additional default gateways via BGP targeting recursive next-hops where MPLS labels will then deliver those packets through the network to those remote gateways.

We would essentially like to either change the OSPF distance, only for the default gateway, from 110 to 210 so that the BGP default gateway takes precedence or reduce the BGP default gateway distance to 100.

FRRouting natively supports route-map rules that 'set distance' so it was trivial to enable this in VyOS. Opening the request so that it can be tied to a proposed patch.

Regards
David Herselman

Details

Version
1.2+
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

I've attached a simple patch to expose FRRouting's built-in capability of being able to set a prefix's local administrative distance to VyOS.

bbs2web changed the task status from Open to Needs testing.Jan 20 2020, 2:46 PM
bbs2web triaged this task as Normal priority.
bbs2web edited a custom field.
bbs2web changed Version from - to 1.2+.
syncer closed this task as Unknown Status.Mar 28 2020, 12:04 PM
syncer assigned this task to jestabro.
syncer moved this task from Need Triage to Backport Candidates on the VyOS 1.3 Equuleus board.
jestabro changed the task status from Unknown Status to Resolved.Aug 8 2020, 3:46 PM
jestabro moved this task from Backport Candidates to Finished on the VyOS 1.3 Equuleus board.
erkin set Issue type to Feature (new functionality).Aug 31 2021, 5:52 PM
erkin changed Issue type from Feature (new functionality) to Unspecified (please specify).