From owner-freebsd-questions Thu Jul 12 14:34:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from buug.homeip.net (we-66-27-250-19.we.mediaone.net [66.27.250.19]) by hub.freebsd.org (Postfix) with ESMTP id 35D2E37B401 for ; Thu, 12 Jul 2001 14:34:50 -0700 (PDT) (envelope-from bear@buug.homeip.net) Received: from localhost (localhost [127.0.0.1]) by buug.homeip.net (8.11.4/8.11.4) with ESMTP id f6CLZK519448 for ; Thu, 12 Jul 2001 14:35:21 -0700 (PDT) (envelope-from bear@buug.homeip.net) Date: Thu, 12 Jul 2001 14:35:20 -0700 (PDT) From: Joseph Garcia X-X-Sender: To: Subject: How do I Route 3 different networks On One Interface Message-ID: <20010712143108.R19430-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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