troubleshooting Question

Linux routing question

Avatar of mswarbrick
mswarbrick asked on
Linux Networking
30 Comments1 Solution395 ViewsLast Modified:
I am configuring Linux to route for me....it is Damn Small Linux, which is based on Knoppix, a Debian version of Linux...

Two interfaces on the linux
eth0  10.0.0.100
eth1  192.168.20.1
I turned on routing with  echo "1" >> /proct/sys/net/ipv4/ip_forward.

I have two PCs running windows. ..
PC A is on the 10.0.0.0 network - Default Gateway set to 10.0.0.100
PC B is on the 192.168.20.0 network. Default Gateway set to 192.168.20.1

I want PC A and B to be able to ping each other. I have already accomplished that. I can do that with this setup. However. I also want PC A to be able to reach the Internet.
To reach the Internet, it must send to 10.0.0.1, as that is the route to the Internet.

Question: What commands can I setup on my linux router so that it will send packets for the 192.168.20.x network as it is now, to that network, but if it is Internet traffic, it will send it out to the 10.0.0.1 device.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 30 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 30 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