Re: link 2 linux boxes through rj45 c.o. cable
- From: "heavytull" <heavytull@xxxxxxxxxxx>
- Date: 21 Jul 2006 08:49:17 -0700
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.
Okay, forgeti would prefer automatically
about dhcp for now- here is another quicker method. You can setup each
card manually.
anyway...
Perhaps, you should run a killall on each workstation to stop the client,i ps -x |grep dhcpcd
if it is running.
no dhcpcd process running
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
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??
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.
BTW, I use a similar arrangement to connect using 1000Mb ethernet quite
often. Right now, I have a few 1000Mb ethernet interface cards, but
too few 1000Mb switches. A crossover cable is a quick, cheap
alternative.
--
Douglas Mayne
.
- Follow-Ups:
- Re: link 2 linux boxes through rj45 c.o. cable
- From: Douglas Mayne
- Re: link 2 linux boxes through rj45 c.o. cable
- 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
- link 2 linux boxes through rj45 c.o. cable
- Prev by Date: Re: link 2 linux boxes through rj45 c.o. cable
- Next by Date: Re: RPM conundrum
- Previous by thread: Re: link 2 linux boxes through rj45 c.o. cable
- Next by thread: Re: link 2 linux boxes through rj45 c.o. cable
- Index(es):
Relevant Pages
|