mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Add --shared-network DHCP configuration.
This commit is contained in:
@@ -1740,6 +1740,27 @@ wildcard can be used in each <alias>.
|
||||
It is permissible to add more than one alias using more than one \fB--bridge-interface\fP option since
|
||||
\fB--bridge-interface=int1,alias1,alias2\fP is exactly equivalent to
|
||||
\fB--bridge-interface=int1,alias1 --bridge-interface=int1,alias2\fP
|
||||
.TP
|
||||
.B --shared-network=<interface>|<addr>,<addr>
|
||||
The DHCP server determines which dhcp ranges are useable for allocating and
|
||||
address to a DHCP client based on the network from which the DHCP request arrives,
|
||||
and the IP configuration of the server's interface on that network. The shared-network
|
||||
option extends the available subnets (and therefore dhcp ranges) beyond the
|
||||
subnets configured on the arrival interface. The first argument is either the
|
||||
name of an interface or an address which is configured on a local interface, and the
|
||||
second argument is an address which defines another subnet on which addresses can be allocated.
|
||||
To be useful, there must be suitable dhcp-range which allows address allocation on this subnet
|
||||
and this dhcp-range MUST include the netmask. Use shared-network also needs extra
|
||||
consideration of routing. Dnsmasq doesn't have the usual information which it uses to
|
||||
determine the default route, so the default route option (or other routing) MUST be
|
||||
manually configured. The client must have a route to the server: if the two-address form
|
||||
of shared-network is used, this will be to the first specified address. If the interface,address
|
||||
form is used, there must be a route to all of the addresses configured on the interface.
|
||||
|
||||
The two-address form of shared-network is also usable with a DHCP relay: the first address
|
||||
is the address of the relay and the second, as before, specifies an extra subnet which
|
||||
may be allocated.
|
||||
|
||||
.TP
|
||||
.B \-s, --domain=<domain>[,<address range>[,local]]
|
||||
Specifies DNS domains for the DHCP server. Domains may be be given
|
||||
|
||||
Reference in New Issue
Block a user