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




Douglas Mayne wrote:
On Fri, 21 Jul 2006 08:49:17 -0700, heavytull wrote:


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!!

I'm calm.


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

i would prefer automatically
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 the
client, if it is running.

i ps -x |grep dhcpcd
no dhcpcd process running

Okay.

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!

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.



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.

<snip>

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.

yes i need
thanks
--
Douglas Mayne

.



Relevant Pages

  • Re: wireless connection stopped working
    ... I had to press the `wifi' button on my laptop. ... Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 ... NetXtreme BCM5751M Gigabit Ethernet PCI Express ... product: PRO/Wireless 2200BG Network Connection ...
    (Ubuntu)
  • 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: why so slow?
    ... Please start with my article on diagnosing network problems. ... Now if you have a WiFi network, are the computers connected by Ethernet, or ... and possible performance problems on the computers themselves. ... Differences between Ethernet and WiFi: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Use WiFi as an Ethernet bridge to the Internet?
    ... network in a computer room about 30 feet away. ... using WiFi as a bridge between two Ethernet-attached devices. ... [where '-' is Ethernet and '~' is WiFi] ...
    (alt.internet.wireless)
  • Re: how to connect other PCs/PPCs via 802.11
    ... There are no ways to search devices with WiFi. ... a network, Bluetooth forms peer connections. ... Apart from forming network and security, WiFi is just an Ethernet ...
    (microsoft.public.pocketpc.wireless)