LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-12-2007, 01:40 AM   #1
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
I want to network 2 computers over an ethernet crossover cable


I want to network 2 computers over an ethernet crossover cable
what I want from you guys is to point me to a mini HOW-TO for this
box a duel boot linux XP box b linux

Last edited by rob.rice; 08-12-2007 at 01:41 AM.
 
Old 08-12-2007, 02:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well there is no howto for that, as there's nothing special about it. if both machines have ip addresses in the same subnet, and the cable is connected and works, you're done.
 
Old 08-12-2007, 04:31 PM   #3
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
thank you for your reply
OK so how do I set up the subnet with out clobering dhcp that provides my internet connection ?
I am almost a complete and total network noob
( the only thing I have done with networking is set up my broadband connection and to do that all I did was load a module and type yes in /etc/rc.d/rc.inet1.conf to the question use dhcp eth0 and added search my.isp.net to /etc/resolve.conf)
I get badly lost in the networking 3-4 HOWTO

Last edited by rob.rice; 08-12-2007 at 04:43 PM.
 
Old 08-12-2007, 05:28 PM   #4
tjyorkshire
Member
 
Registered: Jun 2007
Location: UK
Distribution: openSUSE 10.2
Posts: 138

Rep: Reputation: 15
What do you mean - "how do I set up the subnet"?
For example, give one computer an IP of 192.168.1.1 and the other 192.168.1.2. As far as I'm aware, they are both in the same subnet!
 
Old 08-12-2007, 06:58 PM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by tjyorkshire View Post
What do you mean - "how do I set up the subnet"?
For example, give one computer an IP of 192.168.1.1 and the other 192.168.1.2. As far as I'm aware, they are both in the same subnet!
OK now where do those addresses go and what do I use as a broad cast address and what would be the net mask
do I even need a broad cast , gateway or a netmask
a setup as simple as this just isn't covered in the networking HOWTOs I've read
the last time I tried this I clobbered my internet connection and had to restore the backups I made of the files I edited
 
Old 08-12-2007, 10:59 PM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Where the addresses go depends on your distribution, which you don't specify.

With those IP numbers you should set up a static interface on each machine with Mask 255.255.255.0, Bcast 192.168.1.255, Gateway 192.168.1.254 (last is probably irrelevant).

Yes you will probably clobber your internet settings, unless your distro offers multiple settings on network interfaces. But it sounds like it is not a big problem to restore.

If you have to do this more than once just buy a cheap router. Then you can have all your computers connected to the internet and each other at the same time.

Later edit: OK, if it is slackware the file is probably /etc/rc.d/rc.inet1.conf.

Probably all you need is then:

# Config information for eth0:
IPADDR[0]="192.168.1.1"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="no"
DHCP_HOSTNAME[0]=""

Last edited by maroonbaboon; 08-12-2007 at 11:07 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Networking two computers using crossover cable Nitin Bhumkar Linux - Networking 5 01-15-2007 04:56 AM
Network 2 computers with crossover cable uisng IPv6 q14526 Linux - Networking 26 12-16-2005 09:42 AM
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
crossover ethernet cable business ygfperson Linux - Networking 5 07-23-2004 05:07 PM
Trouble networking two Linux computers (via crossover cable) lrt2003 Linux - Networking 3 06-29-2004 09:06 AM

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

All times are GMT -5. The time now is 07:38 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