Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2001 18:25:16 +0200 (CEST)
From:      =?iso-8859-1?q?m=20p?= <sumirati@yahoo.de>
To:        fasi_74@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Routing confusion !!! ????
Message-ID:  <20010807162516.43780.qmail@web13307.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
> Hello there

>  Well I am a newbie in UNIX routing ... & yesterday I was reading a book
> that tell you how to turn your hosts into routers ...
> Well I have worked most of the time in windows environments ...so I was
> confused between the default gateway "address of the router in windows " &
> making your host with 2 network interfaces a router...
> what do we do when we run demons like routed & gated on our hosts ... do we
> use them to point to a router on our network
> or we use them to make our host a router ?
> the book sort of discuss both in a combine way so I am confused how do we
> enable ip forwarding ....
> 
> thanks a lot
> Faisal

Ok. Let's start at the beginning:

You have one host with one NIC. And you have two (or more) IP-subnets with
which you communicate. You have to add to your network configuration a default
gateway where the packets for another IP-subet will be send to. (Wether it is
Windows or not.)

You have a system that is doing routing with two (or more) NICs.
Case 1:
This router is your only router. Then all you want to do is to set the
following parameter in your rc.conf
gateway_enable="YES"
The system will route the packets via the different interfaces.
Case 2:
You have a WAN connection (WAN1)in a subnet(LAN1). This subnet is connected
with another subnet(LAN2) in your building via the FreeBSD machine. There is
also another WAN connection (WAN2) connected to LAN2.
What to do now?
I assume that your FreeBSD box will be your central router. You have to enable
the option gateway_enable too. Then you have to add some route entries where
your box should send packets (ie packets from WAN1 to WAN2) from one subnet to
the other. 
Let's do it easy: Tell the routers for WAN1 and WAN2 the FreeBSD machine is
their default gateway. Tell the same things to all your client machines. Now
you have to add routes to the FreeBSD machine so that it knows where to send
the packets.
A router is a device which knows WHERE to send packets. Not more. (From a very
puristic point of view)

What routed(8) does is described in the first line of the man page:

routed, rdisc - network RIP and router discovery routing daemon

The routers can talk to each other to know which machine and which paths exist.
Normaly you don't need this.

I hope i brought a little bit light to your headache.

Marc

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

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?20010807162516.43780.qmail>