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



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. Okay, forget
about dhcp for now- here is another quicker method. You can setup each
card manually.

Perhaps, you should run a killall on each workstation to stop the client,
if it is 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

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. ... one of the boxes is equipped with wifi and has nmdb running. ...
    (comp.os.linux.misc)
  • Re: ping with crossover cable
    ... If you use bootp or dhcp, the startup of the device will attempt to read ... ethernet card sometime down the road, you won't break the configuration. ...
    (Fedora)
  • Re: DHCP
    ... Your Ethernet card is looking for a DHCP server ... in a general XP group or a Windows networking group. ... > When ever I start my computer, before starting Windows it displays a PCI ...
    (microsoft.public.windows.mediacenter)
  • Re: Cable Router wont change back IP address
    ... connected to a friends Cable Router also setup for dhcp. ... deleting and reinstalling the ethernet card. ... Open Network / DHCP / DHCP Client ...
    (alt.os.linux.suse)
  • Re: Cable Router wont change back IP address
    ... connected to a friends Cable Router also setup for dhcp. ... deleting and reinstalling the ethernet card. ... Open Network / DHCP / DHCP Client ...
    (alt.os.linux.suse)