Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-13-2005, 05:22 PM   #1
Registered: May 2005
Location: Italy
Distribution: Crux
Posts: 62

Rep: Reputation: 15
v-noob: connecting two pc's through eth interface

good day! i am to state beforehand I am a TOTAL noob at networking, so please forgive the dumbness of my questions... last day a friend of mine asked me to setup debian on his box, i now have his pc sitting beside mine and have been trying over the last few hours to ssh onto it... of course i already have a minimal debian setup running oh his machine as well as a ssh server... i thought dhcp was the way to go, but had no luck... so i came up with the idea: do I actually need all this dhcp crap? i decided to go the "static" way and edited the eth section in the /etc/network/interfaces file as follows on both pc's:

auto eth0
iface eth0 inet static

files differ only on the "address" section (one is set on, the other one)... but, needless to say, i can't seem to ping the other pc, i can't understand what i am doing wrong 'cause when i plug in my dlink ethernet modem I can see it on (that's the modem default lan ip address) without having to run the dhcp server on it... any idea? btw, im using the ethernet cable supplied with my modem to link these two pc's... thanks in advance for your help, and forgive me for being such a nooooob at networking...

Last edited by garba; 06-13-2005 at 05:25 PM.
Old 06-13-2005, 05:36 PM   #2
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Maybe you need a different cable. The cable to connect two computers is different than the on used to connect to a network outlet.

I don't know which one your modem uses, but it might be the cable.
Old 06-13-2005, 05:41 PM   #3
Registered: May 2005
Location: Italy
Distribution: Crux
Posts: 62

Original Poster
Rep: Reputation: 15
well, actually the dlink is nothing but a linux box itself ^^

just checked: this is a "cat 5 utp ethernet cable"... think it will do?

Last edited by garba; 06-13-2005 at 06:13 PM.
Old 06-14-2005, 07:12 AM   #4
LQ Newbie
Registered: Jun 2005
Location: Switzerland
Distribution: CentOS, Fedora, Gentoo, Slackware
Posts: 4

Rep: Reputation: 0
We know you've got a cat5 cable. But do you have a "crossover" cable? You can tell by looking at the way the 8 wires are connected to the plug. You should be able to find pictures with Google.

It's impossible for us to know for sure what kind of cable you are using if you don't state what kind of modem you have. Is it a modem+router with several ports or a simple modem with a single port?

Anyway, you should be able to tell if the cable works easily: there's a light next to your socket that should light up when the cable is plugged in at both ends.

If the cable works, your firewall (iptables?) might be blocking the pings.

Last edited by HFat; 06-14-2005 at 07:14 AM.


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
Home network (connecting 2 pc's) ninadb Linux - Networking 2 01-18-2005 03:16 AM
Connecting 2 PC's through USB cables Musikolo Linux - Hardware 1 11-04-2004 04:48 PM
How to bring eth interface up correctly? cold Linux - Networking 2 06-18-2004 02:40 AM
multiple ip address for single eth interface blackhound Linux - Networking 2 02-25-2004 06:02 AM
Connecting two pc's across the internet fcuku Linux - Networking 1 02-23-2003 07:28 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration