How add 2 gateways in DHCP server?


How add 2 gw in DHCP server?

WBR, Straga

Hi @Af_Straga please try and let us know the results:

db dhcp show
db dhcp setprop eth1 DhcpGatewayIP, 
signal-event nethserver-dnsmasq-update

Do you need that clients receive two default gateways instead of one?
Could you try to set them like this?

db dhcp setprop enp0s3 DhcpGatewayIP,

Substitute enp0s3 with your interface (you could press TAB to auto-complete) and the two comma-separated ip addresses.

service dnsmasq restart

Please, let me know, as we could relax the interface validation.

UPDATE: I tested it and it works as expected.

@Af_Straga could you explain whare are the use cases for having 2 gateways?

Thank you! happy New Year!