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