Solved

Setting up Router on Redhat Linux 8.0

Posted on 2004-08-05
4
314 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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,

For dynamic routing we have installed gated.

Regards
Murali
0
 
LVL 1

Expert Comment

by:Red15
Comment Utility
So did it work now ?
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now