From owner-freebsd-questions Tue Sep 12 13:20:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 806E237B424 for ; Tue, 12 Sep 2000 13:20:26 -0700 (PDT) Received: from [212.238.106.171] (helo=pig.bigmama.xx) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 13YwXZ-00001o-00 for freebsd-questions@freebsd.org; Tue, 12 Sep 2000 20:20:25 +0000 Received: from gazelle.bigmama.xx (gazelle.bigmama.xx [192.168.118.2]) by pig.bigmama.xx (8.9.3/8.8.8) with SMTP id WAA00706 for ; Tue, 12 Sep 2000 22:19:27 +0200 Message-Id: <200009122019.WAA00706@pig.bigmama.xx> Received: (qmail 33629 invoked from network); 12 Sep 2000 20:02:09 -0000 Received: from softdnserror (HELO gazelle.bigmama.xx) (127.0.0.1) by softdnserror with SMTP; 12 Sep 2000 20:02:09 -0000 X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: cjclark@alum.mit.edu Cc: freebsd-questions@freebsd.org Subject: Re: Dual homed host routing problem In-reply-to: <20000911232915.J69158@149.211.6.64.reflexcom.com> X-Comment: Original message from "Crist J . Clark" dated Mon, 11 Sep 2000 23:29:15 -0700. X-Face: #Po0_m3z*iRKljKHjhATgQN+F!N+U5>e~\Nq;huNtQ}e95nk}9VH-w|FzO`92A%L6$XGb}jsiS4oI<%<)2ec}-p)6]:H;,z@z=7-d{,u74\uTIQx,|k9QrS+!7E),Ae?Dq_96>ZLRB(#O-em'go!{+Y8?k^MKHTAWE X-image-url: http://www.paranoia.demon.nl/jrsm.gif X-pgp-key: http://keys.pgp.com:11371/pks/lookup?op=get&search=0x9EF951A5 X-url: http://www.paranoia.demon.nl From: "JP" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Sep 2000 22:02:09 +0200 X-AntiVirus: scanned for viruses by AMaViS 0.2.1-pre2 (http://amavis.org/) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Mon, 11 Sep 2000, "Crist" == Crist J . Clark wrote: Crist> The gateway_enable="YES" and manually setting Crist> net.inet.ip.forwarding is redundant, that's what the Crist> gateway_enable does. Ok Crist> How have you tested it? What are the symptoms of yur problem? Crist> Saying ed1 does not "fully forward" is a little unclear? Are Crist> you trying to connect from a host on ed0's LAN to one on Crist> ed1's? Or the other way around? Can the gateway connect to Crist> machines on either LAN? -- Crist J. Clark cjclark@alum.mit.edu What happens is that from both the gateway machine and all hosts on the 192.168.118 network, I am able to access the ed1 interface, but anything beyond the ed1 (other computers connected to that subnet, a router that sits there, etc) are unreachable. But they are not totally unreachable, the traffic seems to get to the 172... address, but does not get routed back. I say that because the message returned is "host is down" after only about 10 seconds but if i for example attempt to ping a host that really does not exist, telnet will wait for many minutes then the eventual message is "Unable to connect to remote host". Additionally, I see the traffic hit the nics/router on the other side (the lights flash). I also see now after trying Steve van den Akker's suggestion to use the "cheat sheet" that natd is reporting "failed to write packet back (host is down). Any ideas what I am doing wrong? Regards, Patrick > On Mon, Sep 11, 2000 at 11:33:49PM +0200, JP (J. Patrick Russell) wrote: > > HELP! I'm trying to setup a dual homed host with two ethernet devices. Only > > one device seems to be forwarding. ed1 never seems to fully forward, I have > > switched the card out with another type (rl0), but the behavior was identical > > -- only interface ed0 worked. ed1 is recognized and the cards do not seem to > > conflict: > > > > dmesg relevant output: > > > > ed0: port 0x6000-0x601f irq 11 at device > > 12.0 on pci0 > > ed0: address 52:54:00:da:22:0c, type NE2000 (16 bit) > > ed1: port 0x6100-0x611f irq 10 at device > > 14.0 on pci0 > > ed1: address 52:54:00:da:21:6d, type NE2000 (16 bit) > > > > and ed1 is automatically added to the routing table: > > > > Internet: > > Destination Gateway Flags Netif Expire > > default 172.16.1.2 UGSc ed1 > > 127.0.0.1 127.0.0.1 UH lo0 > > 172.16.1/24 link#2 UC ed1 => > > 172.16.1.2 link#2 UHLW ed1 => > > 172.16.1.3 52:54:0:da:21:6d UHLW lo0 > > 192.168.118 link#1 UC ed0 => > > 192.168.118.1 52:54:0:da:22:c UHLW lo0 > > 192.168.118.2 0:e0:4c:66:77:3d UHLW ed0 750 > > > > getting to the ed1 interface from the ed0 subnet works, but nothing gets > > forwarded beyond the nic. > > gateway_enable="YES" is set in rc.conf, and sysctl is set so > > net.inet.ip.forwarding=1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message