Muchas gracias a todos me fué de gran ayuda

 les paso los pasos que hice para instalar dhcp por si a alguien le hace falta:




        
        
        
        

DHCP



yum -y install dhcp









log:  tail -f /var/log/messages



Para mayor seguridad configuramos que
use la red que usamos la lan como servidor dhcp:



/etc/sysconfig/dhcpd



DHCMDARGS=eth0



/etc/dhcpd.conf






server-identifier www.pc.com.ar; 

ddns-update-style interim; 

ignore client-updates; 

authoritative; 

default-lease-time 900; 

max-lease-time 7200; 

option ip-forwarding off; 

option domain-name "pc.com.ar";




shared-network devotopc { 

        subnet 192.168.1.0 netmask
255.255.255.0 { 

                option routers 192.168.1.1; 

                option subnet-mask 255.255.255.0; 

                option domain-name "pc.com.ar";

                option broadcast-address
192.168.1.255; 

                option domain-name-servers
192.168.1.1; 

                option netbios-name-servers
192.168.1.13; 

                option ntp-servers 200.3.168.192; 

                range 192.168.1.14 192.168.1.50; 

        } 

} 

         




Si le queremos poner ips fijos le
agregamos esto:          

        } 

        host impresora-laser  { 

                option host-name
"epl5900.pc.com.ar" 

                hardware ethernet 00:24:2b:65:54:84; 

                fixed-address 192.168.1.12; 

                } 

        host servidor { 

                option host-name
"servidor.pc.com.ar"; 

                hardware ethernet 00:50:34:45:23; 

                fixed-address 192.168.1.16 

                } 

        host proxy { 

                option host-name
"proxy.pc.com.ar" 

                hardware ethernet 00:34:56:56; 

                fixed-address 192.168.1.11; 

                } 

} 
















service dhcpd start             


 

 

 

 





> From: nino1...@hotmail.com
> To: centos-es@centos.org
> Date: Tue, 30 Nov 2010 17:36:12 -0500
> Subject: Re: [CentOS-es] FW:  No inicia el servicio dhcpd
> 
> 
> Estas colocando mal el broadcast 
> http://www.alcancelibre.org/staticpages/index.php/como-dhcp-lan
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> > From: devot...@hotmail.com
> > To: centos-es@centos.org
> > Date: Tue, 30 Nov 2010 19:28:09 -0300
> > Subject: [CentOS-es] FW:  No inicia el servicio dhcpd
> > 
> > 
> > 
> > 
> > > 
> > > Hola amigos del foro: Problema: no inicia el servicio dhcpd
> > > 
> > > Estoy teniendo un problemita con el servicio dhcp:
> > > 
> > > Les paso a comentar que instalé los repositorios yum install dhcpd
> > > 
> > > pasé a configurar: /etc/dhcpd.conf y /etc/sysconfig/dhcpd
> > > 
> > > Pongo las configuraciones por si alguien encuentra algún error.
> > > 
> > > La configuración de dhcpd.conf es la siguiente:
> > > 
> > > server-identifier www.devotopc.com.ar;
> > > ddns-update-style interim;
> > > ignore client-updates;
> > > authoritative;
> > > default-lease-time 900;
> > > max-lease-time 7200;
> > > option ip-forwarding off;
> > > option domain-name "devotopc.com.ar"
> > > 
> > > shared-network devotopc.com.ar {
> > >     subnet     192.168.1.0 netmask 255.255.255.0 {
> > >         option routers 192.168.1.1;
> > >         option subnet-mask 255.255.255.0;
> > >         option broadcast-address 192.168.1.1 
> > >         option domain-name-servers 192.168.1.1
> > >         option netbios-name-servers 192.168.1.1
> > >         option ntp-servers 200.3.168.192
> > >         range 192.168.1.2 192.168.1.50;
> > >     }
> > > 
> > > la de /etc/sysconfig/dhcpd es:
> > > 
> > > # Command line options here
> > > DHCPDARGS=ifcfg-eth0
> > > 
> > > /etc/resolv.conf
> > > 
> > > ; generated by /sbin/dhclient-script
> > > search NOGA
> > > nameserver 192.168.1.1
> > > 
> > > 
> > > /etc/sysconfig/networks-scripts/ifcfg-eth0
> > > 
> > > # VIA Technologies, Inc. VT6102 [Rhine-II]
> > > DEVICE=eth0
> > > BOOTPROTO=no
> > > HWADDR=00:17:31:D8:00:EA
> > > ONBOOT=yes
> > > IPADDR=192.168.1.13
> > > GATEWAY=192.168.1.1
> > > TYPE=ETHERNET
> > > 
> > >  
> > > 
> > > Muchas gracias 
> > > 
> > >  
> > > 
> > >  
> > > 
> > > 
> > >                                     
> > > _______________________________________________
> > > CentOS-es mailing list
> > > CentOS-es@centos.org
> > > http://lists.centos.org/mailman/listinfo/centos-es
> >                                       
> > _______________________________________________
> > CentOS-es mailing list
> > CentOS-es@centos.org
> > http://lists.centos.org/mailman/listinfo/centos-es
>                                         
> _______________________________________________
> CentOS-es mailing list
> CentOS-es@centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
                                          
_______________________________________________
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es

Responder a