DHCP for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
vi /etc/dhcp/dhcpd.conf | vi /etc/dhcp/dhcpd.conf | ||
</pre> | |||
The details of client devices with IP address will be entered into the file: | |||
<pre> | |||
/var/lib/dhcpd/dhcpd.leases | |||
</pre> | </pre> | ||
Line 21: | Line 26: | ||
</pre> | </pre> | ||
The details of client devices with IP address will be entered into the file: | |||
<pre> | |||
/var/lib/dhcp/dhcpd.leases | |||
</pre> | |||
== Common Configuration File == | |||
<pre> | <pre> | ||
option tftp150 code 150 = string; | option tftp150 code 150 = string; | ||
Line 43: | Line 53: | ||
range 10.17.1.101 10.17.1.150; | range 10.17.1.101 10.17.1.150; | ||
} | } | ||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Revision as of 23:57, 1 January 2013
For Linux Servers
yum -y install dhcp chkconfig dhcpd on
vi /etc/dhcp/dhcpd.conf
The details of client devices with IP address will be entered into the file:
/var/lib/dhcpd/dhcpd.leases
For ArchLinux Servers
pacman -S dhcp systemctl enable httpd.service systemctl start httpd.service
vi /etc/dhcpd.conf
The details of client devices with IP address will be entered into the file:
/var/lib/dhcp/dhcpd.leases
Common Configuration File
option tftp150 code 150 = string; option tftp66 code 66 = string; subnet 10.17.1.0 netmask 255.255.255.0 { default-lease-time 86400; # Seconds, 86400 = 24 Hours max-lease-time 86400; option tftp66 "10.17.1.5"; option routers 10.17.1.254; option subnet-mask 255.255.255.0; option domain-name "mydomain.com"; option domain-name-servers 10.17.1.254; option time-offset 36000; # Australian Eastern Standard Time in Seconds range 10.17.1.101 10.17.1.150; }