
Na minha rede tenho dois servidores DHCP (não é culpa minha). Existe uma maneira de recusar uma resposta dhcp proveniente de um servidor dhcp específico?
Responder1
De acordo com a dhclient.conf
página de manual, deve ser possível fazer o que quiser adicionando uma reject
diretiva ao /etc/dhcp/dhclient.conf
arquivo
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.
Observe o comentário na página de manual - é melhor rastrear o servidor DHCP incorreto e corrigi-lo.