--- On Sat, 11/15/08, Craig White <craigwhite@xxxxxxxxxxx> wrote: > From: Craig White <craigwhite@xxxxxxxxxxx> > Subject: Re: Make a DHCP server using Fedora - Help > To: "Community assistance, encouragement, and advice for using Fedora." <fedora-list@xxxxxxxxxx> > Date: Saturday, November 15, 2008, 10:20 AM > 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@xxxxxxxxxx > <edwardspl@xxxxxxxxxx> wrote: > > > > > > > From: edwardspl@xxxxxxxxxx > <edwardspl@xxxxxxxxxx> > > > > Subject: Re: Make a DHCP server using Fedora > - Help > > > > To: olivares14031@xxxxxxxxx, "Community > assistance, encouragement, and advice for using > Fedora." <fedora-list@xxxxxxxxxx> > > > > Date: Saturday, November 15, 2008, 7:06 AM > > > > Antonio Olivares wrote: > > > > > > > > >--- On Sat, 11/15/08, Tim > > > > <ignored_mailbox@xxxxxxxxxxxx> wrote: > > > > > > > > > > > > > > > > > > > >>From: Tim > <ignored_mailbox@xxxxxxxxxxxx> > > > > >>Subject: Re: Make a DHCP server > using Fedora - Help > > > > >>To: olivares14031@xxxxxxxxx, > "Community > > > > assistance, encouragement, and advice for > using > > > > Fedora." <fedora-list@xxxxxxxxxx> > > > > >>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 > > -- Thank you Craig for your input, I will change this on Monday and test it out. So subnet 10.154.19.0 netmask 255.255.255.254 { should be changed to ==> subnet 10.154.19.0 netmask 255.255.255.0 { 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; to option broadcast-address 10.154.19.255; for $DNS_SERVER_IP_ADDRESS_1, $DNS_SERVER_IP_ADDRESS_2 should it I leave them as is or do I put the ones that are on the host machine? or will it pick them up automagically? Do I need to have bind running as well? Sorry to ask too many questions. Last time I was trying this, I tried webmin, but I got confused with iptables and other little things. Will the iptables part that I put in suffice also. Thank you for your time and advice. When I get back to work on Monday, I will try these suggestions and post back if I succeed or still have questions. Regards, Antonio -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines