DHCP server installation:
# yum search dhcp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.xtratelecom.es
* extras: centos.mirror.xtratelecom.es
* updates: centos.mirror.xtratelecom.es
=== Matched: dhcp ====================================================
dhcp-devel.i686 : Development headers and libraries for interfacing to the DHCP server
dhclient.i686 : Provides the dhclient ISC DHCP client daemon and dhclient-script
dhcp.i686 : Dynamic host configuration protocol software
sblim-cmpi-dhcp.i686 : SBLIM WBEM-SMT DHCP
sblim-cmpi-dhcp-devel.i686 : SBLIM WBEM-SMT DHCP - Header Development Files
sblim-cmpi-dhcp-test.i686 : SBLIM WBEM-SMT DHCP - Testcase Files
dnsmasq.i686 : A lightweight DHCP/caching DNS server
avahi-autoipd.i686 : Link-local IPv4 address automatic configuration daemon (IPv4LL)
avahi-dnsconfd.i686 : Configure local unicast DNS settings based on information published in mDNS
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.xtratelecom.es
* extras: centos.mirror.xtratelecom.es
* updates: centos.mirror.xtratelecom.es
=== Matched: dhcp ====================================================
dhcp-devel.i686 : Development headers and libraries for interfacing to the DHCP server
dhclient.i686 : Provides the dhclient ISC DHCP client daemon and dhclient-script
dhcp.i686 : Dynamic host configuration protocol software
sblim-cmpi-dhcp.i686 : SBLIM WBEM-SMT DHCP
sblim-cmpi-dhcp-devel.i686 : SBLIM WBEM-SMT DHCP - Header Development Files
sblim-cmpi-dhcp-test.i686 : SBLIM WBEM-SMT DHCP - Testcase Files
dnsmasq.i686 : A lightweight DHCP/caching DNS server
avahi-autoipd.i686 : Link-local IPv4 address automatic configuration daemon (IPv4LL)
avahi-dnsconfd.i686 : Configure local unicast DNS settings based on information published in mDNS
Select dhcp.i686
#yum install dhcp.i686
Sample DHCP server config file:
#nano /etc/dhcp/dhcpd.conf
DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.254;
option domain-name-servers 62.14.2.1, 62.14.63.14;
option domain-name "mydomain.net";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 7200;
max-lease-time 86400;
}
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.254;
option domain-name-servers 62.14.2.1, 62.14.63.14;
option domain-name "mydomain.net";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 7200;
max-lease-time 86400;
}
Save and exit file /etc/dhcp/dhcpd.conf
Starting DHCP server:
/etc/init.d/dhcpd start
No hay comentarios:
Publicar un comentario