[vox-tech] dhcp question

Peter Jay Salzman vox-tech@lists.lugod.org
Mon, 5 Aug 2002 23:39:16 -0700


this is the first time i've ever done anything with dhcp.  please regard
me as a newbie here.

from reading the man page, it sounds like:

   pump -i eth0

or

   pump -i eth0 -l 120   (for 120 hours)

will get an IP assigned to a machine.  right?   does this also configure
DNS servers?   will it also take care of the default gateway?


==============================================================

in /etc/networks/interface (debian), i'm thoroughly confused by the man
page:


   The dhcp Method
       This method may be used to obtain an address via DHCP with
       any  of the tools: dhclient, pump (Linux 2.2.x and newer),
       udhcpc (Linux 2.2.x and newer), or dhcpcd. If you  have  a
       complicated  DHCP setup you should note that some of these
       clients use their own  configuration  files,  rather  than
       obtaining their configuration via ifup.

       Options

              hostname hostname
                     Hostname  to  be  requested  (pump,  dhcpcd,
                     udhcpc)

              leasehours leastime
                     Preferred lease time in hours (pump)

              leasetime leasetime
                     Preferred lease time in seconds (dhcpcd)

              vendor vendor
                     Vendor class identifier (dhcpcd)

              client client_id
                     Client identifier (dhcpcd, udhcpc)

two questions:

1.  how does ifup know which dhcp client to use?   what if for some
   reason i *really* wanted to use pump?   or dhcpd?   how can i specify
   one or the other?

2. are all these options "really" optional?  could a valid "working"
   stanza be as simple as:


      iface eth0 inet dhcp


   and would "ifup eth0" do everything for me from this one line?

pete

-- 
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D