Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-01-2011, 11:15 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 10

Rep: Reputation: 0
Question "Basic" router using RHEL or CentOS...


Maybe, I'm over complicating this in my head...maybe not.

There have been plenty of occassions when I've needed to setup a RHEL or CentOS box to act as a NAT router / firewall, and I am able to do this fairly easily by enabling ip_forwarding, and setting up a couple of iptables FORWARD rules and a nat rule.

However, what I'd like to do now, sounds in theory like it should be simpler, but I seem to be having a mental block and all of my searches pull up results about people playing around with LinkSys routers and so on.

Let me give an example scenario. Let's say I have two subnets, A and B. A has the IP range and B has

I have my RHEL box, with two NICs. One is connected to subnet A and has the IP, the other to subnet B with the IP

All I want to do, is make clients on each subnet be able to talk to each other via my Linux box.

No, NAT'ing, no firewall rules, just straight up, good old-fashioned routing.

Does that make sense? Should that be easy? Has my brain given up on me?

Thanks in advance.
Old 02-01-2011, 11:17 AM   #2
LQ Newbie
Registered: Feb 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Erm...hang on... is this just a case of enabling ip_forward and adding the relevant routes to the routing table?

Is it really that easy?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Difference between centos and slackware" and "also how to install scratch on centos" vijayendra.uppalapati Slackware 4 07-13-2012 12:10 AM
"Difference between centos and slackware" and "also how to install scratch on centos" vijayendra.uppalapati Slackware 2 01-23-2011 04:14 AM
RHEL 5.4 (Tikanga) on "HP Proliant 380 G6" down, "kernel: Uhhuh. NMI received. ...." pkhera_2001 Linux - Hardware 12 09-01-2010 04:37 AM
RHEL install Vostro 400 - sys "Loading SCSI drivers" "loading ata_piix driver..." sreekr_news Linux - Newbie 11 01-21-2010 02:25 PM
Seeking for "Synchronise" and "patients" projects/scripts of Visual Basic Programming 2 07-05-2008 08:21 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration