Re: link 2 linux boxes through rj45 c.o. cable




Douglas Mayne wrote:
On Fri, 21 Jul 2006 04:59:20 -0700, heavytull wrote:


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.

<snip>

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?

You are trying to create a two workstation network. That restates the
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.
calm down man; I'm not the one you should say that to!!


Okay, forget
about dhcp for now- here is another quicker method. You can setup each
card manually.

i would prefer automatically
anyway...

Perhaps, you should run a killall on each workstation to stop the client,
if it is running.

i ps -x |grep dhcpcd
no dhcpcd process running

On each box:
# 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

yes i did it and it is working fine!
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

.



Relevant Pages

  • Re: link 2 linux boxes through rj45 c.o. cable
    ... ethernet interface linked with the ethernet card working in DHCP mode. ... other stuff that actually is not useful now, so forget about wifi. ... I would like link these boxes through by means of a cross over cable ... You are trying to create a two workstation network. ...
    (comp.os.linux.misc)
  • Re: Network help requested
    ... I have installed an Ethernet card in each computer and I ... >setup wizard” it keeps telling me that “a network cable is unplugged”. ... >a hub since I am only networking 2 computers. ... If you are not using a hub, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Can I do this?
    ... to network with the Dell as well as access the internet. ... is to have both computers WIRED to the router ... Plug an ethernet cable into your Win98's ethernet card (assuming it has ...
    (microsoft.public.windowsxp.network_web)
  • Re: Network help requested
    ... > both running XP Pro. ... I have installed an Ethernet card in each computer and I ... > setup wizard” it keeps telling me that “a network cable is unplugged”. ... > a hub since I am only networking 2 computers. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Can I do this?
    ... I have a Dell XPS wired directly to a D-Link G Wireless Router which ... to network with the Dell as well as access the internet. ... is to have both computers WIRED to the router and ... Plug an ethernet cable into your Win98's ethernet card ...
    (microsoft.public.windowsxp.network_web)