troubleshooting Question

Creating a simple linux route with bash

Avatar of adastratechsupport
adastratechsupport asked on
LinuxSystem ProgrammingLinux Distributions
12 Comments1 Solution584 ViewsLast Modified:
I am windows guru who is slowly converting to Linux. One of my projects is to set up a really simple linux router in bash. So far I have installed linux with kernel 2.4 and at the bash prompt have setup both of my ehternet cards using ifconfig. I have also set up the default gateway with the route command. Here is the set up
Eth0 DHCP (to my isp)
ETH1 Static (to my local network)
default gw

From my local machine I can connect to the web and ping without any problems. When I use a machine connected to my internal network I can ping and all the 192.168 adresses but can't go any further. I need to know how to set up the linux route so it will forward my local traffic onto the web?

I would really apreicate some examples I am very new to bash am having problems getting used to a prompt again.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros