Raspberrypi.dhcp: Unterschied zwischen den Versionen

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
== Server ==
  apt-get install isc-dhcp-server
  apt-get install isc-dhcp-server


Zeile 40: Zeile 42:
  INTERFACESv4="eth0"
  INTERFACESv4="eth0"
  INTERFACESv6=""
  INTERFACESv6=""
== Client ==
=== /etc/dhcpcd.conf ===
# Most distributions have NTP support.
option ntp_servers, posix_timezone, tzdb_timezone

Version vom 29. Januar 2019, 13:07 Uhr

Server

apt-get install isc-dhcp-server

/etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8) 

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto eth0
iface eth0 inet static
 address 192.168.115.46
 netmask 255.255.255.0
 gateway 192.168.115.115


/etc/dhcp/dhcpd.conf

/etc/default/isc-dhcp-server

# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
#       Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0"
INTERFACESv6=""

Client

/etc/dhcpcd.conf

# Most distributions have NTP support.
option ntp_servers, posix_timezone, tzdb_timezone