LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-29-2003, 07:54 PM   #1
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Rep: Reputation: 30
Question Creating a Network without having a router


Can anyone tell me how can I create a lan network between two computers without having to use a router. Eventhough I cant use internet, just for file sharing. I want to know how do I connect the two computers, and with what? I searched the internet and couldn't find anything useful.
 
Old 12-29-2003, 08:25 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You will need two network cards (preferrably standard Ethernet/Fast Ethernet) supported by Linux and one cross-over network cable. Cheap and reliable cards include Realtek 8139-based ones if you don't have the cards already.

A crossover twisted pair Ethernet cable is like $5 to $10 US so it's not much of an investment, but darn useful!

Then hook up the cable and set up the cards using static IP's in a private range, like 192.168.1.1 for the first computer and 192.168.1.2 for the second. That's pretty much it. You can edit the /etc/hosts files on both systems and add the names of the other computer there so you don't need to type out the IP address all the time.

Håkan
 
Old 12-30-2003, 08:50 AM   #3
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Original Poster
Rep: Reputation: 30
I already have a crossover cable and two network cards in my computer. But when I connect them using the crossover cable, isn't the lite in the network cable suppose to come on. But it dosent.

And about the IP thing. Where do I set up the IP addresses? Which program do I open to do this?

I'm using MDK 9.2
 
Old 12-30-2003, 09:03 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,726

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
You can use Mandrake Control Center under internet and setup a static IP address.

Or via console commands:
(log in as root)

ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up

What is the OS of the other PC? What kind of ethernet cards are installed in the computers? When the cable is connected the link light should illuminate.
 
Old 12-30-2003, 11:24 AM   #5
Nukem
Member
 
Registered: May 2003
Location: Canada, TO.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373

Original Poster
Rep: Reputation: 30
Both computers have MDK 9.2 . In one of the computers I have "Linksys EtherFast" ethernet card. The other one I have on board card. When I connect them, no lite comes on. But in both when I connect a dsl modem, the lites comes on. I can use internet with no problem. It jsut that when I connect two cards it dosent lite up.
 
Old 12-30-2003, 06:24 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,726

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
If it works with the MODEM then the cable might not be a configured as a crossover.

Does your MODEM autodetect cable types?

Have you tried configuring eth0 for the two computers yet?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make Linux router by creating Initrd manually and from scratch nikhilpavithran Linux - Software 1 07-29-2005 08:25 PM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
Network speed problems on 15 user network to broadband wireless router AntWarrior Linux - Wireless Networking 2 12-02-2004 11:05 AM
Creating a router out of SSH Tunnels. Technoslave Linux - Networking 1 10-04-2004 06:07 PM
creating VPN with PPtP to connect to a router Lleb_KCir Linux - General 3 08-11-2004 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:04 PM.

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