Difference between revisions of "Cluster der kan alt/DHCP server"

From Teknologisk videncenter
Jump to: navigation, search
(Installation af DHCP-server)
(Konfigurer dhcpd.conf)
Line 15: Line 15:
 
# <-- 'Author' 'date'                                                                                                        .
 
# <-- 'Author' 'date'                                                                                                        .
  
option domain-name-server "dns ip-address";
+
option domain-name-server "10.0.0.1";
 
default-lease-time 600;
 
default-lease-time 600;
 
max-lease-time 7200;
 
max-lease-time 7200;
  
subnet "network-address" netmask "netmask-address"; {
+
subnet "10.0.0.0" netmask "255.255.255.0"; {
option subnet-mask "netmask-address";
+
option subnet-mask "255.255.255.0";
option broadcast-address "broadcast-address":
+
option broadcast-address "10.0.0.255":
option routers "Default gateway address";
+
option routers "10.0.0.1";
range "IP- to IP-address";
+
range "10.0.0.10 - 10.0.0.254";
 
}
 
}
 +
  
 
</source>
 
</source>

Revision as of 12:10, 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 "10.0.0.1";
default-lease-time 600;
max-lease-time 7200;

subnet "10.0.0.0" netmask "255.255.255.0"; {
option subnet-mask "255.255.255.0";
option broadcast-address "10.0.0.255":
option routers "10.0.0.1";
range "10.0.0.10 - 10.0.0.254";
}

Dhcp conf.png