Page MenuHomeVyOS Platform

Static ARP is not applied on boot
Closed, ResolvedPublicBUG

Description

VyOS 1.3-rolling built on 2020-03-19

Simple setup:

set protocols static arp 23.23.23.2 hwaddr '0c:c4:7a:93:c7:8a'
set protocols static arp 24.24.24.2 hwaddr '0c:c4:7a:93:c7:8b'

At boot-up (and after an attempt at TRex trying to use them):

vyos@vyos:~$ arp -a
? (24.24.24.2) at <incomplete> on eth2
_gateway (10.21.21.1) at 00:00:5e:00:01:15 [ether] on eth0
ec2-23-23-23-2.compute-1.amazonaws.com (23.23.23.2) at <incomplete> on eth1
vyos@vyos:~$

To fix:

delete protocols static arp
commit
set protocols static arp 23.23.23.2 hwaddr '0c:c4:7a:93:c7:8a'
set protocols static arp 24.24.24.2 hwaddr '0c:c4:7a:93:c7:8b'
commit

After:

vyos@vyos# arp -a
? (24.24.24.2) at 0c:c4:7a:93:c7:8b [ether] PERM on eth2
_gateway (10.21.21.1) at 00:00:5e:00:01:15 [ether] on eth0
ec2-23-23-23-2.compute-1.amazonaws.com (23.23.23.2) at 0c:c4:7a:93:c7:8a [ether] PERM on eth1

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Unknown Object (User) added a subscriber: Unknown Object (User).Mar 20 2020, 5:28 PM
This comment was removed by Viacheslav.

If you comment out this line, arp after reboot doesn't lose.

https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/arp.py#L77

# if c[ip_addr] != c_eff_cnf[ip_addr] and c[ip_addr] != None:
Viacheslav changed the task status from Open to Needs testing.Jun 17 2020, 7:01 AM

In the latest rolling, I don't see this bug.

VyOS 1.3-rolling-202006170117

set protocols static arp 10.0.0.2 hwaddr 'aa:bb:cc:aa:bb:cc'
set protocols static arp 10.0.0.3 hwaddr 'bb:cc:dd:bb:cc:dd'

After reboot all works fine

vyos@r-roll:~$ sudo arp -an
? (10.0.0.3) at bb:cc:dd:bb:cc:dd [ether] PERM on eth0
? (192.168.122.1) at 52:54:00:52:8b:fd [ether] on eth0
? (10.0.0.2) at aa:bb:cc:aa:bb:cc [ether] PERM on eth0

@kroy Can you confirm?

The boot config load mechanism has been changed by @jestabro which possibly led to resolution of this bug

kroy claimed this task.
kroy moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.

Can confirm. This bug is corrected in the the latest rollings (for at least a month or more)

erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 5:16 PM