Instalacion Del Servidor DHCP En Red Hat

Páginas: 10 (2259 palabras) Publicado: 7 de abril de 2015
Instalacion del servidor DHCP en Linux Redhat
Descargar e instalar el paquete DHCP
Antes de instalar el paquete, revisamos que el servidor dhcp no haya sido instalado anteriormente, tecleando el comando:
servidor:~# ntsysv
Si aparece instalado lo activamos, dentro del comando ntsysv o tecleando lo siguiente;
servidor:~# chkconfig dhcpd on
De lo contrario, en el disco 4 de Redhat Enterprise 4buscamos el paquete dhcp-3.0.1-54.EL4.i386.rpm y lo instalamos:
servidor:~# rpm -ivh dhcp-3.0.1-54.EL4.i386.rpm
De tener otra version de CentOS/Fedora/Redhat buscamos el archivo que empieze con dhcp-version. Creamos el archivo de bitacora:
servidor:~# touch /var/lib/dhcp/dhcpd.leases
Configuracion del servicio DHCP en Linux Redhat Enterprise
Para configurar el servidor de asignacion dinamica dedirecciones IP editamos el archivo /etc/dhcp*/dhcpd.conf 0 /etc/dhcpd.conf (dependiendo de la version). De no existir este archivo, la instalacion crea un archivo de configuracion de ejemplo en /usr/share/doc/dhcp-/dhcpd.conf.sample .
Ahora debemos sacar una copia de este archivo para poder trabajar en nuestra configuracion:
servidor:~# cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample/etc/dhcpd.conf
Un rapido vistazo al archivo de configuracion nos muestra lo siguiente:
ddns-update-style interim
ignore client-updates

subnet 192.168.1.0 netmask 255.255.255.0 {

# The range of IP addresses the server
# will issue to DHCP enabled PC clients
# booting up on the network

range 192.168.1.201 192.168.1.220;

# Set the amount of time in seconds that
# a client maykeep the IP address

default-lease-time 86400;
max-lease-time 86400;

# Set the default gateway to be used by
# the PC clients

option routers 192.168.1.1;
# Don't forward DHCP requests from this
# NIC interface to any other NIC
# interfaces

option ip-forwarding off;

# Set the broadcast address and subnet mask
# to be used by the DHCP clients

optionbroadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;

# Set the NTP server to be used by the
# DHCP clients

option ntp-servers 192.168.1.100;

# Set the DNS server to be used by the
# DHCP clients

option domain-name-servers 192.168.1.100;

# If you specify a WINS server for your Windows clients,
# you need to include the following option in the dhcpd.conf file:

optionnetbios-name-servers 192.168.1.100;

# You can also assign specific IP addresses based on the clients'
# ethernet MAC address as follows (Host's name is "laser-printer":

host laser-printer {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}
}
#
# List an unused interface here
#
subnet 192.168.2.0 netmask 255.255.255.0 {
}
En mi version de produccion utilizoalgo como lo siguiente, lo cual he comentado o borrado todo el contenido para agregar al final del archivo de configuracion:
option domain-name "guatewireless.org";
option domain-name-servers 192.168.1.10;
option netbios-name-servers 192.168.1.11;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
optionbroadcast-address 192.168.1.255;
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
host jefea { #Nombre en la red de la maquina de windows
option host-name "jagencia.bancoreformador.com"; #Opcional
hardware ethernet 00:E0:7D:74:C1:73; #Direccion MAC de la PC.
fixed-address 192.168.1.50; #Direccion IP con la cual va a trabajar la PC.
}
host servidor_archivos {
optionhost-name "archivos.guatewireless.org";
hardware ethernet 00:A1:DD:74:C3:F2;
fixed-address 192.168.1.60;
}
}
Luego de editar, guardamos la configuracion y tecleamos (siempre como root);
servidor:~# service dhcpd start
servidor:~# service dhcpd stop
servidor:~# service dhcpd restart
Revisamos que el servicio este siendo ejecutado en el sistema operativo, tecleando
servidor:~# pgrep dhcpd
11629...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Configuracion De Servidor Dhcp En Red Hat Linux 9.0
  • instalacion y configuracion de un servidor DHCP
  • Instalacion de iis y servidor dhcp
  • Instalacion De Un Servidor DHCP
  • Instalacion De Oracle En Red Hat
  • Instalacion red hat linux 7.2
  • Instalación De Jboss En Linux Red Hat
  • Instalacion de servidor jboss en red hat ppc64

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS