From owner-freebsd-questions Thu Apr 29 1:23:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from btm4r4.alcatel.be (btm4r4.alcatel.be [195.207.101.110]) by hub.freebsd.org (Postfix) with ESMTP id 7E2D014E2B for ; Thu, 29 Apr 1999 01:23:18 -0700 (PDT) (envelope-from livensw@rc.bel.alcatel.be) Received: from rc.bel.alcatel.be (btmq9s.rc.bel.alcatel.be [138.203.65.182]) by btm4r4.alcatel.be (8.9.1a/8.9.1) with ESMTP id KAA14159; Thu, 29 Apr 1999 10:23:17 +0200 (MET DST) Received: from btm0uk.rc.bel.alcatel.be by rc.bel.alcatel.be id KAA26413; Thu, 29 Apr 1999 10:24:05 +0200 (MET DST) Received: by btm0uk.rc.bel.alcatel.be (SMI-8.6/SMI-SVR4) id KAA15387; Thu, 29 Apr 1999 10:09:31 +0200 Date: Thu, 29 Apr 1999 10:09:31 +0200 From: livensw@rc.bel.alcatel.be (Wim Livens) Message-Id: <199904290809.KAA15387@btm0uk.rc.bel.alcatel.be> To: freebsd-questions@FreeBSD.ORG, sourav+@cs.cmu.edu Subject: Re: Use of znyx card.. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-MD5: Bvp+qXQ5Lf2xsCsOk2wx3Q== Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi , > > I have been trying to use a multiport znyx card in order to use a > FreeBSD (2.2.8) box as a gateway. I'm using a znyx multiport card under 2.2.8 without any problems. > The network configuration that I'm trying to use is this: > > There are two FreeBSD machines, connected to two different hubs. I would > like connect two separate ports of the znyx card from the FreeBSD router > to two hubs. Another port goes to the local LAN. This way, all the > traffic from both the machines have to pass through the router box. > Can anyone tell me how to make this configuration working? > > Just declaring the IP addresses of the ports as a default router doesn't > help. And also, FreeBSD ignores the presence of the router if it > accesses the machines that are directly connected to the LAN. So, how > is it possible to prevent the dynamic routing so that it uses the router > box all the time? I assume you have assigned different subnets (addess ranges) to the three different LANs. Then all you need to do (besides ifconfig) is set the default route on the two hosts towards the address of the gateway on their respective subnet. Please provide the output of netstat -rn and ifconfig -a on the three machines if you want more help. Greetings, Wim Livens. Alcatel - Corporate Research Center wim.livens@alcatel.be Fr. Wellesplein 1 livensw@rc.bel.alcatel.be B-2018 Antwerpen Tel: +32 3 240 7570 Belgium. Fax: +32 3 240 9932 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message