From owner-freebsd-questions Thu Jul 12 15:39:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.khmere.com (sdsl-216-36-70-194.dsl.sjc.megapath.net [216.36.70.194]) by hub.freebsd.org (Postfix) with ESMTP id 8380537B405 for ; Thu, 12 Jul 2001 15:39:34 -0700 (PDT) (envelope-from nathan@khmere.com) Received: from khmere.com (ns2.khmere.com [216.36.70.196]) by ns1.khmere.com (8.11.3/8.8.7) with ESMTP id f6CMdFw95182; Thu, 12 Jul 2001 15:39:20 -0700 (PDT) Message-ID: <3B4E2715.7C908DA@khmere.com> Date: Thu, 12 Jul 2001 15:39:17 -0700 From: Nathan X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Joseph Garcia Cc: questions@FreeBSD.ORG Subject: Re: How do I Route 3 different networks On One Interface References: <20010712143108.R19430-100000@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Joseph Garcia wrote: > Hi! > > Okay, so this might sound goofy some of the seasoned routing > proffesionals, but I'm taking a Cisco Routing class and I wanted to > practice some basic routing concepts using FreeBSB. > > Right now I have been challeged by this problem that I have been > experimenting with my co-workers (who are also taking the class). Here's > our experiment. We have 3 networks:192.168.0.0/24, 192.168.10.0/24, and > 192.168.100.0/29 which we would like to have packets routed to and from. > > This is what I have tried to do. I have successfully set up a FreeBSD box > with one network interface (I know it might work better with 3 network > interfaces, but I'm limited to one) with the IP addresses: 192.168.0.8, > 192.168.10.100, and 192.168.100.1 with their corresponding netmasks. > Here's my output of ifconfig: > > [14:24] root@unix (~) # ifconfig tl0: > flags=8843 mtu 1500 > inet6 fe80::280:5fff:feb6:3731%tl0 prefixlen 64 scopeid 0x1 > inet 192.168.0.8 netmask 0xffffff00 broadcast 192.168.0.255 > inet 192.168.10.100 netmask 0xffffff00 broadcast 192.168.10.255 > inet 192.168.100.1 netmask 0xfffffff8 broadcast 192.168.100.7 > ether 00:80:5f:b6:37:31 > media: autoselect (10baseT/UTP) status: active > supported media: autoselect 10baseT/UTP 10baseT/UTP > 10base5/AUI 10base2/BNC 10baseT/UTP none > faith0: flags=8000 mtu 1500 > gif0: flags=8010 mtu 1280 > gif1: flags=8010 mtu 1280 > gif2: flags=8010 mtu 1280 > gif3: flags=8010 mtu 1280 > lo0: flags=8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > sl0: flags=c010 mtu 552 > > Also, I have workstations on each of the networks. I have set the sysctl > variable net.inet.ip.forwarding to 1. The workstations seem to be able to > ping all the IP addresses on the FreeBSD box, but not any further. I'm > guessing that packets aren't being forwarded, but I don't know why. I'm > thinking that it has to do with my routing table. I'm not too familiar on > how to setup the routing table when 3 networks are on the same interface. > > I hope this all makes some sense. Thanks for any help. I'm sure this is > something simple that I'm overlooking. > > TIA, > > Joey > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Do us a favor and dump your routing table like: netstat -nr also do: netstat -in this will help people answer your question -nb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message