Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 03:39:59 -0500
From:      "Jason Cribbins" <jasonc@concentric.net>
To:        <questions@freebsd.org>
Subject:   Unable to serve DHCP on two subnets on same interface
Message-ID:  <023f01c1611e$764aa0c0$3e01a8c0@lan>

next in thread | raw e-mail | index | archive | help
I will explain my problem up front.  The file contents are below:

I am trying serve DHCP assignments on from one bix for two subnets that
physically reside on the same LAN.

If I comment one or the other ifconfig statement then the machine refuses to
serve any addresses for that subnet it is no longer part of and it also
makes it impossible for a machine from the opposite subnet to reach it.

How can I serve both subnets from one machine with one interface?  So far
things work great as long as I only try to serve the 192.168.1.0 subnet.

The message I get on bootup::
Oct 30 07:26:27 mail dhcpd: Interface lnc0 matches multiple shared networks

Setup:
One Ethernet interface: lnc0
Two subnets: 66.92.216.0/255.255.255.240 (Assigned by ISP #1) and
192.168.1.0/255.255.255.0 (used through NAT for ISP #2).
I want to serve both subnets using this one machine and interface.
192.168.1.0 is almost all dynamically assigned except for one box.  Most of
66.92.216.0 will be static assigned but I will still have a pool in there
for the remaining unassigned addresses in my block.

These are lines from /etc/start_if.dc0:
ifconfig lnc0 inet 66.92.216.6 66.92.216.255 netmask 255.255.255.0
ifconfig lnc0 inet 192.168.1.202 192.168.1.255 netmask 255.255.255.0 alias

These are lines from /etc/dhcpd.conf:  66.92.216.0 subnet commented out to
allow dhcpd to work on 192.168.1 for the time being

# Global Settings
option domain-name "kibserv.org";
option domain-name-servers ns1.kibserv.org, 216.200.176.4;
default-lease-time 600;
max-lease-time 7200;
ddns-update-style ad-hoc;

authoritative;

log-facility local7;

#subnet 66.92.216.0 netmask 255.255.255.240
#{
#  option routers 66.92.216.1, 192.168.1.1;
#  option domain-name "kibserv.org";
#  option broadcast-address 66.92.216.255;
#  default-lease-time 600;
#  max-lease-time 7200;
#
#  host mgm
#  {
#    hardware ethernet 00:a0:cc:28:41:fa;
#    fixed-address 66.92.216.5;
#  }
#
#  host www
#  {
#    hardware ethernet 00:20:78:08:09:fc;
#    fixed-address 66.92.216.2;
#  }
#
#  host ftp
#  {
#    hardware ethernet 00:80:5f::f4:10:42;
#    fixed-address 66.92.216.3;
#  }
#}

subnet 192.168.1.0 netmask 255.255.255.0
{
  option routers 192.168.1.1, 66.92.216.1;
  option domain-name "lan";
  option broadcast-address 192.168.1.255;
  default-lease-time 600;
  max-lease-time 7200;

  host kib
  {
    hardware ethernet 00:e0:29:84:b9:36;
    fixed-address 192.168.1.200;
  }

  pool
  {
    range 192.168.1.48 192.168.1.63;
  }
}

Thanks for any help.  I am by far no expert in dhcp.  But the hassles of
managing as many machines and the dozen or so laptops that come and go here
it getting out of hand.  Most of the addresses in use are still stacially
set in each machine which is causing conflicts from time to time.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023f01c1611e$764aa0c0$3e01a8c0>