network setup: connect to another computer through the router
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
network setup: connect to another computer through the router
HI there,
I have a general, even conceptual network setup question.
my apartment has 3 computers, C1, C2, C3.
C1 is XP station that connects to the internet thru the router
C2 is a linux machine that has 2 NICs. Thru one it connects to the internet thru the same router and thru the other one it connects to C3, another XP machine, ie C2 is a linux server and internet gateway for C3.
Now, is it possible for me to access C1 from my C3? If yes, how it should be set up?
The most preffered way(Ethernet bridge): Step one - IP's
choose 3 ip adresses for your c1 c2 c3 network. You must only use adresses of this range not to conflict with internet:
10.0.0.1 to 10.255.255.254
192.168.0.1 to 192.168.255.254
172.12.0.1 to 172.17.255.254 (I'm likely lying about first 2 digits - see "LAN IP's" in some manual)
You may but this in dhcp but I recommend using static IP's for this case Step two - bridging
An ethernet bridge is somewhat an ARP/Ethernet router wich makes your PC act like a network hub. When you bridge two ethernet cards together C1 and C3 will think they are connected directly.
To bridge you must compile an "ethernet bridge" kernel module or buildin this feature into kernel.
Then you must bring up the bridge via ifconfing(see man ifconfig for details) or via some graphical configuratir if you have one, but ifconfig is versalite. Step three - having fun
You can also make some other configurations: from 2 subnets to NATing C3 but it's stupid when having only 3 computers so I wont write 'em until you ask me
it should be real simple to access C1 from C3 share what you want to access on c1 then open ie on c3 and access it by typing \\ipaddressofc1\sharename so if the ip address was 192.168.0.2 on c1 and you shared a folder called music access it with the address \\192.168.0.1\music\ if you are running nat on the linux box it shouldnt make a difference C1 will just think the the linux box is requesting it, and if there is no nat it should work just as well.
Thanks guys, reading your replies, I came to realize that what I really want to do is to have access from both C3 and C1 to the shared folder on the C2 (linux machine). I have already set it up for C3 to access C2 (working fine) but could not make it work for C1 --> C2 (can't figure out what i am doing wrong).
I use
router's IP 192.168.1.1
C3 10.0.0.253 (XP goes on Linux)
C2 192.168.1.105 to connect to the router, 10.0.0.1 as a gateway for C3
C1 (the one that directly connects to the router) That's where I have problems now: I am not sure what to use as IP and gateway.
Thanks
Vishi
Last edited by vishivishi; 04-23-2006 at 07:21 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.