0

I have a router whose WAN Gateway I want to modify, without other routers in the network being affected. I want to test how the network behaves if I change the gateway for only one router.

How could I perform this inside the /etc/dhcp/dhcp.conf file?

  • 1
    1) stateless, 2) it's not a static address, it's a DHCP reservation – Jacob Evans Nov 7 '17 at 12:40
1

I've found the answer (not explicitly) in the documentation: http://www.isc.org/wp-content/uploads/2014/08/DHCP-4.3.1-Distribution-Documentation-Aug-4-14.pdf , page 22.

There we can see how parameters can be declared (not only "hardware ethernet" or "fixed-address", as we have been always been doing) and figured out that the string needed for this option to work is option routers 10.0.0.2;

So finally, this is the complete answer:

host MyClient {
        hardware ethernet d8:b6:b7:40:76:12;
        fixed-address 10.0.0.200;
        option routers 10.0.0.2;
}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.