특정 IP의 DHCP 응답을 거부하는 방법이 있습니까?

특정 IP의 DHCP 응답을 거부하는 방법이 있습니까?

내 네트워크에는 두 개의 DHCP 서버가 있습니다(내 잘못이 아님). 특정 DHCP 서버에서 오는 DHCP 응답을 거부하는 방법이 있습니까?

답변1

맨페이지 에 따르면 파일 에 지시문 dhclient.conf을 추가하면 원하는 작업을 수행할 수 있습니다.reject/etc/dhcp/dhclient.conf

   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.

하지만 맨페이지의 설명을 참고하세요. 잘못된 DHCP 서버를 추적하여 수정하는 것이 더 좋습니다.

관련 정보