Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/examples/udhcp/udhcpd.conf

    r1765 r2725  
    11# Sample udhcpd configuration file (/etc/udhcpd.conf)
     2# Values shown are defaults
    23
    34# The start and end of the IP lease block
    4 
    5 start       192.168.0.20    #default: 192.168.0.20
    6 end     192.168.0.254   #default: 192.168.0.254
    7 
     5start       192.168.0.20
     6end     192.168.0.254
    87
    98# The interface that udhcpd will use
     9interface   eth0
    1010
    11 interface   eth0        #default: eth0
    12 
    13 
    14 # The maximim number of leases (includes addressesd reserved
    15 # by OFFER's, DECLINE's, and ARP conficts
    16 
    17 #max_leases 254     #default: 254
    18 
    19 
    20 # If remaining is true (default), udhcpd will store the time
    21 # remaining for each lease in the udhcpd leases file. This is
    22 # for embedded systems that cannot keep time between reboots.
    23 # If you set remaining to no, the absolute time that the lease
    24 # expires at will be stored in the dhcpd.leases file.
    25 
    26 #remaining  yes     #default: yes
    27 
     11# The maximum number of leases (includes addresses reserved
     12# by OFFER's, DECLINE's, and ARP conflicts). Will be corrected
     13# if it's bigger than IP lease block, but it ok to make it
     14# smaller than lease block.
     15#max_leases 254
    2816
    2917# The time period at which udhcpd will write out a dhcpd.leases
    3018# file. If this is 0, udhcpd will never automatically write a
    31 # lease file. (specified in seconds)
     19# lease file. Specified in seconds.
     20#auto_time  7200
    3221
    33 #auto_time  7200        #default: 7200 (2 hours)
     22# The amount of time that an IP will be reserved (leased to nobody)
     23# if a DHCP decline message is received (seconds)
     24#decline_time   3600
    3425
     26# The amount of time that an IP will be reserved
     27# if an ARP conflict occurs (seconds)
     28#conflict_time  3600
    3529
    36 # The amount of time that an IP will be reserved (leased) for if a
    37 # DHCP decline message is received (seconds).
     30# How long an offered address is reserved (seconds)
     31#offer_time 60
    3832
    39 #decline_time   3600        #default: 3600 (1 hour)
    40 
    41 
    42 # The amount of time that an IP will be reserved (leased) for if an
    43 # ARP conflct occurs. (seconds
    44 
    45 #conflict_time  3600        #default: 3600 (1 hour)
    46 
    47 
    48 # How long an offered address is reserved (leased) in seconds
    49 
    50 #offer_time 60      #default: 60 (1 minute)
    51 
    52 # If a lease to be given is below this value, the full lease time is
    53 # instead used (seconds).
    54 
    55 #min_lease  60      #defult: 60
    56 
     33# If client asks for lease below this value, it will be rounded up
     34# to this value (seconds)
     35#min_lease  60
    5736
    5837# The location of the leases file
    59 
    60 #lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
     38#lease_file /var/lib/misc/udhcpd.leases
    6139
    6240# The location of the pid file
    63 #pidfile    /var/run/udhcpd.pid #default: /var/run/udhcpd.pid
     41#pidfile    /var/run/udhcpd.pid
    6442
    65 # Everytime udhcpd writes a leases file, the below script will be called.
    66 # Useful for writing the lease file to flash every few hours.
     43# Every time udhcpd writes a leases file, the below script will be called
     44#notify_file            # default: no script
     45#notify_file    dumpleases  # useful for debugging
    6746
    68 #notify_file                #default: (no script)
    69 
    70 #notify_file    dumpleases  # <--- useful for debugging
    71 
    72 # The following are bootp specific options, setable by udhcpd.
    73 
    74 #siaddr     192.168.0.22        #default: 0.0.0.0
    75 
    76 #sname      zorak           #default: (none)
    77 
    78 #boot_file  /var/nfs_root       #default: (none)
    79 
    80 # The remainer of options are DHCP options and can be specifed with the
    81 # keyword 'opt' or 'option'. If an option can take multiple items, such
    82 # as the dns option, they can be listed on the same line, or multiple
    83 # lines. The only option with a default is 'lease'.
    84 
    85 #Examles
    86 opt dns 192.168.10.2 192.168.10.10
    87 option  subnet  255.255.255.0
    88 opt router  192.168.10.2
    89 opt wins    192.168.10.10
    90 option  dns 129.219.13.81   # appened to above DNS servers for a total of 3
    91 option  domain  local
    92 option  lease   864000      # 10 days of seconds
    93 
    94 
    95 # Currently supported options, for more info, see options.c
    96 #opt subnet
    97 #opt timezone
    98 #opt router
    99 #opt timesvr
    100 #opt namesvr
    101 #opt dns
    102 #opt logsvr
    103 #opt cookiesvr
    104 #opt lprsvr
    105 #opt bootsize
    106 #opt domain
    107 #opt swapsvr
    108 #opt rootpath
    109 #opt ipttl
    110 #opt mtu
    111 #opt broadcast
    112 #opt wins
    113 #opt lease
    114 #opt ntpsrv
    115 #opt tftp
    116 #opt bootfile
    117 
     47# The following are bootp specific options
     48# next server to use in bootstrap
     49#siaddr     192.168.0.22    # default: 0.0.0.0 (none)
     50# tftp server name
     51#sname      zorak       # default: none
     52# tftp file to download (e.g. kernel image)
     53#boot_file  /var/nfs_root   # default: none
    11854
    11955# Static leases map
     
    12157#static_lease 00:60:08:11:CE:3E 192.168.0.44
    12258
     59# The remainder of options are DHCP options and can be specified with the
     60# keyword 'opt' or 'option'. If an option can take multiple items, such
     61# as the dns option, they can be listed on the same line, or multiple
     62# lines.
     63# Examples:
     64opt dns 192.168.10.2 192.168.10.10
     65option  subnet  255.255.255.0
     66opt router  192.168.10.2
     67opt wins    192.168.10.10
     68option  dns 129.219.13.81   # appended to above DNS servers for a total of 3
     69option  domain  local
     70option  lease   864000      # default: 10 days
     71# Arbitrary option in hex form:
     72option  0x08    01020304    # option 8: "cookie server IP addr: 1.2.3.4"
    12373
     74# Currently supported options (for more info, see options.c):
     75#opt lease      NUM
     76#opt subnet     IP
     77#opt broadcast  IP
     78#opt router     IP_LIST
     79#opt ipttl      NUM
     80#opt mtu        NUM
     81#opt hostname   STRING      # client's hostname
     82#opt domain     STRING      # client's domain suffix
     83#opt search     STRING_LIST # search domains
     84#opt nisdomain  STRING
     85#opt timezone   NUM     # (localtime - UTC_time) in seconds. signed
     86#opt tftp       STRING      # tftp server name
     87#opt bootfile   STRING      # tftp file to download (e.g. kernel image)
     88#opt bootsize   NUM     # size of that file
     89#opt rootpath   STRING      # (NFS) path to mount as root fs
     90#opt wpad       STRING
     91#opt serverid   IP      # default: server's IP
     92#opt message    STRING      # error message (udhcpd sends it on success too)
     93# Options specifying server(s)
     94#opt dns        IP_LIST
     95#opt wins       IP_LIST
     96#opt nissrv     IP_LIST
     97#opt ntpsrv     IP_LIST
     98#opt lprsrv     IP_LIST
     99#opt swapsrv    IP
     100# Obsolete options, no longer supported
     101#opt logsrv     IP_LIST # 704/UDP log server (not syslog!)
     102#opt namesrv    IP_LIST # IEN 116 name server, obsolete (August 1979!!!)
     103#opt cookiesrv  IP_LIST # RFC 865 "quote of the day" server, rarely (never?) used
     104#opt timesrv    IP_LIST # RFC 868 time server, rarely (never?) used
Note: See TracChangeset for help on using the changeset viewer.