Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a simple DHCP server running on CentOS 6 with the following configuration:

subnet 192.168.1.0 netmask 255.255.255.0 {
    allow booting;
    allow bootp;
    ddns-update-style none;
    range 192.168.1.100 192.168.1.200;
    option broadcast-address 192.168.1.255;
    option routers 192.168.1.1,192.168.1.2;

There are two routers in my network .1 and .2 connected to the different internet providers and I want DHCP clients to use router .1 by default until it fail and only then allow clients to switch to router .2 by populating metric parameter for each router I have declared in dhcpd config.

This scenario works perfectly with static NIC configuration if you set metric on GW .1 equal to 100 and on GW .2 equal to 200.

The main problem that I have now is that client`s NIC set automatic metric for each GW and switching back and forth between GW .1 and GW .2 periodically.

Is there a way to populate metric for each router specifically through dhcpd on CentOS?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.