[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LAN help requested



Mail User :

I'm having trouble setting up an ethernet, I have two
laptop comuters that i would like to network with the
help of an older desktop computer that would act as a
file server and gateway/firewall to the internet.  I
understand the theory of how this works pretty well,
but in practice i don't get very far.  My main problem
now is getting the
network itself setup so that the hosts can ping each
other. I can't even ping between the two little
computers with just the ethernet cable between them, so
the server isn't really a part of this problem.
yup check the cable, 1 to 3, 2 to 6 configuration
12345678
   x
  /  \
 /    \
/      \
12345678
the rest is 2-2, 5-5,7-7,8-8

The ethernet cards ARE supported by the kernel images
i'm using in each machine, and no i don't need to load
modules. I use ifconfig to program each card with an
IP. Here's what my ifconfig -a looks like from one
laptop:

eth0  Link encap:Ethernet  HWaddr 00:10:5A:1B:F3:6B
inet addr:10.0.0.1  Bcast:10.255.255.255
	.............
	.............

The other looks identical, but with a different IP
addr, of course.  So that's good.
I'm not sure how big your subnet net to be but
ifconfig eth0 10.0.0.1 netmask 255.255.255.0 boardcast 10.0.0.255 gw (your public ip)
should make that work with the server
Computer wireless 10.0.0.4

10.0.0.2          (wireless)         10.0.0.3
ComputerA ----- HUB --------COMPUTERB
                          |
                          |
               Gateway Server 10.0.0.1 eth0
                                       public ip eth1

A--ifconfig eth0 10.0.0.2 netmask 255.255.255.0 boardcast 10.0.0.255
route add -net 0.0.0.0 gw 10.0.0.1
B--ifconfig eth0 10.0.0.3 netmask 255.255.255.0 boardcast 10.0.0.255
route add -net 0.0.0.0 gw 10.0.0.1
C--ifconfig eth0 10.0.0.4 netmask 255.255.255.0 boardcast 10.0.0.255
route add -net 0.0.0.0 gw 10.0.0.1

now everybody should able to ping each other then
setup firewall rule and masq you are good to go.
Alex

Now according to the network administrators guide, I
should add a route entry; so i do this "route add -host
10.0.0.3" to which i get the error code:
SIOCADDRT: No such device.

Well, borq!  I don't know what i can do beyond this!
Maybe one of you out there can see where i'm mistaken.

Tony Firecloud


________________________________________________
PeoplePC: It's for people. And it's just smart. http://www.peoplepc.com





--
To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: