
En mi red tengo dos servidores DHCP (no es mi culpa). ¿Existe alguna forma de rechazar una respuesta dhcp proveniente de un servidor dhcp específico?
Respuesta1
Según la dhclient.conf
página de manual, debería ser posible hacer lo que quieras agregando una reject
directiva al /etc/dhcp/dhclient.conf
archivo
reject cidr-ip-address [, ... cidr-ip-address ] ;
The reject statement causes the DHCP client to reject offers from
servers whose server identifier matches any of the specified hosts or
subnets. This can be used to avoid being configured by rogue or mis‐
configured dhcp servers, although it should be a last resort - better
to track down the bad DHCP server and fix it.
.
.
.
reject 192.168.0.0/16, 10.0.0.5;
The above example would cause offers from any server identifier in the entire
RFC 1918 "Class C" network 192.168.0.0/16, or the specific single address
10.0.0.5, to be rejected.
Sin embargo, tenga en cuenta el comentario en la página de manual: es mejor localizar el servidor DHCP defectuoso y solucionarlo.