Re: link 2 linux boxes through rj45 c.o. cable
- From: "heavytull" <heavytull@xxxxxxxxxxx>
- Date: 21 Jul 2006 10:24:06 -0700
Douglas Mayne wrote:
On Fri, 21 Jul 2006 08:49:17 -0700, heavytull wrote:yes i need
Douglas Mayne wrote:
On Fri, 21 Jul 2006 04:59:20 -0700, heavytull wrote:calm down man; I'm not the one you should say that to!!
<snip>
heavytull wrote:
I would like to link two linux boxes through their ethernet cards with
a cross over cable.
/etc/rc.d/rc.inet1.conf on both pc's have been configured to get the
ethernet interface linked with the ethernet card working in DHCP mode.
You are trying to create a two workstation network. That restates the
ps: on both boxes the running linux is slackware 10.2
ok men, I might have badly told everything!
the context:
there are two computers, one is equipped with an ethernet card and
other stuff that actually is not useful now, so forget about wifi.
the other computer has also an ethernet card.
I would like link these boxes through by means of a cross over cable
(rj45) so that I can make some files transfers.
how should I proceed?
obvious, but stop and think for a second. How would workstations on that
isolated network get an IP address? You would have to setup a dhcp
server. It takes more than making an entry in rc.inet1.conf.
I'm calm.
Okay, forgeti would prefer automatically
about dhcp for now- here is another quicker method. You can setup each
card manually.
anyway...
Then you'd need to setup dhcpd on that network. See below for more
options.
Perhaps, you should run a killall on each workstation to stop thei ps -x |grep dhcpcd
client, if it is running.
no dhcpcd process running
Okay.
On each box:yes i did it and it is working fine!
# killall dhcpcd
Setup
On box 1:
ifconfig ethx 192.168.4.1
On box 2:
ifconfig ethx 192.168.4.2
ping -c3 192.168.4.1
On box 1:
ping -c3 192.168.4.2
Then you can transfer files between those two boxes, unless something is
preventing you. Slackware comes with no firewall by default. A firewall
would be blocking only if you'd set it up and enabled it.
above all it seems that the linux box which has also a wifi adapter
bound together eth0 and eth1 to which is connected the wifi indeed samba
is running on both machines and on the one which has no wifi i can see
some computers on the whole network which is routed by a wifi hub.
it means that the data about the whole wifi network is redirected to the
eth0!
but I can't access to any of the other machines. i don't know why
("could not connect to host for smb://mshome/"). i can't even ping to
the eth1 of the computer eqquipped with wifi at this point i don't think
that other machine can be seen on the whole network.
so there's a lot more to do, I even would like to set up ip masq for
internet share.
why the linux box didn't assign an automatic ip address??
The secondary box might have automatically obtained an IP address if
your first box was configured as a router in "bridged" mode. Read
more below.
<snip>
I am assuming 192.168.4.0 is an unused subnet on you overall network.
Once that is working, you can worry about other settings to get the
boxes communicating beyond this "private" line.
Note: comments inline.
The simple case is getting the two boxes to talk to each other. I
guess you have done that and can transfer files between the
_two_ boxes. If you want access beyond that, then that is more
complicated. You'll need to setup one box as a router. There are two
options for routers:
1. Routed mode which cross subnets
2. Bridged mode which uses the same subnet.
I think you may want to configure bridged mode to view other machines on
you local network. Another option is to plug the computer into whatever
network switches you have (eliminating the problem of configuring your
Slackware box to do the same job.) You can probably do it either way, but
you'll have to read up on networking first.
thanks
--
Douglas Mayne
.
- References:
- link 2 linux boxes through rj45 c.o. cable
- From: heavytull
- Re: link 2 linux boxes through rj45 c.o. cable
- From: heavytull
- Re: link 2 linux boxes through rj45 c.o. cable
- From: Douglas Mayne
- Re: link 2 linux boxes through rj45 c.o. cable
- From: heavytull
- Re: link 2 linux boxes through rj45 c.o. cable
- From: Douglas Mayne
- link 2 linux boxes through rj45 c.o. cable
- Prev by Date: Re: Where did my memory go? 'ps' not showing me.
- Next by Date: Re: help!!! I accidently rm -rf a directory
- Previous by thread: Re: link 2 linux boxes through rj45 c.o. cable
- Next by thread: USB - Serial converter module woes
- Index(es):
Relevant Pages
|
|