The relay agent IP address changed only after rebooting the "VyOS" system. I've noticed it on version 1.4-rolling-202208010217.
The issue makes a problem if you need to change "dhcp ip pool" on your interface.
To repeat the scenario, I've used the configuration:
dhcp server (vyos 1.4)
set interfaces ethernet eth7 address '172.17.17.5/24' set protocols static route 10.0.0.0/16 next-hop 172.17.17.6 set service dhcp-server shared-network-name X subnet 10.0.5.0/24 default-router '10.0.5.1' set service dhcp-server shared-network-name X subnet 10.0.5.0/24 lease '8000' set service dhcp-server shared-network-name X subnet 10.0.5.0/24 range 0 start '10.0.5.5' set service dhcp-server shared-network-name X subnet 10.0.5.0/24 range 0 stop '10.0.5.50' set service dhcp-server shared-network-name Y subnet 10.0.0.0/24 default-router '10.0.0.1' set service dhcp-server shared-network-name Y subnet 10.0.0.0/24 lease '8000' set service dhcp-server shared-network-name Y subnet 10.0.0.0/24 range 0 start '10.0.0.5' set service dhcp-server shared-network-name Y subnet 10.0.0.0/24 range 0 stop '10.0.0.50'
dhcp relay (vyos 1.4)
set interfaces ethernet eth7 address '172.17.17.6/24' set interfaces ethernet eth0 address '10.0.0.1/24' or '10.0.5.1/24' set service dhcp-relay interface 'eth0' set service dhcp-relay interface 'eth7' set service dhcp-relay relay-options relay-agents-packets 'discard' set service dhcp-relay server '172.17.17.5'
restart dhcp relay-agent doesn't help.