mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
Cleanup DHCP client/server configuration
Make sure dhcpcd does not interfere with resolv.conf. For the router product we have a dnsmasq running that forwards to a local root resolver (i.e. unbound). For the ALIX board, we want to run a DHCP client on one port and a DHCP server on the other two. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
8c76110586
commit
618c79f02e
3 changed files with 3 additions and 8 deletions
|
@ -4,7 +4,6 @@ no-hosts
|
|||
no-resolv
|
||||
dhcp-lease-max=150
|
||||
dhcp-leasefile=/var/lib/dnsmasq.leases
|
||||
conf-dir=/etc/dnsmasq.d/,*.conf
|
||||
user=dnsmasq
|
||||
group=dnsmasq
|
||||
except-interface=lo
|
||||
|
@ -14,14 +13,10 @@ enable-ra
|
|||
# forward to unbound
|
||||
server=127.0.0.1#5353
|
||||
|
||||
interface=eth0
|
||||
interface=port0
|
||||
dhcp-range=set:if0,192.168.0.2,192.168.0.254,255.255.255.0,12h
|
||||
dhcp-option=tag:if0,option:dns-server,192.168.0.1
|
||||
|
||||
interface=eth1
|
||||
interface=port1
|
||||
dhcp-range=set:if1,192.168.1.2,192.168.1.254,255.255.255.0,12h
|
||||
dhcp-option=tag:if1,option:dns-server,192.168.1.1
|
||||
|
||||
interface=eth2
|
||||
dhcp-range=set:if2,192.168.2.2,192.168.2.254,255.255.255.0,12h
|
||||
dhcp-option=tag:if2,option:dns-server,192.168.2.1
|
||||
|
|
|
@ -7,3 +7,4 @@ option classless_static_routes
|
|||
option interface_mtu
|
||||
require dhcp_server_identifier
|
||||
slaac private
|
||||
nohook resolv.conf
|
|
@ -4,7 +4,6 @@ no-hosts
|
|||
no-resolv
|
||||
dhcp-lease-max=150
|
||||
dhcp-leasefile=/var/lib/dnsmasq.leases
|
||||
conf-dir=/etc/dnsmasq.d/,*.conf
|
||||
user=dnsmasq
|
||||
group=dnsmasq
|
||||
except-interface=lo
|
||||
|
|
Loading…
Reference in a new issue