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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-10-2007, 01:26 AM
|
#1
|
LQ Newbie
Registered: Dec 2006
Posts: 24
Rep:
|
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?
|
|
|
10-10-2007, 02:49 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
10-12-2007, 01:08 AM
|
#3
|
LQ Newbie
Registered: Dec 2006
Posts: 24
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|