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

Notices


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

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


Hello,

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 10.0.1.0/24 and B has 10.0.2.0/24.

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

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, 10:17 AM   #2
leeharris
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?
 
  


Reply


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-12-2012 11:10 PM
"Difference between centos and slackware" and "also how to install scratch on centos" vijayendra.uppalapati Slackware 2 01-23-2011 03:14 AM
RHEL 5.4 (Tikanga) on "HP Proliant 380 G6" down, "kernel: Uhhuh. NMI received. ...." pkhera_2001 Linux - Hardware 12 09-01-2010 03:37 AM
RHEL install Vostro 400 - sys "Loading SCSI drivers" "loading ata_piix driver..." sreekr_news Linux - Newbie 11 01-21-2010 01:25 PM
Seeking for "Synchronise" and "patients" projects/scripts of Visual Basic LAN-Dominator.nl Programming 2 07-05-2008 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:04 PM.

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