Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2001 15:39:17 -0700
From:      Nathan <nathan@khmere.com>
To:        Joseph Garcia <bear@buug.homeip.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: How do I Route 3 different networks On One Interface
Message-ID:  <3B4E2715.7C908DA@khmere.com>
References:  <20010712143108.R19430-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 10baseT/UTP
> 10base5/AUI 10base2/BNC 10baseT/UTP <hw-loopback> none
> faith0: flags=8000<MULTICAST> mtu 1500
> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
>         inet6 ::1 prefixlen 128
>         inet 127.0.0.1 netmask 0xff000000
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B4E2715.7C908DA>