Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 01-27-2007, 10:10 AM   #1
Registered: Jul 2004
Distribution: Suse Linux 10.2
Posts: 48

Rep: Reputation: 15
Arrow Making computer act like a switch (sharing internet connection)

I have an internet connection coming over one Ethernet port on my computer and I would like to be able to set up the other port so it shares the internet connection (i.e. so I could plug a computer into that port over ethernet and it would share the internet.

Is there any way that this is possible.

Old 01-27-2007, 10:25 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Basically, you describe a local area network (LAN) consisting of two computers: one has two ethernet cards (one card for internet connection and one card for network connection). The box with two nics is the server, the second box is the client.

You need the Network HOWTO, which you can find here:
Old 01-27-2007, 10:40 AM   #3
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Sounds like you wish to setup a firewall/gateway router linux box.

Do as follows.
Setup eth0 to connect to the internet. Does the machine get on the internet? If so continue.
Now setup eth1 for lan side. Set IP to and netmask/subnet to Do not set a gateway on eth1. Masquerading handles this for you.
Goto and answer the questions to build your fireall script. Once generated save to a file say in /etc called /etc/ and make it executable ' chmod +x /etc/ '.
Run the script. ' ./ '
Goto lan machines and set ip to say, netmask, and gateway and set dns IP provided by ISP.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using switch to share internet connection jrtayloriv Linux - Networking 2 12-23-2006 07:36 PM
client and host computer internet connection sharing configuration in redhat 9 raport Linux - General 1 12-20-2005 05:54 AM
making VPN internet connection mohtasham1983 Linux - Newbie 3 09-27-2005 02:13 PM
Have Linux act as a network switch gjpc Linux - Networking 3 01-30-2005 04:38 PM
sharing the internet connection of a windows xp computer... villieb Linux - Networking 1 04-17-2004 04:00 PM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration