source: drbl_ui/backup/test_busybox/busybox-1.7.2/examples/udhcp/udhcpd.conf @ 27

Last change on this file since 27 was 20, checked in by chris, 17 years ago
File size: 3.0 KB
Line 
1# Sample udhcpd configuration file (/etc/udhcpd.conf)
2
3# The start and end of the IP lease block
4
5start     192.168.0.20  #default: 192.168.0.20
6end   192.168.0.254 #default: 192.168.0.254
7
8
9# The interface that udhcpd will use
10
11interface 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
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#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
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 /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
61
62# The location of the pid file
63#pidfile  /var/run/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#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
86opt dns 192.168.10.2 192.168.10.10
87option  subnet  255.255.255.0
88opt router  192.168.10.2
89opt wins  192.168.10.10
90option  dns 129.219.13.81 # appened to above DNS servers for a total of 3
91option  domain  local
92option  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
118
119# Static leases map
120#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
122
123
Note: See TracBrowser for help on using the repository browser.