From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 15:42:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BECC52A for ; Thu, 7 Aug 2014 15:42:51 +0000 (UTC) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 055132BD3 for ; Thu, 7 Aug 2014 15:42:50 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id w61so4481967wes.9 for ; Thu, 07 Aug 2014 08:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=yS8GUvBKsanvUr7lY4eZRzCY+58M7wwBCHybqtRvF5o=; b=IxT2ij/rQjUiSsb43xSEavQoTvStO8RaLZk2E3UDuAlPIR8T19T1yVZcCGqWLycq1l afJ9LRHCanMGBMLkof6Ie5+AEdkVJJtYiUBegsMzsgjnlkZllNLbCPaslPqhPbaPXqTS +E6fhKZxjt/wGhGzhhIi77BwYIGZklZ7Yr/OT3Lc/FthaGDIUyoji+UyptDP3nN5DjJk DBFKbAjpsACjx5JrNFVS2qzR6J7M00UMNxAD3jX9GfmUHiE5oSO1qXCiRfuQ8rdnjjHL eH7v86V0ni5xO3SVZQol2rPff5XRoIKYJDlqkrRIOskJowvuHN5Y+tu0vlONIEcfEdaZ mkMg== X-Received: by 10.194.222.5 with SMTP id qi5mr24959045wjc.62.1407426169288; Thu, 07 Aug 2014 08:42:49 -0700 (PDT) Received: from hollewijn.internal (8d690a59.ftth.concepts.nl. [141.105.10.89]) by mx.google.com with ESMTPSA id je17sm715514wic.22.2014.08.07.08.42.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 08:42:48 -0700 (PDT) From: Alban Hertroys Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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> Date: Thu, 7 Aug 2014 17:42:47 +0200 To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2014 15:42:51 -0000 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.