From owner-freebsd-questions Fri Aug 22 02:55:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA28831 for questions-outgoing; Fri, 22 Aug 1997 02:55:49 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA28826 for ; Fri, 22 Aug 1997 02:55:44 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id TAA05904; Fri, 22 Aug 1997 19:55:10 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id TAA09479; Fri, 22 Aug 1997 19:25:08 +0930 (CST) Message-ID: <19970822192508.35765@lemis.com> Date: Fri, 22 Aug 1997 19:25:08 +0930 From: Greg Lehey To: "Michael W. Lucas" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: problems with freebsd router References: <199708211341.JAA01219@bigbrother.rust.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199708211341.JAA01219@bigbrother.rust.net>; from Michael W. Lucas on Thu, Aug 21, 1997 at 09:41:48AM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Aug 21, 1997 at 09:41:48AM -0400, Michael W. Lucas wrote: > Hello, > > I'm trying to use a FreeBSD box (2.2.1) as a router between two different > Ethernet segments. The second Ethernet card doesn't work properly. > > The Ethernet cards are 3C590s. I've rebuilt the kernel to allow vx1, and > set gateway=yes in /etc/sysconfig, as per the mailing list archives. Both > cards have IP addresses set in sysconfig, and routerflog is set to -s, per > the man page. > > Upon boot, the machine recognizes both cards, i.e.: > > pedicular 9% ifconfig -a > vx0: flags=8843 mtu 1500 > inet 209.69.72.162 netmask 0xffffff00 broadcast 209.69.72.255 > ether 00:a0:24:ca:12:c8 > vx1: flags=8802 mtu 1500 > ether 00:20:af:f5:c4:0e > lp0: flags=8810 mtu 1500 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > pedicular 10% It would be nice to see the dmesg output for this, though I'm not sure that's the problem. > Oddly, if I do "ifconfig vx1 up", the card comes up. I can manually > assign it an IP address, but I get errors like: > > Aug 21 05:42:41 pedicular routed[67]: punt RTM_ADD without gateway > Aug 21 05:42:41 pedicular routed[67]: write(rt_sock) RTM_ADD 209.69.36.128/29 -- >> 209.69.36.129: File exists Do both nets go to the Internet? Otherwise it's unlikely that you need routed. Most people don't. Anyway, it would be interesting to see the output of netstat -rn before and after the attempted ifconfig up. And are you really setting your netmask to 0xfffffff8?a Greg