Re: Switchless TCP/IP networking?
- From: Eric Teuber <ericteuber@xxxxxxxxxx>
- Date: Fri, 10 Mar 2006 18:44:37 +0100
Matthew Clark wrote:
If I had 4 linux boxes, A thru D each with two ethernet adapters 1 & 2
and I chained them together via crossover cables where:
A2 -> B1
B2 -> C1
C2 -> D1
D2 -> A1
A
/ \
D B
\ /
C
Could I set up TCP/IP networking/routing such that any box can reach
any other? (Ie, Box A could telnet into Box C) If so, how do I?
Basically it is possible if you define all necessary routing rules. Also
all boxes must be able to forward traffic from one ethernet adapter (1)
to the other (2) and vice versa.
The routing can be setup very easy by defining routes to each connected
system (see man route). I.E. A must have a route to D and B, B to A and
C and so on.
Do you plan to have an outside connection to the internet on one of
these systems? Then you should also define default gateways on each
system. The internet box needs the router as default gateway. I.E. A is
the internet box, the default gateways can be defined as follows:
B -> C -> D -> A -> Internet
The forwarding could be achieved by using iptables. Iptables (Netfilter)
lets you forward traffic from one device to another (POSTROUTING and
FORWARD). You will find a nice doc at
http://iptables-tutorial.frozentux.net/iptables-tutorial.html.
I am sure, there are other solutions to forward traffic.
May i ask you why you are thinking of such a network structure?
Please don't hesitate to ask for more.
Eric
--
for mails replace NOSPAM.com by w e b . d e
.
- Follow-Ups:
- Re: Switchless TCP/IP networking?
- From: Matthew Clark
- Re: Switchless TCP/IP networking?
- From: Andrew Gideon
- Re: Switchless TCP/IP networking?
- References:
- Switchless TCP/IP networking?
- From: Matthew Clark
- Switchless TCP/IP networking?
- Prev by Date: Autoipd fails to give ip address to eth0:0
- Next by Date: Re: Linux read (true i.e. burned in) MAC address
- Previous by thread: Switchless TCP/IP networking?
- Next by thread: Re: Switchless TCP/IP networking?
- Index(es):
Relevant Pages
|