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