I have 2 LAN Cards Connected in one PC using Ubuntu 16.04

Router (ISP) is connected to PC through one LAN Card using DHCP —,,

The other LAN Card is connected to a 24 Port Switch using Static IP —,, No Gateway

Now I just need to transmit the Internet through Ubuntu PC from one LAN to the other and my Switch shall be connected to other users using Static IP.

Any help?

enter image description here


You will have to set up your PC for ip forwarding and NAT. You can find an easy HOWTO here:

Quick-Tip: Linux NAT in Four Steps using iptables - by Frank Wiles

Make sure to configure gateway for your static side.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.