LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-13-2005, 06:22 PM   #1
garba
Member
 
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
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255

files differ only on the "address" section (one is set on 192.168.1.1, 192.168.1.2 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 192.168.1.1 (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 06:25 PM.
 
Old 06-13-2005, 06:36 PM   #2
marghorp
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, 06:41 PM   #3
garba
Member
 
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 07:13 PM.
 
Old 06-14-2005, 08:12 AM   #4
HFat
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 08:14 AM.
 
  


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


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