Solved

Making Linux 9 box act as a router

Posted on 2004-09-10
1
181 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
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 50 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

12 Experts available now in Live!

Get 1:1 Help Now