At 12:43 PM 3/2/00 +0530, Rajesh P Jain wrote:
>"Hello"
>       Please help me out regarding the following questions :
>
>1.     I have a 3 pentium machine and I have installed Debian Linux. 
>Please tell me what are the requirements to make one of them as a 
>router. I will use an ethernet interface between the 3 machines. 
>Please list out all the configuration changes/details required 
>for the same.

This request asks for a bit more detail than I can put into an e-mail
message. Generally, I's suggest reading some HowTos, specifically Firewall,
IP MAsquerade, and IPCHAINS.   All can be found via the listing at URL
http://www.linuxdoc.org/HOWTO/HOWTO-INDEX-3.html#ss3.1 . They are probably
on your Debian hosts as well (look in /usr/doc).

You might want to look at the archives and other documentation of the Linux
Router Project. LRP is a small-Linux distribution designed for dedicaated
routers, but its docs and mailing lists discuss broader routing questions as
well. The best entry into LRP is an "unofficial" directory of LRP sites
maintained at URL http://lrp.c0wz.com . 

Basically, you need to do these things:

1. Enable IP forwarding (echo "1" >/proc/sys/net/ipv4/ip_forward). This is
probably already enabled, if you are using a default Debian kernel; modern
kernels usually come with it turned on.

2. Routing requires two or more networks. So make sure each network has an
interface (NIC) proprely installed and configured. Adding lines to
/etc/init.d/network is the easiest way to do this.

3. Routing requires ... well, routes. For static routes to networks, you can
add them with the "route" command, usually by adding lines to
/etc/init.d/network . The man page for "route" is pretty good here.

4. Add appropriate firewall rules. You do this with ipfwadm and ipmasqadm (I
think) for Debian Slink (kernel 2.0.x) or with ipchains for Debian Potato
(kernel 2.2.x). I can't tell you what rules are appropriate for your setup.

>2.     Please tell me what is the protocol stack provided by linux. 
>Also tell me how to make both OSPF and RIP enabled?

I'm afraid I am not sufficiently expert in routing to do this. You probably
want to look at packages like gated for support for OSPF (but this is from
memory -- I didn't check -- so don't count on it).

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to