LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-21-2004, 10:36 PM   #1
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Rep: Reputation: 15
Networking Linux to windows behind dsl router


I have DSL and a router with one ethernet jack on it. I have a windows xp computer with two ethernet jacks and a Suse Linux box with one ethernet jack.

Can I somehow hook the linux box to the windows box (via a crossover ethernet cable) and hook the windows box to the DSL router and have one monitor/one keyboard/one mouse/etc.. and use VNC to connect to my linux box and get to the internet thru my linux box?

Any pointers to books, websites or directions how to start this project would be helpful. I'm sorta clueless on where to begin. thanks a bunch.
 
Old 09-22-2004, 12:13 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Is it possible to take one of the network cards out of the XP box and put it in the linux box instead? This would be much easier (i.e: I know how to do it without testing anything, whereas I'm not sure exactly how to convince XP to route data between two network cards).

In linux, you would just configure the two cards (may be the most difficult step, depending on the cards themselves), enable IP forwarding, and set XP's default gateway to the linux machine's IP.
 
Old 09-22-2004, 03:06 AM   #3
Mad Processor
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu Hardy Heron
Posts: 9

Rep: Reputation: 0
In WinXP you can choose "Share this connection" or something in "Network connections". This will set up WinXP to use the DSL connection and set itself up as a DHCP server on the second card. It will hand out an IP to the Linux box and there is no problem in using VNC to connect to it, I've done it several times myself.
 
Old 09-22-2004, 10:27 AM   #4
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks, so do you think i need a crossover ethernet cable? or can i just use a regular one. i read somewhere that if you're connecting two computers directly together you need a crossover cable but i'm not sure if that applies to this case.

thanks again - i'll be trying that out soon.
 
Old 09-22-2004, 10:32 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,758

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
You need a crossover cable for connect two PCs together.
 
Old 09-22-2004, 04:48 PM   #6
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
I got it working. thanks for your help everyone - here's a summary of what it took.

1. connect a crossover ethernet cable from linux box to windoze box.
2. connect regular ethernet cable from second windows ethernet jack to DSL hub
3. configure a "home or small office network" on your windoze machine so that the networked computer (linux in my case) is going to use the windoze computer as it's gateway to the internet. This is all new to me as I'm not much of a windoze guy but it wasn't hard to set up. at this point you should be able to see the internet from your linux machine.
4. start vncserver on your linux box. note the ip address you have - something like 192.168.0.3 since it's a IP address on the local network that you've constructed. Also note your display number that the vnc server gives you (e.g. hostname:2). The first time you start vncserver you have to supply a password.
5. start a vnc viewer on your windows machine. when it asks for the hostname supply the IP address you had on your linux machine and the display number (e.g. 192.168.0.3:2). You will be asked to supply the password. And off you go.
 
  


Reply


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
networking a router and dsl modem problem TreeHugger Linux - Networking 7 08-26-2004 05:23 PM
Windows Networking Router Issue Daniel Linux - Wireless Networking 1 02-13-2004 06:04 PM
Windows Networking Router or Firewall Issue? Daniel Linux - Networking 1 02-13-2004 01:29 PM
DSL Linux Router cheezey Linux - Networking 3 10-23-2003 07:17 AM
DSL/ Linksys DSL Router/ Linux cant see the network... Robert0380 Linux - Networking 9 04-03-2002 04:09 AM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration