[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Making Linux 9 box act as a router

Posted on 2004-09-10
1
Medium Priority
?
187 Views
Last Modified: 2010-04-22
hello,
    I want to act my machine which is installed linux RH9 as a router. with this i also want its nearer pc should make an entry in /proc/net/route as a gateway machine in my LAN. how can i do this?
0
Comment
Question by:b123coder
[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
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 12026934
> I want to act my machine which is installed linux RH9 as a router.

echo 1 > /proc/sys/net/ipv4/ip_forward

A persistant setting on this can be done by editing /etc/sysctl.conf and setting:

net.ipv4.ip_forward = 1

Note that a router implies two interfaces, one for the local network and one as a path to the next.

> i also want its nearer pc should make an entry in /proc/net/route as a gateway machine

Dynamically you can execute:

route add default gw ip-of-router

Or on a RedHat (or similar) edit /etc/sysconfig/network and set:

GATEWAY=ip-of-router

to set the gateway at boot.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

656 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