LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-10-2007, 12:26 AM   #1
FrancescoPx
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
address 192.168.255.1
netmask 255.255.255.0
network 192.168.255.0
broadcast 192.168.255.255

computer 2:
the same but
address 192.168.255.2

Then
# /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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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
FrancescoPx
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
 
  


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
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


All times are GMT -5. The time now is 01:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration