From owner-freebsd-questions Mon Jun 22 06:31:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA29955 for freebsd-questions-outgoing; Mon, 22 Jun 1998 06:31:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sierrahill.com (sierrahill.com [207.8.11.162]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA29915; Mon, 22 Jun 1998 06:30:55 -0700 (PDT) (envelope-from rjoe@sierrahill.com) Received: (from rjoe@localhost) by sierrahill.com (8.8.7/8.8.7) id IAA05713; Mon, 22 Jun 1998 08:26:11 -0500 (CDT) (envelope-from rjoe) From: Joe Schwartz Message-Id: <199806221326.IAA05713@sierrahill.com> Subject: routing issue To: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Date: Mon, 22 Jun 1998 08:26:11 -0500 (CDT) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Folks, I want to use a FreeBSD machine as an Internet host with 2 ethernet cards. One card on an Internet subnet and the other card to service the internal private network. I'm having trouble getting it to route between the 2 interfaces. I have 3 machines setup for a test. machine a: ---------- ifconfig -a ep0: flags=8843 mtu 1500 inet 207.8.11.165 netmask 0xfffffff8 broadcast 207.8.11.167 ether 00:a0:24:11:c7:19 machine b: ---------- ifconfig -a ep0: flags=8843 mtu 1500 inet 207.8.11.166 netmask 0xfffffff8 broadcast 207.8.11.167 ether 00:10:4b:29:aa:a7 ep1: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:10:4b:20:94:3a machine c: ---------- ifconfig -a ep0: flags=8843 mtu 1500 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:10:4b:29:ab:da machine a's default route is set to 207.8.11.166 machine c's default route is set to 192.168.1.1 machine b has a route between the 2 interfaces by issuing: (but doesn't work) route add -net 192.168.1.0 207.8.11.166 0 machine b can ping machine a and c machine a can ping: 207.8.11.166 and 192.168.1.1 but not 192.168.1.2 machine c can ping: 192.168.1.1 and 207.8.11.166 but not 207.8.11.165 ============================================================== In /etc/rc.conf I've got: gateway_enable="YES" router_enable="YES" Machine b ISN'T routing between the 2 interfaces. Any suggestions? ----- I have several machines set up like this for clients working perfectly under FreeBSD 2.1.x. Does FreeBSD 2.2.x expect a subtle difference somehow? Is my 'route add' command incorrect? HELP!! THANKS, Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message