Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2014 17:42:47 +0200
From:      Alban Hertroys <haramrae@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   How to set up wired+wireless using isc-dhcpd&bind9 so that IP's are in the same subnet?
Message-ID:  <1FE21504-EAA2-4814-A371-25039EA405EB@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I currently have a setup at home where I have a FreeBSD 9-STABLE gateway =
with both an em0 and an ath0 adapter (and a 3rd adapter to the =
internet).
Wired devices such as the Mac, the A/V receiver, the playstation and the =
TV are configured in one subnet (=93wired=94) with IP-ranges in =
10.0.0.0/24.
Wireless devices such as the iPad and the mobile phone are configured in =
another subnet (=93wireless=94) in IP-ranges 10.0.1.0/24.

That works like a charm, except=85 Apps on the iPad to control the TV or =
the playstation _insist_ that both devices are on the same subnet. =
Apparently they aren=92t, as those apps can=92t find my wired devices.

I have been trying to fix that, but I can=92t seem to wrap my head =
around how to do that.

* I currently have 2 bind9 zone files: wired.db & wireless.db and their =
reverse files: wired.rev & wireless.rev. To achieve what those apps seem =
to want I suppose I need to merge both zone-files into a single zone, =
such that the domain names are the same between both networks (assuming =
that domains and zones are equivalent).

* My (isc-)dhcpd.conf currently has 2 subnets. I am under the impression =
that I need to keep it that way, as either subnet requires its own =
gateway and DNS server addresses - they are on different =
interfaces/routes. I=92ll probably have to do something with the inet =
addresses and masks to make both subnets look like a single one from the =
outside, but how? My attempts so far have mostly caused errors about =
overlapping ranges from dhcpd or broke networking entirely.

I=92ve been trying to merge both subnets under 10.0.0.0/24 as subnets =
10.0.0.0/25 + 10.0.0.128/25. That didn=92t work, probably because it =
breaks broadcasts since the =93wired" subnet won=92t have broadcast =
address 10.0.0.255 in its range, or if it does, it probably translates =
to the =93wireless=94 subnet and goes to the wrong gateway/DNS.

I=92ve also been trying to find information how to set up bind zone =
files for C-level domains, as with such a setup my two IP-ranges should =
fall within the same domain, which should achieve the same thing =
(provided those apps are willing to accept a C-level domain range, I =
imagine they might not for security considerations).

I can=92t be the first to attempt something like this, but Google seems =
to disagree. I=92d appreciate some help, or better yet, a working =
similar configuration that I can compare mine against as I=92m obviously =
a bit out of my league here.

Regards,

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1FE21504-EAA2-4814-A371-25039EA405EB>