sdhcp

simple dhcp client
git clone git://git.2f30.org/sdhcp
Log | Files | Refs | LICENSE

sdhcp.1 (986B)


      1 .Dd April 27, 2015
      2 .Dt SDHCP 1
      3 .Os
      4 .Sh NAME
      5 .Nm sdhcp
      6 .Nd a simple DHCP client
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl d
     10 .Op Fl e Ar program
     11 .Op Fl f
     12 .Op Fl i
     13 .Op Ar interface
     14 .Op Ar client-id
     15 .Sh DESCRIPTION
     16 .Nm
     17 is a simple, tiny DHCP client. It runs until it enters the "Bound"
     18 state, then forks to the background and runs as a daemon to keep
     19 the lease alive.
     20 .Sh OPTIONS
     21 .Bl -tag -width Ds
     22 .It Fl d
     23 don't change DNS in
     24 .Pa /etc/resolv.conf .
     25 .It Fl e Ar program
     26 run
     27 .Ar program .
     28 Variables will be set, see VARIABLES.
     29 .It Fl f
     30 run in foreground.
     31 .It Fl i
     32 don't change interface information such as an IP address.
     33 .El
     34 .Sh VARIABLES
     35 The following variables are set:
     36 .Bl -tag -width Ds
     37 .It Ev SERVER
     38 DHCP IP.
     39 .It Ev DNS
     40 DNS IP.
     41 .It Ev ROUTER
     42 router IP.
     43 .It Ev MASK
     44 network mask.
     45 .It Ev CLIENT
     46 your client IP.
     47 .El
     48 .Sh BUGS
     49 I'm sure there are plenty. It only currently supports a small subset of
     50 DHCP options, and has been untested on larger networks. It ignores most of
     51 the DHCP options it understands.