1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
iiab/roles/network/templates/network/dhcpcd.conf
georgejhunt ed2b5d78f2 just move our config to interfaces.d (#247)
* just move our config to interfaces.d

* debian needs same fix as rpi

* try to recover/upgrade from putting wrong content in interfaces -- restore it

* modify dhcpcd.conf for gui static changes

* cannot comment out jinja2 with #, need to wipe the {%

* deny Lan for dhcpcd, will need work if wifi is used upstream

* attempt to change ip from console without requiring a reboot

* Revert "attempt to change ip from console without requiring a reboot"

This reverts commit 14c7499cdc.

Better not to break an upstream connection

* cleanup the iiab.j2 template --changing only comment lines
2017-09-15 22:31:09 -07:00

61 lines
1.8 KiB
Text

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
#duid
# Persist interface configuration when dhcpcd exits.
persistent
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# Generate Stable Private IPv6 Addresses instead of hardware based ones
slaac private
# don't let dhcpcd mess with IIAB LAN
denyinterfaces br0 wlan0
# Example static IP configuration:
{% if gui_static_wan == true %}
interface {{ discovered_wan_iface }}
# strange that dhcpcd does not have a netmask option -- hardcode it FIXME
static ip_address={{ gui_static_wan_ip }}/24
static routers={{ gui_static_wan_gateway }}
domain_name_servers= {{ gui_static_wan_nameserver }}
{% endif %}
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0