One Server, two interfaces

Jeff Sadowski jeff.sadowski at gmail.com
Sat Mar 8 04:39:14 UTC 2008


yes just add another subnet block you will see dhcpd say the
interfaces it is starting on.
you can start it in a number of ways.

one way is just to add another scope. another is to have a completely
different config file and have another instance of dhcpd for each nic.
If you don't have an address that falls in any of the scopes dhcpd
will complain and tell you

with a different config file you will need to pass dhcpd the config
file option look in the man page.
There are plenty of examples in the man page

I think you put the nic at the end of the command line

On Fri, Mar 7, 2008 at 4:47 PM, Alan Neville <neville.alan at gmail.com> wrote:
> Jeff:
>  I don't quite understand. How does it "figure it out"? Currently, I
>  have dhcpd working for one of the interfaces. The following is a copy
>  of my dhcpd.conf. Should I just add another subnet declaration block?
>
>  --- snip, snip ---
>
>  option domain-name-servers 213.94.190.194, 213.94.190.236;
>  option subnet-mask 255.255.255.0;
>
>  default-lease-time 3600;
>  max-lease-time 86400;
>  ddns-update-style none;
>
>  # dc0 interface
>  subnet 192.168.100.0 netmask 255.255.255.0 {
>    range 192.168.100.10 192.168.100.200;
>    option routers 192.168.100.1;
>  }
>
>  --- snip, snip ---
>
>  Thanks,
>
>  A
>
>
> On 7 Mar 2008, at 21:31, Jeff Sadowski wrote:
>
>  > dhcpd figures it out based on the ip addresses assigned to those
>  > nodes.
>  >
>  > On 3/7/08, Alan Neville <neville.alan at gmail.com> wrote:
>  >> Hello,
>  >>
>  >> I'm currently setting up a FreeBSD server for a project which has two
>  >> interfaces (rl0 and dc0) both connected to different VLANs
>  >> (192.168.1.0/24 and 192.168.100.0/24, respectively). I have been
>  >> reading through the server installation instructions as per the
>  >> FreeBSD Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/
>  >> handbook/network-dhcp.html), however, I can't seem to find much re
>  >> configuring the server to hand out 192.168.1.0/24 addresses through
>  >> the rl0 interface and 192.168.100.0/24 through the dc0 from the one
>  >> set up. Could someone provide me with a sample dhcp.conf which covers
>  >> this type of installation?
>  >>
>  >> Many Thanks,
>  >>
>  >>
>  >>
>  >> ---
>  >> Alan Neville
>  >> alan.neville3 at mail.dcu.ie
>  >> CAIS3 / 55626234
>  >> ---
>  >> "Shúil do bothar, scríobh do scéal.."
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>
>  >>
>  >
>
>
>
>
>  ---
>  Alan Neville
>  alan.neville3 at mail.dcu.ie
>  CAIS3 / 55626234
>  ---
>  "Shúil do bothar, scríobh do scéal.."
>
>
>
>
>
>
>


More information about the dhcp-hackers mailing list