LinuxQuestions.org
Review your favorite Linux distribution.
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-06-2005, 03:30 PM   #1
oldi
Member
 
Registered: Mar 2004
Posts: 53

Rep: Reputation: 15
Do i need a router?


Excuse my ignorance, but i want to know whether i need a router for my simple network. Let me explain what i want to do. I want to set up one machine in order to experiment with Linux or FreeBSD. It will be a headlees machine since i don't have a second monitore. I want to connect to this machine through ssh using my xp machine which will in the same room as the test machine. I will not need an internet connection for any of these machines. So my question is how do i connect these two, can i just use an ethernet cable for connection. Or do i need a router to make the connection possible. If yes, is there a way that my linux/BSD machine can be configured to play the role of the router, and yet being able to experiment with it as a normal OS.

thanks
 
Old 01-06-2005, 05:29 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,621

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
No router required. The simplest method to connect two PCs is with a crossover ethernet cable.
 
Old 01-06-2005, 05:30 PM   #3
lairdcp
LQ Newbie
 
Registered: Sep 2004
Location: New Zealand
Distribution: Redhat
Posts: 7

Rep: Reputation: 0
Hi,

You do not need a router for what you want to do but it is the simplest option. Without a router you can connect your two machines via a crossover cable. You can probably buy them but its easy to make them with the right tool. You are effectively making a piece of cat 5 bi-directional. Here is some instructions: http://www.perfectdrivers.com/howto/crossover.html. You would then connect the machines together with it NIC to NIC, load the ip stack on each machine (making sure they are on the same subnet) and ping each other. Once you can ping each other you would need to load some kind of xclient on to your XP box (so it can display Unix xwindows) then from within this xclient ssh to Linux, login, set the display to your XP IP address and you should be away.

Once you have set the display from the XP xclient type 'xclock' and see if the clock appears, if it does your seeing this from your Linux box.

If you choose to buy a router the nice thing about this is you could have more than one client connect and you could do it over wireless so no need for cables from XP to the router.

Hope this helps,

Colin
 
Old 01-06-2005, 06:01 PM   #4
oldi
Member
 
Registered: Mar 2004
Posts: 53

Original Poster
Rep: Reputation: 15
thanks for your help. Following the last message, i was planning in using PuTTY to connect to my test box. I don't mind not being able to have X server, but if i want is it possible to start the x server from a terminal within PuTTY, by simpy typing startx.

Thanks again.
 
Old 01-06-2005, 06:11 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,621

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Or:
http://www.tightvnc.com/

This is not a secure connection but since your on a standalone network it is not required. You can tunnel it through ssh if desired.
 
Old 01-06-2005, 07:52 PM   #6
lairdcp
LQ Newbie
 
Registered: Sep 2004
Location: New Zealand
Distribution: Redhat
Posts: 7

Rep: Reputation: 0
I dont think it is possible, I have tried this with a xwindows client and it just errors. It may be thta its just too much to pass from server to client without clever software to manage it. Looks like you need a remote control client as suggested instead.

C
 
Old 01-07-2005, 12:15 AM   #7
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
You could always just get a KVM switch so you could just switch the monitor from computer to computer when you wanted to.
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 06:12 AM
Linux Router & Netgear Wireless Router DMaCATO Linux - Wireless Networking 1 04-30-2004 10:16 AM
/etc/resolv.conf configuration when behind a router(not a linux router) rmanocha Linux - Networking 2 04-28-2004 02:52 AM
Mandrake Firewall/router networked to US Robotics 8000A router jrzplace Linux - Networking 0 11-17-2003 05:48 PM
ADSL Router + Linux Router + LAN = HELP!!! linuxlois Linux - General 2 09-16-2003 09:24 AM

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

All times are GMT -5. The time now is 09:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration