[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] serveur dhcp



"Alain Barthélemy" wrote:

> 
> J'ai attribué à mon fixe l'adresse 192.168.0.1
> 
> option domain-name
> option domaine-name-server  # je suppose que je commente les 2 lignes

Ben de preference, non. ftp://cco.cisco.com/pub/rfc/RFC/rfc1533.txt:

3.8. Domain Name Server Option

   The domain name server option specifies a list of Domain Name System
   (STD 13, RFC 1035 [8]) name servers available to the client.  Servers
   SHOULD be listed in order of preference.

   The code for the domain name server option is 6.  The minimum length
   for this option is 4 octets, and the length MUST always be a multiple
   of 4.

    Code   Len         Address 1               Address 2
   +-----+-----+-----+-----+-----+-----+-----+-----+--
   |  6  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
   +-----+-----+-----+-----+-----+-----+-----+-----+--
> 
> je suppose que je dois remplacer par:
> 
> subnet 192.168.0.1 netmask 255.255.255.0 {

Non: subnet 192.168.0.0 netmask 255.255.255.0 {

(.0, pas .1)


>         range 192.168.0.10 192.168.0.20;
>         option broadcast-address 192.168.0.255;
>         option routers prelude fugue.com;  #ici je coince, je dois comprendre la
>                                          #fonction du router
>          }

ftp://cco.cisco.com/pub/rfc/RFC/rfc1533.txt:

3.5. Router Option

   The router option specifies a list of IP addresses for routers on the
   client's subnet.  Routers SHOULD be listed in order of preference.

   The code for the router option is 3.  The minimum length for the
   router option is 4 octets, and the length MUST always be a multiple
   of 4.

    Code   Len         Address 1               Address 2
   +-----+-----+-----+-----+-----+-----+-----+-----+--
   |  3  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
   +-----+-----+-----+-----+-----+-----+-----+-----+--

'wala.

	fred

-- 
------------------------- * oOo * -------------------------
                     Frederic Detienne
              Cisco Systems Escalation Engineer
                 Security & Network Services

                     Tel 32 2 704 55 55

[ linux-team@rtfm.be and linux@lists.linuxbe.org in ONE :)         ]
[ To subscribe or unsubscribe, go to http://linuxbe.org/ml.php     ]
[ http://LinuxBe.org - http://OpenBe.net - listmaster@linuxbe.org  ]