Page MenuHomeVyOS Platform

cannot set vrrp virtual-address with /31 mask when router uses networkaddress.
Closed, ResolvedPublic

Description

cannot set vrrp virtual-address with /31 mask when router uses networkaddress.

[edit high-availability vrrp group v999-GROUP]
[email protected]# set virtual-address 192.168.99.2/31

  Virtual address must be a valid IPv4 or IPv6 address with prefix length (e.g. 192.0.2.3/24 or 2001:db8:ff::10/64)
  Value validation failed
  Set failed

[email protected]# set virtual-address 192.168.99.3/31
[edit high-availability vrrp group v999-GROUP]

[email protected]# show
+interface eth2.999
+priority 116
+virtual-address 192.168.99.3/31
+vrid 12

[edit high-availability vrrp group v999-GROUP]
[email protected]# commit
[ high-availability vrrp ]
Reloading the VRRP process

this seems to work in vyos 1.3 nightly, as it should

Details

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

Event Timeline

olofl created this object in space S1 VyOS Public.
Viacheslav changed the task status from Open to Confirmed.Apr 12 2021, 12:42 PM
Viacheslav changed the task status from Confirmed to In progress.Oct 30 2021, 9:51 AM
Viacheslav claimed this task.

PR for crux https://github.com/vyos/vyos-1x/pull/1057

[email protected]:~$ show conf com | match vrrp
set high-availability vrrp group GRP02 hello-source-address '203.0.113.1'
set high-availability vrrp group GRP02 interface 'eth1.50'
set high-availability vrrp group GRP02 no-preempt
set high-availability vrrp group GRP02 priority '150'
set high-availability vrrp group GRP02 rfc3768-compatibility
set high-availability vrrp group GRP02 virtual-address '192.168.99.2/31'
set high-availability vrrp group GRP02 vrid '10'
[email protected]:~$ show interfaces vrrp 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth1.50v10       192.168.99.2/31                   u/u  
[email protected]:~$