Page MenuHomeVyOS Platform

IPv6 PBR doesn't allow setting of an egress interface
Closed, ResolvedPublicFEATURE REQUEST

Description

When setting up an IPv6 route with a link local address as the gateway you need to specify the egress interface as the address on it's own is not enough information. Normally vyos allows you to do this with something like

set protocols static route6 ::/0 next-hop fe80::11 interface eth0

However when doing PBR you can get here

set protocols static table 1 route6 ::/0 next-hop fe80::11

and then the only allowed options are disable and distance. The interface option is no longer allowed even though it's required in this instance. Running the command as is sets the egress to lo which effectively creates a blackhole.

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-beta-202107121144
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Scoopta updated the task description. (Show Details)

For first we have to solve this bug T3689

Viacheslav changed the subtype of this task from "Bug" to "Feature Request".Wed, Jul 21, 11:52 AM

To reproduce, without the "interface" option

set protocols static table 1 route6 ::/0 next-hop fe80::11
commit

vyos@r4-1.3# run show ipv6 route table 1 | match 0
S>* ::/0 [1/0] via fe80::11, lo, weight 1, 00:01:26
[edit]
vyos@r4-1.3#

PR https://github.com/vyos/vyatta-cfg-quagga/pull/85

set protocols static table 1 route6 ::/0 next-hop fe80::11 interface eth0
commit

vyos@r4-1.3# run show ipv6 route table 1 | match "0"
S>* ::/0 [1/0] via fe80::11, eth0, weight 1, 00:02:51
[edit]
vyos@r4-1.3#
Viacheslav claimed this task.

Will be available in the next 1.3 beta release.