Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed Ubuntu 12.04 LTS.

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

How can I accomplish this?

share|improve this question
    
You should connect one network card to a router with Internet connectivity and the other to a LAN. You Ubuntu system should be configured to provide so-called NAT service for the LAN. There are many guides to be found on the web, e.g., Google brings up: codeghar.wordpress.com/2012/05/02/… –  jdthood Jan 29 '13 at 13:26
add comment

1 Answer 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.

share|improve this answer
1  
I have configured the system with DHCP. the NIC with DHCP can provide Ip to clients. Also under network manager I have set shared to other computers. But still the client cannot browse internet –  user126959 Jan 30 '13 at 6:59
    
@Sri: AFAICT this disables the dhcp client on the adapter, which kills it's connectivity. The option shown appears to bridge the two connections, not NAT them, but it is insufficiently descriptive. Is there a way to NAT one connection onto another for connection sharing, via GUI? –  nmr May 18 at 21:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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