udhcpd-p2p.conf revision 1.1.1.1.34.2 1 1.1.1.1.34.2 snj # Sample udhcpd configuration file (/etc/udhcpd.conf)
2 1.1.1.1.34.2 snj
3 1.1.1.1.34.2 snj # The start and end of the IP lease block
4 1.1.1.1.34.2 snj
5 1.1.1.1.34.2 snj start 192.168.42.20 #default: 192.168.0.20
6 1.1.1.1.34.2 snj end 192.168.42.254 #default: 192.168.0.254
7 1.1.1.1.34.2 snj
8 1.1.1.1.34.2 snj
9 1.1.1.1.34.2 snj # The interface that udhcpd will use
10 1.1.1.1.34.2 snj
11 1.1.1.1.34.2 snj interface wlan2 #default: eth0
12 1.1.1.1.34.2 snj
13 1.1.1.1.34.2 snj
14 1.1.1.1.34.2 snj # The maximim number of leases (includes addressesd reserved
15 1.1.1.1.34.2 snj # by OFFER's, DECLINE's, and ARP conficts
16 1.1.1.1.34.2 snj
17 1.1.1.1.34.2 snj #max_leases 254 #default: 254
18 1.1.1.1.34.2 snj
19 1.1.1.1.34.2 snj
20 1.1.1.1.34.2 snj # If remaining is true (default), udhcpd will store the time
21 1.1.1.1.34.2 snj # remaining for each lease in the udhcpd leases file. This is
22 1.1.1.1.34.2 snj # for embedded systems that cannot keep time between reboots.
23 1.1.1.1.34.2 snj # If you set remaining to no, the absolute time that the lease
24 1.1.1.1.34.2 snj # expires at will be stored in the dhcpd.leases file.
25 1.1.1.1.34.2 snj
26 1.1.1.1.34.2 snj #remaining yes #default: yes
27 1.1.1.1.34.2 snj
28 1.1.1.1.34.2 snj
29 1.1.1.1.34.2 snj # The time period at which udhcpd will write out a dhcpd.leases
30 1.1.1.1.34.2 snj # file. If this is 0, udhcpd will never automatically write a
31 1.1.1.1.34.2 snj # lease file. (specified in seconds)
32 1.1.1.1.34.2 snj
33 1.1.1.1.34.2 snj #auto_time 7200 #default: 7200 (2 hours)
34 1.1.1.1.34.2 snj
35 1.1.1.1.34.2 snj
36 1.1.1.1.34.2 snj # The amount of time that an IP will be reserved (leased) for if a
37 1.1.1.1.34.2 snj # DHCP decline message is received (seconds).
38 1.1.1.1.34.2 snj
39 1.1.1.1.34.2 snj #decline_time 3600 #default: 3600 (1 hour)
40 1.1.1.1.34.2 snj
41 1.1.1.1.34.2 snj
42 1.1.1.1.34.2 snj # The amount of time that an IP will be reserved (leased) for if an
43 1.1.1.1.34.2 snj # ARP conflct occurs. (seconds
44 1.1.1.1.34.2 snj
45 1.1.1.1.34.2 snj #conflict_time 3600 #default: 3600 (1 hour)
46 1.1.1.1.34.2 snj
47 1.1.1.1.34.2 snj
48 1.1.1.1.34.2 snj # How long an offered address is reserved (leased) in seconds
49 1.1.1.1.34.2 snj
50 1.1.1.1.34.2 snj #offer_time 60 #default: 60 (1 minute)
51 1.1.1.1.34.2 snj
52 1.1.1.1.34.2 snj # If a lease to be given is below this value, the full lease time is
53 1.1.1.1.34.2 snj # instead used (seconds).
54 1.1.1.1.34.2 snj
55 1.1.1.1.34.2 snj #min_lease 60 #defult: 60
56 1.1.1.1.34.2 snj
57 1.1.1.1.34.2 snj
58 1.1.1.1.34.2 snj # The location of the leases file
59 1.1.1.1.34.2 snj
60 1.1.1.1.34.2 snj #lease_file /var/lib/misc/udhcpd.leases #defualt: /var/lib/misc/udhcpd.leases
61 1.1.1.1.34.2 snj
62 1.1.1.1.34.2 snj # The location of the pid file
63 1.1.1.1.34.2 snj pidfile /var/run/udhcpd-wlan2.pid #default: /var/run/udhcpd.pid
64 1.1.1.1.34.2 snj
65 1.1.1.1.34.2 snj # Every time udhcpd writes a leases file, the below script will be called.
66 1.1.1.1.34.2 snj # Useful for writing the lease file to flash every few hours.
67 1.1.1.1.34.2 snj
68 1.1.1.1.34.2 snj #notify_file #default: (no script)
69 1.1.1.1.34.2 snj
70 1.1.1.1.34.2 snj #notify_file dumpleases # <--- useful for debugging
71 1.1.1.1.34.2 snj
72 1.1.1.1.34.2 snj # The following are bootp specific options, setable by udhcpd.
73 1.1.1.1.34.2 snj
74 1.1.1.1.34.2 snj #siaddr 192.168.0.22 #default: 0.0.0.0
75 1.1.1.1.34.2 snj
76 1.1.1.1.34.2 snj #sname zorak #default: (none)
77 1.1.1.1.34.2 snj
78 1.1.1.1.34.2 snj #boot_file /var/nfs_root #default: (none)
79 1.1.1.1.34.2 snj
80 1.1.1.1.34.2 snj # The remainer of options are DHCP options and can be specifed with the
81 1.1.1.1.34.2 snj # keyword 'opt' or 'option'. If an option can take multiple items, such
82 1.1.1.1.34.2 snj # as the dns option, they can be listed on the same line, or multiple
83 1.1.1.1.34.2 snj # lines. The only option with a default is 'lease'.
84 1.1.1.1.34.2 snj
85 1.1.1.1.34.2 snj #Examles
86 1.1.1.1.34.2 snj opt dns 192.168.2.1
87 1.1.1.1.34.2 snj option subnet 255.255.255.0
88 1.1.1.1.34.2 snj option domain atherosowl.com
89 1.1.1.1.34.2 snj option lease 864000 # 10 days of seconds
90 1.1.1.1.34.2 snj
91 1.1.1.1.34.2 snj
92 1.1.1.1.34.2 snj # Currently supported options, for more info, see options.c
93 1.1.1.1.34.2 snj #opt subnet
94 1.1.1.1.34.2 snj #opt timezone
95 1.1.1.1.34.2 snj #opt router
96 1.1.1.1.34.2 snj #opt timesvr
97 1.1.1.1.34.2 snj #opt namesvr
98 1.1.1.1.34.2 snj #opt dns
99 1.1.1.1.34.2 snj #opt logsvr
100 1.1.1.1.34.2 snj #opt cookiesvr
101 1.1.1.1.34.2 snj #opt lprsvr
102 1.1.1.1.34.2 snj #opt bootsize
103 1.1.1.1.34.2 snj #opt domain
104 1.1.1.1.34.2 snj #opt swapsvr
105 1.1.1.1.34.2 snj #opt rootpath
106 1.1.1.1.34.2 snj #opt ipttl
107 1.1.1.1.34.2 snj #opt mtu
108 1.1.1.1.34.2 snj #opt broadcast
109 1.1.1.1.34.2 snj #opt wins
110 1.1.1.1.34.2 snj #opt lease
111 1.1.1.1.34.2 snj #opt ntpsrv
112 1.1.1.1.34.2 snj #opt tftp
113 1.1.1.1.34.2 snj #opt bootfile
114 1.1.1.1.34.2 snj
115 1.1.1.1.34.2 snj
116 1.1.1.1.34.2 snj # Static leases map
117 1.1.1.1.34.2 snj #static_lease 00:60:08:11:CE:4E 192.168.0.54
118 1.1.1.1.34.2 snj #static_lease 00:60:08:11:CE:3E 192.168.0.44
119 1.1.1.1.34.2 snj
120 1.1.1.1.34.2 snj
121