[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Make a DHCP server using Fedora - Help



On Sat, 2008-11-15 at 11:11 -0700, Craig White wrote:
> On Sat, 2008-11-15 at 09:48 -0800, Antonio Olivares wrote:
> > --- On Sat, 11/15/08, edwardspl ita org mo <edwardspl ita org mo> wrote:
> > 
> > > From: edwardspl ita org mo <edwardspl ita org mo>
> > > Subject: Re: Make a DHCP server using Fedora - Help
> > > To: olivares14031 yahoo com, "Community assistance, encouragement, and advice for using Fedora." <fedora-list redhat com>
> > > Date: Saturday, November 15, 2008, 7:06 AM
> > > Antonio Olivares wrote:
> > > 
> > > >--- On Sat, 11/15/08, Tim
> > > <ignored_mailbox yahoo com au> wrote:
> > > >
> > > >  
> > > >
> > > >>From: Tim <ignored_mailbox yahoo com au>
> > > >>Subject: Re: Make a DHCP server using Fedora - Help
> > > >>To: olivares14031 yahoo com, "Community
> > > assistance, encouragement, and advice for using
> > > Fedora." <fedora-list redhat com>
> > > >>Date: Saturday, November 15, 2008, 1:57 AM
> > > >>On Fri, 2008-11-14 at 17:42 -0800, Antonio Olivares
> > > wrote:
> > > >>    
> > > >>
> > > >>>subnet 10.154.19.0 netmask 255.255.255.0 {
> > > >>>}
> > > >>>
> > > >>># This is a very basic subnet declaration.
> > > >>>
> > > >>>subnet 10.154.19.0 netmask 255.255.255.224 {
> > > >>>  range 10.154.19.10 10.154.19.20;
> > > >>>  option routers rtr-239-0-1.example.org,
> > > >>>      
> > > >>>
> > > >>rtr-239-0-2.example.org;
> > > >>    
> > > >>
> > > >>>}
> > > >>>      
> > > >>>
> > > >>It seems pointlessly redundant to declare a subnet
> > > twice. 
> > > >>And stranger
> > > >>to declare it differently.  I see no point for the
> > > first
> > > >>one.
> > > >>
> > > >>-- 
> > > >>[tim localhost ~]$ uname -r
> > > >>2.6.26.6-79.fc9.i686
> > > >>
> > > >>Don't send private replies to my address, the
> > > mailbox
> > > >>is ignored.  I
> > > >>read messages from the public lists.
> > > >>    
> > > >>
> > > >
> > > >Which one should I keep Tim, the first one or the
> > > second one?
> > > >
> > > >I have tried  before and not succeeded, I want to
> > > succeed this time. 
> > > >
> > > >The machine that will become the server has gateway
> > > 10.154.19.1, is it okay to make the server 
> > > >10.154.19.0 ?
> > > >
> > > >Also the machine's netmask is 255.255.255.0 and the
> > > netmask of the server should it be 255.255.255.0 or
> > > 255.255.255.254 or other thing?
> > > >
> > > >Thanks,
> > > >
> > > >Antonio
> > > >
> > > 
> > > Dear You,
> > > 
> > > Please try these :
> > > 
> > > <>subnet 10.154.19.0 netmask 255.255.255.224
> > > {
> > > range 10.154.19.10 10.154.19.20;
> > > option routers
> > > rtr-239-0-1.example.org,rtr-239-0-2.example.org;
> > > }
> > > 
> > > Good luck !
> > 
> > I tried that and it does not work :(
> > 
> > [root localhost ~]# cat /etc/dhcpd.conf
> > # dhcpd.conf                           
> > #                                      
> > # Sample configuration file for ISC dhcpd
> > #                                        
> > 
> > # option definitions common to all supported networks...
> > #option domain-name "example.org";                      
> > #option domain-name-servers ns1.example.org, ns2.example.org;
> > 
> > default-lease-time 600;
> > max-lease-time 7200;   
> > 
> > # Use this to enble / disable dynamic dns updates globally.
> > ddns-update-style none;                                    
> > 
> > # If this DHCP server is the official DHCP server for the local
> > # network, the authoritative directive should be uncommented.  
> > authoritative;                                                 
> > 
> > # Use this to send dhcp log messages to a different log file (you also
> > # have to hack syslog.conf to complete the redirection).              
> > log-facility local7;                                                  
> > 
> > # No service will be given on this subnet, but declaring it helps the 
> > # DHCP server to understand the network topology.                     
> > 
> > #subnet 10.154.19.0 netmask 255.255.255.0 {
> > #}                                         
> > 
> > # This is a very basic subnet declaration.
> > 
> > subnet 10.154.19.0 netmask 255.255.255.224 {
> >   range 10.154.19.10 10.154.19.20;          
> >   option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
> > }                                                                 
> > 
> > [root localhost ~]# dhcpd -f
> > Internet Systems Consortium DHCP Server 4.0.0
> > Copyright 2004-2007 Internet Systems Consortium.
> > All rights reserved.                            
> > For info, please visit http://www.isc.org/sw/dhcp/
> > Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file                                                          
> > Wrote 0 leases to leases file.                                                  
> > 
> > No subnet declaration for eth0 (10.154.19.210).
> > ** Ignoring requests on eth0.  If this is not what
> >    you want, please write a subnet declaration
> >    in your dhcpd.conf file for the network segment
> >    to which interface eth0 is attached. **
> > 
> ----
> /etc/dhcpd.conf
> 
> default-lease-time 600;
> max-lease-time 7200;   
> ddns-update-style none;                                    
> authoritative;                                                 
> log-facility local7;                                                  
> subnet 10.154.19.0 netmask 255.255.255.224 {
>  range 10.154.19.10 10.154.19.20;          
>  option domain-name-servers $DNS_SERVER_IP_ADDRESS_1, $DNS_SERVER_IP_ADDRESS_2;
>  option domain-name "$YOUR_DOMAIN_NAME";
>  option broadcast-address 10.154.19.31;
>  option subnet-mask 255.255.255.224;
>  option routers 10.154.19.1 ; # just a guess
>  ddns-updates off;
>  }                                         
> 
> /etc/sysconfig/dhcpd
> 
> DHCPDARGS=eth0 # recommended
> 
> # other things to note...default and max lease times are really short. Many more options can be added such as WINS, NTP servers, etc.
> 
> Webmin (http://www.webmin.com) makes a lot of this very trivial
----
given your other e-mail that came after I sent this which included this
information...

eth0      Link encap:Ethernet  HWaddr 00:0E:A6:42:59:AF  
          inet addr:10.154.19.210  Bcast:10.154.19.255
Mask:255.255.255.0

the class C subnet means that my broadcast address and subnet masks
should match these above.

Craig


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]