Solved

Setting up Router on Redhat Linux 8.0

Posted on 2004-08-05
4
316 Views
Last Modified: 2010-03-18
Hi,

I need to setup a router on a newly installed Redhat Linux 8.0 server. I am very new to this concept.

I have installed the Linux OS on a DELL PC. There are 3 NICs on that machine. I need to setup the router with all these three NICs. I need not make it as a DHCP server. And also this has the fixed IP addresses for  the three NICs.

Can anybody please let me know how to do this? Is there anu document that gives the step by step procedure?

Thanks in advance
Regards
Murali
0
Comment
Question by:muralimohanb
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 200 total points
ID: 11735106
If the Linux box will simply be a router for three attached local networks it will suffice to simply enable ip forwarding ('echo 1 > /proc/sys/net/ipv4/ip_forward' or setting "net.ipv4.ip_forward = 1" in /etc/sysctl.conf).  Then configure the default gateway on each machine all of the attached networks to use the local IP (on that network) of the Linux box.

That's fine for a simple router for local networks, but if two of the networks are local and using private IP space and the third is the Internet you'll need to se up a NAT'ing firewall on the Linux box.
0
 
LVL 1

Accepted Solution

by:
Red15 earned 300 total points
ID: 11839775
http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/

Here is the official HOWTO on how to set up full router capabilities regarding
to network masquerading.

Also to jlevie :
note that in RedHat I believe you have a "cleaner" way of setting ip_forward to 1:
Edit the /etc/sysconfig/network
There you will find a line :
"IP_FORWARD=no"

(Note config is from RedHat 9.0, your mileage may differ a bit)

Obivously setting this setting to yes toggles the automatic switching at boot time.
This way of setting the ip_forward flag is preferable since sysctl.conf may be executed
before the script RedHat has provided. So sysctl will enable ip_forward but then
RedHat will disable it again.

For more specifics about routing tables, just keep asking.
0
 

Author Comment

by:muralimohanb
ID: 11867532
Hi,

For dynamic routing we have installed gated.

Regards
Murali
0
 
LVL 1

Expert Comment

by:Red15
ID: 11867612
So did it work now ?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question