I hope this helps, assuming you have
/usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample

Follow the steps

#cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample
/etc/dhcpd.conf

#ee /etc/dhcpd.conf


your dhcpd.conf

###########################BEGIN DHCPD.CONF
authoritative
ddns-update-style interim
ignore client-updates

 
#INTERFACE fxp0 10.0.1.0/24 
#It should not be written as 10.0.1.1/24
#The address of this interface (fxp0) is 10.0.1.1


subnet 10.0.1.0 netmask 255.255.255.0 {

   range 10.0.1.1 10.0.1.254;           #Your clients will get
10.0.1.2 through to 10.0.1.254
   default-lease-time 86400;
   max-lease-time 86400;
   option routers 10.0.1.1;             #Change this to the
internal IP address of the gateway
   option ip-forwarding off;
   option broadcast-address 10.0.1.255;
   option subnet-mask 255.255.255.0;
   option domain-name-servers 10.0.1.1; #Assuming that
the DHCPD box is also your nameserver
   

  }


#INTERFACE xl0 10.0.0.0/24
#It should not be written as 10.0.0.1/24
#The address of this interface (xl0) is 10.0.0.1

subnet 10.0.0.0 netmask 255.255.255.0 {

   range 10.0.0.1 10.0.0.200;           #Your clients will get
10.0.0.2 through to 10.0.0.200
   default-lease-time 86400;
   max-lease-time 86400;

 
   option routers 10.0.0.1;             #Change this to the
internal IP address of the gateway
   option ip-forwarding off;
   option broadcast-address 10.0.0.255;
   option subnet-mask 255.255.255.0;
   option domain-name-servers 10.0.0.1; #Assuming that
the DHCPD box is also your nameserver
   

  }


###############END DHCPD.CONF




--- BSD Mail <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> 
> I'm configuring a gateway machine with 3 network
> interfaces
> int_ext (rl0) will obtained a real static IP from a
> public dhcp server.
> int_dmz (fxp0) 10.0.1.1/24 <http://10.0.1.1/24>
> > both internal networks will need a dhcp server to
> assign them the right
> subnet
> int_lan (xl0) 10.0.0.1/24 <http://10.0.0.1/24>
> 
> I already figured out how to specify multiple
> subnets and grouping, static
> address etc... in the dhcp config file.
> 
> what I want to make sure of is the /etc/rc.conf
> would this entry be valid and assign the right IP
> from the range of subnet :
> 
> dhcpd_ifaces="fxp0 xl0"
> 
> will that cause the dhcp server to assign
> 10.0.1.x/24 addresses to the
> machines on the switch connected to fxp0 ?
> and 10.0.0.x/24 to the machines on the switch
> connected to xl0 ?
> 
> If not what's the maximum number of interfaces I can
> specify in the option
> dhcpd_ifaces="" assuming I have all the
> subnets and related information configured correctly
> in the dhcpd.conf ?
> 
> 
> --
> thanks,
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 



                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one
click.
http://farechase.yahoo.com


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to