URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 57891
[ Назад ]

Исходное сообщение
"Как отказаться от default роута в dhclient'е?"

Отправлено hawklion , 04-Июл-05 02:23 
Интерфейс получает свою конфигурацию по DHCP посредством dhclient'а. Как отказаться принимать какой либо default gateway от DHCP сервера, который тот настойчиво сует?

Содержание

Сообщения в этом обсуждении
"Как отказаться от default роута в dhclient'е?"
Отправлено jonatan , 04-Июл-05 09:02 
man dhclient.conf
...
       There  is  a variety of data contained in offers that DHCP servers send
       to DHCP clients.  The data that can be specifically requested  is  what
       are called DHCP Options.  DHCP Options are defined in
        dhcp-options(5).

       The request statement

        request [ option ] [, ... option ];

       The  request  statement  causes  the  client to request that any server
       responding to the client send the client its values for  the  specified
       options.    Only  the  option  names should be specified in the request
       statement - not  option  parameters.    By  default,  the  DHCP  server
       requests  the  subnet-mask,  broadcast-address,  time-offset,  routers,
       domain-name, domain-name-servers, host-name,  nis-domain,  nis-servers,
       and ntp-servers options.

       In some cases, it may be desirable to send no parameter request list at
       all.   To do this, simply write the request statement  but  specify  no
       parameters:

            request;
...

Не включайте в этот список routers.