Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/examples/udhcp/udhcpd.conf

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 1  Line 1 
1  # Sample udhcpd configuration file (/etc/udhcpd.conf)  # Sample udhcpd configuration file (/etc/udhcpd.conf)
2    # Values shown are defaults
3    
4  # The start and end of the IP lease block  # The start and end of the IP lease block
5    start 192.168.0.20
6  start 192.168.0.20 #default: 192.168.0.20  end 192.168.0.254
 end 192.168.0.254 #default: 192.168.0.254  
   
7    
8  # The interface that udhcpd will use  # The interface that udhcpd will use
9    interface eth0
10    
11  interface eth0 #default: eth0  # The maximim number of leases (includes addresses reserved
12    # by OFFER's, DECLINE's, and ARP conficts). Will be corrected
13    # if it's bigger than IP lease block, but it ok to make it
14  # The maximim number of leases (includes addressesd reserved  # smaller than lease block.
15  # by OFFER's, DECLINE's, and ARP conficts  #max_leases 254
   
 #max_leases 254 #default: 254  
   
   
 # If remaining is true (default), udhcpd will store the time  
 # remaining for each lease in the udhcpd leases file. This is  
 # for embedded systems that cannot keep time between reboots.  
 # If you set remaining to no, the absolute time that the lease  
 # expires at will be stored in the dhcpd.leases file.  
   
 #remaining yes #default: yes  
   
16    
17  # The time period at which udhcpd will write out a dhcpd.leases  # The time period at which udhcpd will write out a dhcpd.leases
18  # file. If this is 0, udhcpd will never automatically write a  # file. If this is 0, udhcpd will never automatically write a
19  # lease file. (specified in seconds)  # lease file. Specified in seconds.
20    #auto_time 7200
 #auto_time 7200 #default: 7200 (2 hours)  
   
   
 # The amount of time that an IP will be reserved (leased) for if a  
 # DHCP decline message is received (seconds).  
   
 #decline_time 3600 #default: 3600 (1 hour)  
   
   
 # The amount of time that an IP will be reserved (leased) for if an  
 # ARP conflct occurs. (seconds  
   
 #conflict_time 3600 #default: 3600 (1 hour)  
   
   
 # How long an offered address is reserved (leased) in seconds  
   
 #offer_time 60 #default: 60 (1 minute)  
   
 # If a lease to be given is below this value, the full lease time is  
 # instead used (seconds).  
   
 #min_lease 60 #defult: 60  
21    
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
25    
26    # The amount of time that an IP will be reserved
27    # if an ARP conflct occurs (seconds).
28    #conflict_time 3600
29    
30    # How long an offered address is reserved (seconds).
31    #offer_time 60
32    
33    # If client asks for lease below this value, it will be rounded up
34    # to this value (seconds).
35    #min_lease 60
36    
37  # The location of the leases file  # The location of the leases file
38    #lease_file /var/lib/misc/udhcpd.leases
 #lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases  
39    
40  # The location of the pid file  # The location of the pid file
41  #pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid  #pidfile /var/run/udhcpd.pid
42    
43  # Everytime udhcpd writes a leases file, the below script will be called.  # Everytime udhcpd writes a leases file, the below script will be called.
44  # Useful for writing the lease file to flash every few hours.  #notify_file # default: no script
45    #notify_file dumpleases # useful for debugging
 #notify_file #default: (no script)  
   
 #notify_file dumpleases # <--- useful for debugging  
   
 # The following are bootp specific options, setable by udhcpd.  
46    
47    # The following are bootp specific options, settable by udhcpd.
48  #siaddr 192.168.0.22 #default: 0.0.0.0  #siaddr 192.168.0.22 #default: 0.0.0.0
49    #sname zorak #default: none
50  #sname zorak #default: (none)  #boot_file /var/nfs_root #default: none
   
 #boot_file /var/nfs_root #default: (none)  
51    
52  # The remainer of options are DHCP options and can be specifed with the  # The remainer of options are DHCP options and can be specifed with the
53  # keyword 'opt' or 'option'. If an option can take multiple items, such  # keyword 'opt' or 'option'. If an option can take multiple items, such
54  # as the dns option, they can be listed on the same line, or multiple  # as the dns option, they can be listed on the same line, or multiple
55  # lines. The only option with a default is 'lease'.  # lines. The only option with a default is 'lease'.
56    # Examples:
 #Examles  
57  opt dns 192.168.10.2 192.168.10.10  opt dns 192.168.10.2 192.168.10.10
58  option subnet 255.255.255.0  option subnet 255.255.255.0
59  opt router 192.168.10.2  opt router 192.168.10.2
# Line 91  option dns 129.219.13.81 # appened to ab Line 62  option dns 129.219.13.81 # appened to ab
62  option domain local  option domain local
63  option lease 864000 # 10 days of seconds  option lease 864000 # 10 days of seconds
64    
65    # Currently supported options (for more info, see options.c):
 # Currently supported options, for more info, see options.c  
66  #opt subnet  #opt subnet
67  #opt timezone  #opt timezone
68  #opt router  #opt router
# Line 115  option lease 864000 # 10 days of second Line 85  option lease 864000 # 10 days of second
85  #opt tftp  #opt tftp
86  #opt bootfile  #opt bootfile
87    
   
88  # Static leases map  # Static leases map
89  #static_lease 00:60:08:11:CE:4E 192.168.0.54  #static_lease 00:60:08:11:CE:4E 192.168.0.54
90  #static_lease 00:60:08:11:CE:3E 192.168.0.44  #static_lease 00:60:08:11:CE:3E 192.168.0.44
   
   

Legend:
Removed from v.983  
changed lines
  Added in v.984