Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File size: 2474 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 532 # Sample udhcpd configuration file (/etc/udhcpd.conf)
2 niro 984 # Values shown are defaults
3 niro 532
4     # The start and end of the IP lease block
5 niro 984 start 192.168.0.20
6     end 192.168.0.254
7 niro 532
8     # The interface that udhcpd will use
9 niro 984 interface eth0
10 niro 532
11 niro 984 # 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     # smaller than lease block.
15     #max_leases 254
16 niro 532
17     # The time period at which udhcpd will write out a dhcpd.leases
18     # file. If this is 0, udhcpd will never automatically write a
19 niro 984 # lease file. Specified in seconds.
20     #auto_time 7200
21 niro 532
22 niro 984 # 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 niro 532
26 niro 984 # The amount of time that an IP will be reserved
27     # if an ARP conflct occurs (seconds).
28     #conflict_time 3600
29 niro 532
30 niro 984 # How long an offered address is reserved (seconds).
31     #offer_time 60
32 niro 532
33 niro 984 # If client asks for lease below this value, it will be rounded up
34     # to this value (seconds).
35     #min_lease 60
36 niro 532
37     # The location of the leases file
38 niro 984 #lease_file /var/lib/misc/udhcpd.leases
39 niro 532
40     # The location of the pid file
41 niro 984 #pidfile /var/run/udhcpd.pid
42 niro 532
43     # Everytime udhcpd writes a leases file, the below script will be called.
44 niro 984 #notify_file # default: no script
45     #notify_file dumpleases # useful for debugging
46 niro 532
47 niro 984 # The following are bootp specific options, settable by udhcpd.
48 niro 532 #siaddr 192.168.0.22 #default: 0.0.0.0
49 niro 984 #sname zorak #default: none
50     #boot_file /var/nfs_root #default: none
51 niro 532
52     # 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
54     # as the dns option, they can be listed on the same line, or multiple
55     # lines. The only option with a default is 'lease'.
56 niro 984 # Examples:
57 niro 532 opt dns 192.168.10.2 192.168.10.10
58     option subnet 255.255.255.0
59     opt router 192.168.10.2
60     opt wins 192.168.10.10
61     option dns 129.219.13.81 # appened to above DNS servers for a total of 3
62     option domain local
63     option lease 864000 # 10 days of seconds
64    
65 niro 984 # Currently supported options (for more info, see options.c):
66 niro 532 #opt subnet
67     #opt timezone
68     #opt router
69 niro 816 #opt timesrv
70     #opt namesrv
71 niro 532 #opt dns
72 niro 816 #opt logsrv
73     #opt cookiesrv
74     #opt lprsrv
75 niro 532 #opt bootsize
76     #opt domain
77 niro 816 #opt swapsrv
78 niro 532 #opt rootpath
79     #opt ipttl
80     #opt mtu
81     #opt broadcast
82     #opt wins
83     #opt lease
84     #opt ntpsrv
85     #opt tftp
86     #opt bootfile
87    
88     # Static leases map
89     #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