How to set up Internet connection sharing?

I have installed Ubuntu 12.04 LTS.

Now, I want Internet connection sharing between the two LAN cards.

How can I accomplish this?


Solution 1:

Internet connection sharing in 12.04 is plug-n-play. However, there may be exceptions. Could you clarify your setup some more, like - What is the Internet connection? Which machine is connected to Internet and how? What are the connectivity options on the peer computers that need to connect via the share?

Basically, on the computer that will be connected to the Internet, you have to edit the LAN connection and select the IPv4 Settings method - "Shared to other computers" and also check "Available to all users". See below image.

Setup Internet Connection Sharing

Now, as soon as you hookup the peer computer to the above LAN connection, Internet is available.