Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-10-2007, 12:26 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 24

Rep: Reputation: 0
lan set up problem

hi, I have two computers with debian etch, and I do not know much about networks. In fact I'm doing an error. Can you tell me where?

I would like to connect them at home in a LAN, and eventually have the connection to internet (I found that masquerading will do the work, but it is left for later).
Right now I try to see one from each other with ping.
The ethernet cards of both computers work.
I have an old HUB (that works), I connect the 2 ethernet cables to it and to the computers, and I set /etc/network/interfaces like this:

computer 1:

auto eth0
iface eth0 inet static

computer 2:
the same but

# /etc/init.d/network restart

and if I try ping one from the other, they are not reachable. Is the HUB a good way to do that?
Please, what do I miss?
Old 10-10-2007, 01:49 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
that looks absolutely fine, run ifconfig on both boxes to actually show this config in action, and also run "arp -n" on both boxes after trying to ping. do you see valid arp entries for the other machine? that's the base level required to see other boxes on a network, IP addressing comes in quite a bit later, and could easily be being blocked by software firewalls etc...

if it really is a hub, then you might want to join the 21st century with a $10 switch, but it should generally be fine. some old hubs are temperamental with cable types and uplinks whilst most modern cheap switches will work out what kind of cable you have (straight or crossover) and adjust accordingly.
Old 10-12-2007, 12:08 AM   #3
LQ Newbie
Registered: Dec 2006
Posts: 24

Original Poster
Rep: Reputation: 0
Thank you for the answer, finally it worked. I think you are right, and th HUB is a kind of difficult. Sometimes (by arp -n on both PCs) only one PC saw the other, often every one was blind. I did not succeeded until I unplugged the HUB and plugged again.
I should have tried before..
thank you again


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
how do I set up lan messenging? harnadem Linux - Networking 4 03-26-2005 09:06 AM
How do I set up a server on a lan? Terry M Linux - Newbie 1 02-19-2005 11:23 PM
How to set up LAN with Linux and XP ? TWTony Linux - Networking 4 12-13-2004 08:32 PM
How to set up LAN between two computer vanhelsing Linux - Networking 14 07-16-2004 10:47 AM
Set up LAN Reinder Wieling Linux - Networking 3 07-05-2003 12:46 PM > Forums > Linux Forums > Linux - Newbie

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