Difference between revisions of "FreePBX/en/dhcp server"

From Teknologisk videncenter
< FreePBX‎ | en
Jump to: navigation, search
m (Created page with "=Install DHCP server on Centos= =File /etc/dhcpd.conf= Configure /etc/dhcpd.conf using your favorite UNIX editor. * <source lang=cli> ddns-update-style none; option tftp code 15...")
 
m (Install DHCP server on Centos)
Line 1: Line 1:
 
=Install DHCP server on Centos=
 
=Install DHCP server on Centos=
 +
<source lang=cli>
 +
[root@localhost etc]# <input>yum install dhcp</input>
 +
Loaded plugins: fastestmirror, kmod
 +
Loading mirror speeds from cached hostfile
 +
Setting up Install Process
 +
Resolving Dependencies
 +
--> Running transaction check
 +
---> Package dhcp.x86_64 12:4.1.1-31.0.1.P1.el6.centos.1 will be installed
 +
--> Processing Dependency: portreserve for package: 12:dhcp-4.1.1-31.0.1.P1.el6.centos.1.x86_64
 +
--> Running transaction check
 +
---> Package portreserve.x86_64 0:0.0.4-9.el6 will be installed
 +
--> Finished Dependency Resolution
 +
 +
Dependencies Resolved
 +
 +
================================================================================
 +
Package        Arch      Version                              Repository  Size
 +
================================================================================
 +
Installing:
 +
dhcp          x86_64    12:4.1.1-31.0.1.P1.el6.centos.1      updates    818 k
 +
Installing for dependencies:
 +
portreserve    x86_64    0.0.4-9.el6                          base        23 k
 +
 +
Transaction Summary
 +
================================================================================
 +
Install      2 Package(s)
 +
 +
Total download size: 840 k
 +
Installed size: 1.9 M
 +
Is this ok [y/N]: <input>y</input>
 +
<notice>... OUTPUT OMITTED ...</notice>
 +
Installed:
 +
  dhcp.x86_64 12:4.1.1-31.0.1.P1.el6.centos.1
 +
 +
Dependency Installed:
 +
  portreserve.x86_64 0:0.0.4-9.el6
 +
 +
Complete!
 +
</source>
 +
 
=File /etc/dhcpd.conf=
 
=File /etc/dhcpd.conf=
 
Configure /etc/dhcpd.conf using your favorite UNIX editor.
 
Configure /etc/dhcpd.conf using your favorite UNIX editor.

Revision as of 11:36, 8 May 2013

Install DHCP server on Centos

[root@localhost etc]# <input>yum install dhcp</input>
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package dhcp.x86_64 12:4.1.1-31.0.1.P1.el6.centos.1 will be installed
--> Processing Dependency: portreserve for package: 12:dhcp-4.1.1-31.0.1.P1.el6.centos.1.x86_64
--> Running transaction check
---> Package portreserve.x86_64 0:0.0.4-9.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch      Version                              Repository  Size
================================================================================
Installing:
 dhcp           x86_64    12:4.1.1-31.0.1.P1.el6.centos.1      updates    818 k
Installing for dependencies:
 portreserve    x86_64    0.0.4-9.el6                          base        23 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 840 k
Installed size: 1.9 M
Is this ok [y/N]: <input>y</input>
<notice>... OUTPUT OMITTED ...</notice>
Installed:
  dhcp.x86_64 12:4.1.1-31.0.1.P1.el6.centos.1

Dependency Installed:
  portreserve.x86_64 0:0.0.4-9.el6

Complete!

File /etc/dhcpd.conf

Configure /etc/dhcpd.conf using your favorite UNIX editor.

ddns-update-style none;

option tftp code 150 = ip-address;
server-name "freepbx.henrik.dk";

subnet 172.24.0.0 netmask 255.255.0.0 {
        range dynamic-bootp 172.24.100.1 172.24.199.255;
        option routers                  172.24.0.1;
        option subnet-mask              255.255.0.0;
        option tftp                     172.24.0.1;
        option domain-name              "Hold2.tekkom.dk";
        option domain-name-servers      208.67.222.222;
}