From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 11:56:44 2008 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 D4CDF16A417 for ; Sun, 3 Feb 2008 11:56:44 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from dd17730.kasserver.com (dd17730.kasserver.com [85.13.138.103]) by mx1.freebsd.org (Postfix) with ESMTP id 7263413C508 for ; Sun, 3 Feb 2008 11:56:44 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (sub87-230-112-222.he-dsl.de [87.230.112.222]) by dd17730.kasserver.com (Postfix) with ESMTP id 162091802C029 for ; Sun, 3 Feb 2008 12:56:44 +0100 (CET) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id 5304E15219; Sun, 3 Feb 2008 12:55:52 +0100 (CET) To: freebsd-questions@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.questions Date: Sun, 3 Feb 2008 12:55:52 +0100 (CET) Organization: Convenimus Projekt Lines: 68 Message-ID: References: <214080.29632.qm@web56907.mail.re3.yahoo.com> NNTP-Posting-Host: sunny.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1202039752 58932 192.168.100.5 (3 Feb 2008 11:55:52 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Sun, 3 Feb 2008 11:55:52 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD/6.3-STABLE (sparc64)) Subject: Re: Behind a router 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: Sun, 03 Feb 2008 11:56:44 -0000 On Sat, 2 Feb 2008 21:49:55 -0800 (PST) Eugen Udma wrote: I took the liberty of cleaning up you post. Please fix your line wrap! One word per line is not what I call easy reading. > I had a working minimal FreeBSD system until I put it behind a wireless > router. Since then, my network is not accessible anymore when I boot > BSD. On the same desktop I have a Gentoo Linux system which works just > fine, even if I didn't touch any of it's configuration files after I > installed the router. > > The router is a ZyXEL P-335U connected to a cable modem. The desktop is > plugged into a LAN port. A laptop connected by wireless has no > problems. The router gets it's IP from the ISP and acts as a firewall > and a DHCP server to my network: it serves a pool of 32 addresses > starting at 192.168.1.33. Its own address is 192.168.1.1. The IP > Subnet Mask is 255.255.255.0. > > The configuration files for FreeBSD are shown below. The output of > ifconfig and netstat are also shown for BSD and Linux. > > What I don't understand is the fact that having the same router > settings, Linux works while BSD doesn't: I can't even ping 192.168.1.1, > while the same ping in Linux works. > > I read the handbook and various other BSD information sources > on the web and I could not solve this issue. > > My question is: which config files do I have to edit in FreeBSD and what > settings should I use ? Can anybody help ? The reason seams to be a completely broken configuration of dhclient.conf resulting in several problems. Among them that two boxes get the same IP address. Both your BSD and you Linux box have 192.168.1.33. > /etc/rc.conf > --------------------------------------------------------------------------- > ifconfig_dc0="DHCP" > hostname="localhost" > --------------------------------------------------------------------------- > > /etc/dhclient.conf > --------------------------------------------------------------------------- > interface > "dc0" > { > send > host-name > "localhost"; > request > subnet-mask, > broadcast-address, > routers, > domain-name-servers, > domain-name, > time-servers; > require > domain-name-servers; > } > --------------------------------------------------------------------------- The problem is probably you sending that name "localhost" which should never have any other address than 127.0.0.1. Why did you play with the settings anyway? Normally a dhcp-client works right out of the box. I have never had to change any of the configurations - ever. Regards, Chris