Re: Switchless TCP/IP networking?



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
.



Relevant Pages

  • IPTABLES problems? Script or routing?
    ... I've recently changed over my internet to a T1 connection. ... did a port scan and confirmed that ports 80 and 22 are open as intended. ... it can't find a route. ... so all of the routes and gateways were set up ...
    (comp.os.linux.security)
  • IPTABLES problems? Script or routing?
    ... I've recently changed over my internet to a T1 connection. ... did a port scan and confirmed that ports 80 and 22 are open as intended. ... it can't find a route. ... so all of the routes and gateways were set up ...
    (comp.os.linux.security)
  • Re: [SLE] gateways??? HELP!!
    ... > I have two network interfaces and I was wondering about the gateways, ... > gateways to pass to the internet. ... > techno, but since I am on both networks, suse has decided it be best if I ... Pike and route 9 in Framingham, ...
    (SuSE)
  • Re: IPTABLES problems? Script or routing?
    ... I am able to ping servers on the internet (i.e. ... > did a port scan and confirmed that ports 80 and 22 are open as intended. ... > do with routing and the gateways, where as when it tried to port forward ... it can't find a route. ...
    (comp.os.linux.security)
  • Re: IPTABLES problems? Script or routing?
    ... I am able to ping servers on the internet (i.e. ... > did a port scan and confirmed that ports 80 and 22 are open as intended. ... > do with routing and the gateways, where as when it tried to port forward ... it can't find a route. ...
    (comp.os.linux.security)