?
Solved

Making Linux 9 box act as a router

Posted on 2004-09-10
1
Medium Priority
?
186 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 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