There was a problem with dhcp-server in listen-address when adding an IP address whose interface has vrf.
vyos@vyos# set service dhcp-server listen-address 10.1.1.1 [edit] vyos@vyos# commit listen-address "10.1.1.1" not configured on any interface [[service dhcp-server]] failed Commit failed [edit] vyos@vyos#
If commit listen-address to the IP address of the interface without vrf, everything is commited.
Configuration:
set interfaces ethernet eth0 address '192.168.122.122/24' set interfaces ethernet eth1 address '172.16.100.1/24' set interfaces ethernet eth2 address '10.1.1.1/30' set interfaces ethernet eth2 vrf 'DHCP' set protocols static route 10.1.10.0/24 interface eth2 vrf 'DHCP' set service dhcp-server shared-network-name PROV1 subnet 172.16.100.0/24 default-router '172.16.100.1' set service dhcp-server shared-network-name PROV1 subnet 172.16.100.0/24 static-mapping PC1 ip-address '172.16.100.2' set service dhcp-server shared-network-name PROV1 subnet 172.16.100.0/24 static-mapping PC1 mac-address '00:50:79:66:68:00' set service dhcp-server shared-network-name PROV2 subnet 10.1.10.0/24 default-router '10.1.10.1' set service dhcp-server shared-network-name PROV2 subnet 10.1.10.0/24 name-server '1.1.1.1' set service dhcp-server shared-network-name PROV2 subnet 10.1.10.0/24 range 1 start '10.1.10.10' set service dhcp-server shared-network-name PROV2 subnet 10.1.10.0/24 range 1 stop '10.1.10.20' set vrf name DHCP protocols static route 10.1.10.0/24 next-hop 10.1.1.2 set vrf name DHCP table '1000'
This problem is on the forum:
https://forum.vyos.io/t/listen-address-not-configured-on-any-interface/9549