From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 07:47:17 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A25CB1065670 for ; Tue, 3 Jan 2012 07:47:17 +0000 (UTC) (envelope-from james@colannino.org) Received: from gateway02.websitewelcome.com (gateway02.websitewelcome.com [67.18.36.20]) by mx1.freebsd.org (Postfix) with ESMTP id 69C7A8FC08 for ; Tue, 3 Jan 2012 07:47:17 +0000 (UTC) Received: by gateway02.websitewelcome.com (Postfix, from userid 5007) id 5066929C9664E; Tue, 3 Jan 2012 01:47:16 -0600 (CST) Received: from gator1823.hostgator.com (gator1823.hostgator.com [184.173.227.20]) by gateway02.websitewelcome.com (Postfix) with ESMTP id 461D629C9662E for ; Tue, 3 Jan 2012 01:47:16 -0600 (CST) Received: from [127.0.0.1] (port=56418 helo=localhost) by gator1823.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Rhz5Y-0007sE-Kw; Tue, 03 Jan 2012 01:47:16 -0600 Received: from 69.12.176.48 ([69.12.176.48]) by gator1823.hostgator.com (Horde Framework) with HTTP; Tue, 03 Jan 2012 01:47:16 -0600 Message-ID: <20120103014716.18794962z70vhr40@gator1823.hostgator.com> Date: Tue, 03 Jan 2012 01:47:16 -0600 From: james@colannino.org To: freebsd-questions@freebsd.org References: <20111229014819.11102imhiognb9es@gator1823.hostgator.com> <4EFC2405.4080103@infracaninophile.co.uk> <20111229112111.1079640ol70p51u0@gator1823.hostgator.com> <4EFD5E9F.3040205@b1c1l1.com> In-Reply-To: <4EFD5E9F.3040205@b1c1l1.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.9) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator1823.hostgator.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - colannino.org X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost) [127.0.0.1]:56418 X-Source-Auth: james@colannino.org X-Email-Count: 1 X-Source-Cap: Y3JhenlkcmM7Y3JhenlkcmM7Z2F0b3IxODIzLmhvc3RnYXRvci5jb20= Subject: Re: Static IP on a Bridge X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 07:47:17 -0000 Hey everyone, Sorry for the late response. Got sidetracked during the New Year. Below is my response: Quoting Benjamin Lee : > On 12/29/2011 09:21 AM, james@colannino.org wrote: >> Quoting Matthew Seaman : >> >>> What's the error message you see when you fail to ping out? >> >> ping: cannot resolve google.com: Host name lookup failure > > It seems that you are currently receiving your resolver from DHCP as > well, you should statically configure that in /etc/resolv.conf: > > nameserver 192.168.1.1 I already have nameservers in /etc/resolv.conf. Everything was fine before I setup the bridge. >>> What does the routing table (netstat -r) look like before and after DHCP? >> >> Before DHCP: >> >> Routing tables >> >> Internet: >> Destination Gateway Flags Refs Use Netif Expire >> localhost link#11 UH 0 0 lo0 > [...] > > What happens if you run 'route add default 192.168.1.1' instead of DHCP? > > What is the output of '/etc/rc.d/routing restart'? [root@frodo ~]# route add default 192.168.1.1 route: writing to routing socket: Network is unreachable add net default: gateway 192.168.1.1: Network is unreachable [root@frodo ~]# /etc/rc.d/routing restart route: writing to routing socket: No such process delete net default: gateway 192.168.1.1: not in table delete net ::ffff:0.0.0.0: gateway ::1 delete net ::0.0.0.0: gateway ::1 delete net fe80::: gateway ::1 delete net ff02::: gateway ::1 ifconfig: interface auto does not exist route: writing to routing socket: Network is unreachable add net default: gateway 192.168.1.1: Network is unreachable add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 add net fe80::: gateway ::1 add net ff02::: gateway ::1 James