Freebsd dhcp-server: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) (→Config) |
||
| Zeile 10: | Zeile 10: | ||
dhcpd_withumask="022" | dhcpd_withumask="022" | ||
</pre> | </pre> | ||
| + | |||
| + | */usr/local/etc/dhcpd.conf | ||
| + | <pre> | ||
| + | option domain-name "example.org"; | ||
| + | option domain-name-servers 10.83.39.1; | ||
| + | option subnet-mask 255.255.255.0; | ||
| + | default-lease-time 600; | ||
| + | max-lease-time 72400; | ||
| + | ddns-update-style none; | ||
| + | |||
| + | subnet 10.83.39.0 netmask 255.255.255.224 { | ||
| + | range 10.83.39.10 10.83.39.20; | ||
| + | option routers 10.83.39.1; | ||
| + | } | ||
| + | </pre> | ||
| + | =Handling= | ||
| + | *service isc-dhcpd restart | ||
| + | *service isc-dhcpd start | ||
| + | *service isc-dhcpd stop | ||
=Links= | =Links= | ||
*https://www.freebsd.org/doc/handbook/network-dhcp.html | *https://www.freebsd.org/doc/handbook/network-dhcp.html | ||
Version vom 31. Oktober 2017, 15:07 Uhr
Install
- pkg install -y isc-dhcp43-server
Config
- /etc/c.conf
dhcpd_enable="YES" dhcpd_flags="-q" dhcpd_conf="/usr/local/etc/dhcpd.conf" dhcpd_ifaces="re1" dhcpd_withumask="022"
- /usr/local/etc/dhcpd.conf
option domain-name "example.org";
option domain-name-servers 10.83.39.1;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 72400;
ddns-update-style none;
subnet 10.83.39.0 netmask 255.255.255.224 {
range 10.83.39.10 10.83.39.20;
option routers 10.83.39.1;
}
Handling
- service isc-dhcpd restart
- service isc-dhcpd start
- service isc-dhcpd stop