From owner-freebsd-net@FreeBSD.ORG Mon Aug 14 18:45:32 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B2AA16A4DA for ; Mon, 14 Aug 2006 18:45:32 +0000 (UTC) (envelope-from nayak_purushotham@yahoo.com) Received: from web56114.mail.re3.yahoo.com (web56114.mail.re3.yahoo.com [216.252.110.208]) by mx1.FreeBSD.org (Postfix) with SMTP id 885EC43D45 for ; Mon, 14 Aug 2006 18:45:31 +0000 (GMT) (envelope-from nayak_purushotham@yahoo.com) Received: (qmail 14157 invoked by uid 60001); 14 Aug 2006 18:45:30 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Lyd+IZtQoS4Kzrh6LREUsmPM/vyQOYvJkkg2fj88iE1i6hQQSVI6oqXg5j1LEPj6Oo+SgfMjpnbvE34u/MP3F6Sfd6yVQgVtI7XCA939ihLpajsmqUybki4E4fMqAXAweXGJvD6PGCzXSLh/H3KYYdZzxJzfWHoduTr667HxZnw= ; Message-ID: <20060814184530.14155.qmail@web56114.mail.re3.yahoo.com> Received: from [209.136.0.128] by web56114.mail.re3.yahoo.com via HTTP; Mon, 14 Aug 2006 11:45:30 PDT Date: Mon, 14 Aug 2006 11:45:30 -0700 (PDT) From: Purushotham Nayak To: freebsd-net@freebsd.org In-Reply-To: <20060804120040.D657A16A5C4@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: freebsd-net Digest, Vol 175, Issue 5 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 18:45:32 -0000 Hi Jax, Thanks for the info. Do you know any place that might have more on the bridge interface. It's supposed to work according to the documentation, but I just can't see what I'm doing wrong. -Nayak Message: 6 Date: Thu, 03 Aug 2006 20:07:08 +0200 From: Jax Subject: Re: ethernet bridge and dhcpd To: freebsd-net@freebsd.org Message-ID: <44D23B4C.6060202@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Purushotham Nayak wrote: > Hi All, > > Hey! Sorry you dind't get my answer first because I sent in wrong format, so i post it again: Here is a thought, don't setup dhcp server on a bridge. I tried to use firewalling on this but it works differently than in linux where you can control the traffic with --physdev-in -out, you can't determine that which card where the traffic come from and which where it goes, i read something in a handbook but dont remember atm so try to accept all packet on the firewall. You can try to tell dhcpd which interface you want to use but it's possible it won't work. > I have a routerboard with two ethernet ports (sis0 and sis1). I've been trying top setup a bridge and also run the dhcpd server on it. I've setup sis0 with an IP address and sis1 is just marked up in rc.conf. The bridge seems to work because if I statically assign an IP address to a laptop and connect it to sis1 I can ping the routers IP which is what is assigned to sis0. But the laptop cannot get an IP using DHCP. tcpdumping on sis0 doesn't show me the DHCPREQUEST from the laptop that's coming in through sis1 (but it doesn't show me any traffic during ping request either but that's not broadcast so I guess that's expected). > > Here's my rc.conf > > ------------------------------------------------------------------------------------- > inetd_enable="YES" > ifconfig_sis0="inet 10.1.1.1 netmask 255.255.255.0" > broadcast parameter? > ifconfig_sis1="up" > ifconfig_ath0="down" > > gateway_enable="YES" > > this not requied for a bridge > dhcpd_enable="YES" > dhcpd_flags="-q" > try to setup the interface as i told > dhcpd_conf=/usr/local/etc/dhcpd.conf" > ----------------------------------------------------------------------- > > And here is my dhcpd.conf > > ------------------------------------------------------------------------- > ddns-update-style ad-hoc; > default-lease-time 600; > max-lease-time 7200; > > subnet 10.1.1.0 netmask 255.255.255.0 { > range 10.1.1.64 10.1.1.250; > option routers 10.1.1.1; > } > ------------------------------------------------------------------- > > Can anyone please let me know if there is something I'm doing wrong. > > nayak > > I hope it will help. Regards, JaX --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out.