I have 3 subnets in my vyos router.
Lets say
192.152.15.0/24 GW: 192.152.15.245
192.152.16.0/24 GW: 192.152.16.245
192.152.17.0/24 GW: 192.152.17.245
and the VRouter’s GW should be 192.152.15.254(firewall).
DHCP Service has been set up for all the three networks but I could not define the GW for them.
How do I set up the GW above to all three subnets and to the Vrouter?
I got it.
I forgot to put the default-router.
the answer in my case is:
configure
edit service dhcp-server shared-network-name “NETWORK NAME” subnet 192.152.16.0/24
set default-router 192.152.16.245
commit
save
exit