You are not logged in.

#1 2009-12-21 10:21:03

getagrip
Member
Registered: 2007-12-26
Posts: 45

[solved] connect 2 machines

I have 2 machines connecting to a router via WIRELESS for internet access.
Now I need to connect these 2 machines to EACH OTHER so one can act as a database-server.
IP-based access is sufficient.
This should be a FAST connection so it needs to be WIRED.
Do I need to specify a gateway? Or a bridge?
Or is it sufficient to just connect them via switch:

machine1:
ifconfig eth0 192.168.44.1 netmask 255.255.255.0 up
machine2:
ifconfig eth0 192.168.44.2 netmask 255.255.255.0 up

and that's it?

Last edited by getagrip (2009-12-21 11:38:12)

Offline

#2 2009-12-21 10:53:15

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: [solved] connect 2 machines

That should work fine. Just make sure you choose a different subnet to the wired connection. If you use a cross over cable you can forgo the switch.

A gateway is only required to reach machines outside your subnet. Not needed in this case as both machines are on the same network subnet.

A bridge is just another name for a switch.

Offline

#3 2009-12-21 11:37:54

getagrip
Member
Registered: 2007-12-26
Posts: 45

Re: [solved] connect 2 machines

I forgot about subnetting. Thanks a lot!

Offline

Board footer

Powered by FluxBB