Solved

Setting up Router on Redhat Linux 8.0

Posted on 2004-08-05
4
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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