Difference between revisions of "Cluster der kan alt/DHCP server"
From Teknologisk videncenter
(Created page with "== Installation af DHCP-server == Følgende skal skrives for at installer DHCP-server på LINUX <source lang=bash> sudo apt-get install dhcp3-server </source>") |
(→Installation af DHCP-server) |
||
Line 6: | Line 6: | ||
sudo apt-get install dhcp3-server | sudo apt-get install dhcp3-server | ||
</source> | </source> | ||
+ | |||
+ | === Konfigurer dhcpd.conf === | ||
+ | Nedenstående linjer skal tilføjes til dhcpd.conf | ||
+ | |||
+ | {|- | ||
+ | | valign="top" | | ||
+ | <source lang=bash> | ||
+ | # <-- 'Author' 'date' . | ||
+ | |||
+ | option domain-name-server "dns ip-address"; | ||
+ | default-lease-time 600; | ||
+ | max-lease-time 7200; | ||
+ | |||
+ | subnet "network-address" netmask "netmask-address"; { | ||
+ | option subnet-mask "netmask-address"; | ||
+ | option broadcast-address "broadcast-address": | ||
+ | option routers "Default gateway address"; | ||
+ | range "IP- to IP-address"; | ||
+ | } | ||
+ | |||
+ | </source> | ||
+ | | | ||
+ | | | ||
+ | [[image:dhcp_conf.png]] | ||
+ | |} |
Revision as of 12:09, 18 April 2012
Installation af DHCP-server
Følgende skal skrives for at installer DHCP-server på LINUX
sudo apt-get install dhcp3-server
Konfigurer dhcpd.conf
Nedenstående linjer skal tilføjes til dhcpd.conf
# <-- 'Author' 'date' .
option domain-name-server "dns ip-address";
default-lease-time 600;
max-lease-time 7200;
subnet "network-address" netmask "netmask-address"; {
option subnet-mask "netmask-address";
option broadcast-address "broadcast-address":
option routers "Default gateway address";
range "IP- to IP-address";
}
|