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 is Damn Small Linux, which is based on Knoppix, a Debian version of Linux...

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

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

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, 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 device.
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