/[mdap]/etc/udhcpd.conf
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /etc/udhcpd.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (hide annotations)
Sat Nov 17 00:12:12 2007 UTC (16 years, 5 months ago) by dpavlin
File size: 2934 byte(s)
 r85@brr:  root | 2007-11-17 01:11:48 +0100
 tweak config

1 dpavlin 42 # Sample udhcpd configuration file (/etc/udhcpd.conf)
2    
3     # The start and end of the IP lease block
4    
5 dpavlin 48 start 10.0.1.1 #default: 192.168.0.20
6     end 10.0.1.254 #default: 192.168.0.254
7 dpavlin 42
8    
9     # The interface that udhcpd will use
10    
11     interface eth1 #default: eth0
12    
13    
14     # The maximim number of leases (includes addressesd reserved
15     # by OFFER's, DECLINE's, and ARP conficts
16    
17 dpavlin 48 max_leases 254 #default: 254
18 dpavlin 42
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 dpavlin 48 remaining yes #default: yes
27 dpavlin 42
28    
29     # The time period at which udhcpd will write out a dhcpd.leases
30     # file. If this is 0, udhcpd will never automatically write a
31     # lease file. (specified in seconds)
32    
33 dpavlin 48 auto_time 60 #default: 7200 (2 hours)
34 dpavlin 42
35    
36     # The amount of time that an IP will be reserved (leased) for if a
37     # DHCP decline message is received (seconds).
38    
39     decline_time 90 #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    
57    
58     # The location of the leases file
59    
60     lease_file etc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
61    
62     # The location of the pid file
63     pidfile etc/udhcpd.pid #default: /var/run/udhcpd.pid
64    
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.
67    
68     #notify_file #default: (no script)
69    
70 dpavlin 46 #notify_file dumpleases # <--- usefull for debugging
71 dpavlin 42
72     # The following are bootp specific options, setable by udhcpd.
73    
74 dpavlin 62 #siaddr 10.0.0.100 #default: 0.0.0.0
75 dpavlin 42
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 dpavlin 62 option subnet 255.0.0.0
88     opt router 10.0.0.100
89 dpavlin 42 #opt wins 192.168.10.10
90     #option dns 129.219.13.81 # appened to above DNS servers for a total of 3
91 dpavlin 46 #option domain local
92 dpavlin 42 #option lease 864000 # 10 days of seconds
93 dpavlin 46 #option lease 90
94 dpavlin 42
95    
96     # Currently supported options, for more info, see options.c
97     #opt subnet
98     #opt timezone
99     #opt router
100     #opt timesvr
101     #opt namesvr
102     #opt dns
103     #opt logsvr
104     #opt cookiesvr
105     #opt lprsvr
106     #opt bootsize
107     #opt domain
108     #opt swapsvr
109     #opt rootpath
110     #opt ipttl
111     #opt mtu
112     #opt broadcast
113     #opt wins
114     #opt lease
115     #opt ntpsrv
116 dpavlin 62 opt tftp foobar
117 dpavlin 42 #opt bootfile
118     #opt wpad

  ViewVC Help
Powered by ViewVC 1.1.26