What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Give an DHCP static ip address a custom gateway?

mikeput

New Around Here
How can I a static ip address assignment a custom gateway instead of the default 192.168.0.1

I use a DHCP server on my network on Asus Merlin, I need to give the a certain device that can only be given an ip via DHCP (Roku) an ip and a different gateway to go off to a different ISP, is this possible?
 
Worked it out:

dhcp-mac=red,<MACADDRESS>
dhcp-option = net:red, option:router, 192.168.0.254
dhcp-option = net:red, 6, 8.8.8.8,8.8.4.4
 
Worked it out:

dhcp-mac=red,<MACADDRESS>
dhcp-option = net:red, option:router, 192.168.0.254
dhcp-option = net:red, 6, 8.8.8.8,8.8.4.4

Hi Mike, how exactly do you add those commands pls clarify the exact steps?
Thanks
Nik
 
Being this thread is over a year old Mike may not reply.
I didn't go all the way but on my AC1900P I went to
LAN then DHCP tab and at the bottom of that page is "manual assign".

Joe
 
Hi nstap,

Came across your post while at work, and I remember when I was seeking out something similar for my IP cam last year, what you are looking for is dnsmasq which controls the dhcp & dns on linux boxes or custom set-up's in the OP case.

here's a couple link's to get you started with documentation, hope it help's.

Best,
Davi

https://github.com/RMerl/asuswrt-me...dicated-DHCP-options-bind-to-a-specific-SSID?

https://www.linux.com/learn/intro-to-linux/2018/2/dns-and-dhcp-dnsmasq

https://www.linux.com/learn/intro-to-linux/2018/2/advanced-dnsmasq-tips-and-tricks
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top