diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:22:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-17 13:22:26 +0200 |
commit | 2b0e95780863da44f6a9244699ece8620a599e19 (patch) | |
tree | 5c2dd36f670be7d613a4ec99f127d73fabfdf5cb | |
parent | 4945ed32d7dc3e138a7b3776a868676085174dab (diff) | |
download | busybox-w32-2b0e95780863da44f6a9244699ece8620a599e19.tar.gz busybox-w32-2b0e95780863da44f6a9244699ece8620a599e19.tar.bz2 busybox-w32-2b0e95780863da44f6a9244699ece8620a599e19.zip |
examples/udhcp/udhcpd.conf: update
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | examples/udhcp/udhcpd.conf | 95 |
1 files changed, 31 insertions, 64 deletions
diff --git a/examples/udhcp/udhcpd.conf b/examples/udhcp/udhcpd.conf index 8c9a96840..6550cab08 100644 --- a/examples/udhcp/udhcpd.conf +++ b/examples/udhcp/udhcpd.conf | |||
@@ -1,88 +1,59 @@ | |||
1 | # Sample udhcpd configuration file (/etc/udhcpd.conf) | 1 | # Sample udhcpd configuration file (/etc/udhcpd.conf) |
2 | # Values shown are defaults | ||
2 | 3 | ||
3 | # The start and end of the IP lease block | 4 | # The start and end of the IP lease block |
4 | 5 | start 192.168.0.20 | |
5 | start 192.168.0.20 #default: 192.168.0.20 | 6 | end 192.168.0.254 |
6 | end 192.168.0.254 #default: 192.168.0.254 | ||
7 | |||
8 | 7 | ||
9 | # The interface that udhcpd will use | 8 | # The interface that udhcpd will use |
9 | interface eth0 | ||
10 | 10 | ||
11 | interface eth0 #default: eth0 | 11 | # The maximim number of leases (includes addresses reserved |
12 | 12 | # by OFFER's, DECLINE's, and ARP conficts). Will be corrected | |
13 | 13 | # if it's bigger than IP lease block, but it ok to make it | |
14 | # The maximim number of leases (includes addressesd reserved | 14 | # smaller than lease block. |
15 | # by OFFER's, DECLINE's, and ARP conficts | 15 | #max_leases 254 |
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 | |||
28 | 16 | ||
29 | # The time period at which udhcpd will write out a dhcpd.leases | 17 | # The time period at which udhcpd will write out a dhcpd.leases |
30 | # file. If this is 0, udhcpd will never automatically write a | 18 | # file. If this is 0, udhcpd will never automatically write a |
31 | # lease file. (specified in seconds) | 19 | # lease file. Specified in seconds. |
32 | 20 | #auto_time 7200 | |
33 | #auto_time 7200 #default: 7200 (2 hours) | ||
34 | |||
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 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 | 21 | ||
45 | #conflict_time 3600 #default: 3600 (1 hour) | 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 | ||
46 | 25 | ||
26 | # The amount of time that an IP will be reserved | ||
27 | # if an ARP conflct occurs (seconds). | ||
28 | #conflict_time 3600 | ||
47 | 29 | ||
48 | # How long an offered address is reserved (leased) in seconds | 30 | # How long an offered address is reserved (seconds). |
49 | 31 | #offer_time 60 | |
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 | 32 | ||
33 | # If client asks for lease below this value, it will be rounded up | ||
34 | # to this value (seconds). | ||
35 | #min_lease 60 | ||
57 | 36 | ||
58 | # The location of the leases file | 37 | # The location of the leases file |
59 | 38 | #lease_file /var/lib/misc/udhcpd.leases | |
60 | #lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases | ||
61 | 39 | ||
62 | # The location of the pid file | 40 | # The location of the pid file |
63 | #pidfile /var/run/udhcpd.pid #default: /var/run/udhcpd.pid | 41 | #pidfile /var/run/udhcpd.pid |
64 | 42 | ||
65 | # Everytime udhcpd writes a leases file, the below script will be called. | 43 | # Everytime udhcpd writes a leases file, the below script will be called. |
66 | # Useful for writing the lease file to flash every few hours. | 44 | #notify_file # default: no script |
67 | 45 | #notify_file dumpleases # useful for debugging | |
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 | 46 | ||
47 | # The following are bootp specific options, settable by udhcpd. | ||
74 | #siaddr 192.168.0.22 #default: 0.0.0.0 | 48 | #siaddr 192.168.0.22 #default: 0.0.0.0 |
75 | 49 | #sname zorak #default: none | |
76 | #sname zorak #default: (none) | 50 | #boot_file /var/nfs_root #default: none |
77 | |||
78 | #boot_file /var/nfs_root #default: (none) | ||
79 | 51 | ||
80 | # The remainer of options are DHCP options and can be specifed with the | 52 | # 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 | 53 | # 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 | 54 | # as the dns option, they can be listed on the same line, or multiple |
83 | # lines. The only option with a default is 'lease'. | 55 | # lines. The only option with a default is 'lease'. |
84 | 56 | # Examples: | |
85 | #Examles | ||
86 | opt dns 192.168.10.2 192.168.10.10 | 57 | opt dns 192.168.10.2 192.168.10.10 |
87 | option subnet 255.255.255.0 | 58 | option subnet 255.255.255.0 |
88 | opt router 192.168.10.2 | 59 | opt router 192.168.10.2 |
@@ -91,8 +62,7 @@ option dns 129.219.13.81 # appened to above DNS servers for a total of 3 | |||
91 | option domain local | 62 | option domain local |
92 | option lease 864000 # 10 days of seconds | 63 | option lease 864000 # 10 days of seconds |
93 | 64 | ||
94 | 65 | # Currently supported options (for more info, see options.c): | |
95 | # Currently supported options, for more info, see options.c | ||
96 | #opt subnet | 66 | #opt subnet |
97 | #opt timezone | 67 | #opt timezone |
98 | #opt router | 68 | #opt router |
@@ -115,9 +85,6 @@ option lease 864000 # 10 days of seconds | |||
115 | #opt tftp | 85 | #opt tftp |
116 | #opt bootfile | 86 | #opt bootfile |
117 | 87 | ||
118 | |||
119 | # Static leases map | 88 | # Static leases map |
120 | #static_lease 00:60:08:11:CE:4E 192.168.0.54 | 89 | #static_lease 00:60:08:11:CE:4E 192.168.0.54 |
121 | #static_lease 00:60:08:11:CE:3E 192.168.0.44 | 90 | #static_lease 00:60:08:11:CE:3E 192.168.0.44 |
122 | |||
123 | |||