Routing between LANs and the Internet

Dear Experts,
I have a following setup:
[list]Home LAN connected to the Internet on[/list]
[list]Lab/Test LANs on 192.168.30.x & 192.168.40.x[/list]
[list]VMnet3 for .30 and VMnet4 for .40[/list]
I would like some of the machines in the Lab/Test LANs to access the Internet, so I'd tried to setup a router.. without having any success so far
Router (RHEL6.9):
eth0 =, GW:
eth1 =
eth2 =
#netstat -nr
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface   U         0 0          0 eth0   U         0 0          0 eth1   U         0 0          0 eth2     U         0 0          0 eth0     U         0 0          0 eth1     U         0 0          0 eth2         UG        0 0          0 eth0
Desktop on .30 (also RHEL6.9)
eth0 =, GW:
#netstat -nr
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface   U         0 0          0 eth0         UG        0 0          0 eth0
I can ping the GW at but that's about it... not sure what is missing...  Please help!  Thanks.

p.s. I also included the images for both settings.
swgitIT ProfessionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

web_trackerComputer Service TechnicianCommented:
What type of internet service provider ( ISP) do you have? You should receive some type of device from your ISP to connect you to the internet that connects either through the cable or through the tv lines.
Mihai BarbosTrying to tame bits. They're nasty.Commented:
Do you have IP forwarding enabled ?
IP Forwarding
N. SpearsSr.Net.EngCommented:
Do you have NAT configured. You can't just route to the internet. You need to nat behind a public address.
Maximize Customer Retention with Superior Service

The IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more to help build customer satisfaction and retention.

swgitIT ProfessionalAuthor Commented:
@mihai - yes, i did enable forwarding in /etc/sysctl.conf
skullnobrainsCommented: is not the internet : it is a LAN address likely provided by your ISP

chances are the ISP will NAT to the actual WAN address and ignore other addresses

try and SOURCE NAT 192.168/16 networks to
if the address is as i can see in the screenshot, the same applies.

in linux, you can nat to eth0 address without specifying the address which is convenient if that address is acquired through dhcp and changes
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.