On Tue, 23 Jun 1998, dreamwvr wrote:

> linux box as a router? Would like to ideally get intimate with using 
> bgp and ospf using red hat as a router over 100 base T. Is this 
> different than setting up two nics and doing route add and default route?

No.  bgp and ospf are routing protocols.  When you run a routing protocol,
you typically have at least three network interfaces (and 64MB of RAM :) )
in your system.  One or more for your local network(s) and at least two
for connectivity to the rest of the Internet.

Suppose you have two uplinks to the Internet - one through MCI, and one
through Sprint, say.  You needs some sort of protocol by which you can
determine which sites should be reached through the MCI link, and which
sites should be reached through the Sprint link.  Obviously sites
connecting to MCI or Sprint will go through that link, but sites on, say,
UUNet will have to go through one or the other.  The routing protocols are
how the routers determine which sites go through which links.  All the
routers on the Internet maintain a database of, essentially, how
"expensive" it is to connect to any other site through any particular
link.  Every router simply sends the data through the cheapest link.

BGP is the protocol used internet-wide for such calculations.  OSPF is
used in other WAN situations.  For example, suppose you have a large WAN
with many ISDN lines coming in, and several terminal servers for them.
Each of those terminal servers functions as the gateway for all networks
attached to them over an ISDN link.  But the networks on the far side of
the ISDN connections don't know when they'll connect or who they'll get
when they dial in.  So the terminal server uses OSPF to tell the other
systems in the network that he is the current gateway to that particular
subnet.  But the rest of the Internet doesn't care, because once it gets
to your WAN, that's all it needs to know.  Therefore BGP is used at your
router to connect to the rest of the internet, and OSPF is typically used
internally within an organization.

Cisco routers excel at this sort of thing.  gated can do it too.

> I suppose i will have to do a arp -s ext interface mac address 1 

I don't think so.  You shouldn't need to fool with the arp table at all.

> but am really not sure if there is any more to it. Hmmm... also do 
> i have to do a make config to rebuild the kernel to do this? Been

You should.  Any time you do anything serious you should rebuild the
kernel.  :)  In particular look at the "optimize as router, not host"
compile-time option.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to