Dhcp custom Default gateway

hi pals!
I need to set specific gateway for a host, different from the default all clients get.
Is it possible?
I have add list dhcp_option '3,192.168.10.1' but did not worked.
Any idea?
Thanks

@markab2015, welcome to the community!

:-1: That would do it for all DHCP clients (i.e. change the default).

Yep.

# in /etc/config/dhcp

config host
	option ip '192.168.10.xxx'
	option mac 'xx:xx:xx:xx:xx:xx'
	option name 'xxxxxxxxxxxxx'
	option dns '1'
	option tag 'custom_gtwy'

config tag 'custom_gtwy'
	list dhcp_option '3,192.168.10.1'
1 Like

excelente!!!!
thanks!!!

1 Like