LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-30-2009, 01:13 AM   #1
perham
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
sharing Internet connection with more than one client


I have an ubuntu 7.10 ICS server that works fine and I have routed my traffic using firestarter to my windows PC. my server's IP is 192.168.0.1 and my windows client is 192.168.0.2. now, I have bought another PC and I want to assign 192.168.0.3 to it and connect it to ubuntu server. in windows, all I needed to do was to connect the first client to first network card, second one to second network card, bridge two connections in my server, assign 192.168.0.1 to the network bridge in my server and 192.168.0.2 and 192.168.0.3 to my clients, then share my internet connection. I also could access shared files in any computer from all of them. can I have the same functionality with a linux server?

I'll make a list to make it easy if you don't wanna read the whole post:

things I want:

1. assign one ip address to multiple interfaces in linux, making them bonded.

2. sharing the internet connection with both clients.

3. ability to use all shared files over a network.

any help is appreciated, thanks in advance.
 
Old 01-30-2009, 03:50 AM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

Quote:
things I want:

1. assign one ip address to multiple interfaces in linux, making them bonded.
sure, use the brctl bridge utility.
create the bridge eg. br0 - and put the NICs as its member.
#brctl --help will help you a lot better.

Quote:
2. sharing the internet connection with both clients.
you mean like in bridge as above bridging? i dont think so - its a switch/hub and it cant route. but if you use linux as a router (using 2 or more NICs) sure, either using iptables -t nat -j MASQUERADE, or use the -j SNAT.

Quote:
3. ability to use all shared files over a network.
sure - you can use samba for compatibility with windows networking, or you can use native unix/linux NFS.

HTH.
 
Old 01-30-2009, 05:19 AM   #3
perham
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rossonieri#1 View Post
hi,



sure, use the brctl bridge utility.
create the bridge eg. br0 - and put the NICs as its member.
#brctl --help will help you a lot better.



you mean like in bridge as above bridging? i dont think so - its a switch/hub and it cant route. but if you use linux as a router (using 2 or more NICs) sure, either using iptables -t nat -j MASQUERADE, or use the -j SNAT.



sure - you can use samba for compatibility with windows networking, or you can use native unix/linux NFS.

HTH.
thanks for the reply, I'm gonna go after that brctl tool. I've used samba and firestarter to do 3 and 2 with one client connected to the server. I guess once I can make the bridge functional, I can figure out to do 2 and 3 again. thanks for helping
 
Old 01-31-2009, 02:21 AM   #4
perham
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by perham View Post
thanks for the reply, I'm gonna go after that brctl tool. I've used samba and firestarter to do 3 and 2 with one client connected to the server. I guess once I can make the bridge functional, I can figure out to do 2 and 3 again. thanks for helping
I made it work quite easily. first I created a bridge with brctl:

# brctl addbr br0
# brctl addif br0 eth2
# brctl addif br0 eth3

then in firestarter's preferences, this is how I set it:

http://img34.picoodle.com/img/img34/...1m_232560f.jpg

(img code is off for me, please browse the link)

that's my setting in the network applet:

http://img02.picoodle.com/img/img02/...2m_3379c56.jpg

and everything is done! now I have Internet connectivity on both of my windows PCs.
 
Old 02-01-2009, 09:57 AM   #5
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi perham,
Quote:
and everything is done! now I have Internet connectivity on both of my windows PCs.
congratulations then, well done.
but - if you need to connect more than 2 computers - i'd suggest you to consider buying a small switch wont hurt
 
  


Reply

Tags
bridge, client, ics, network, routing, server, sharing, ubuntu



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
client and host computer internet connection sharing configuration in redhat 9 raport Linux - General 1 12-20-2005 05:54 AM
internet connection sharing ekdya Debian 18 11-07-2005 03:42 PM
internet sharing, linux client, win server... huzzzo Linux - Networking 3 08-21-2005 02:30 PM
IP Address of a client of Internet connection Sharing frankietomatoes Linux - General 1 11-02-2002 01:27 AM
Sharing an internet connection with a Linux client through a 2000 server gateway thuan Linux - Networking 1 08-02-2001 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 AM.

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