On 22-Apr-2000 Ferenc Tamas Gyurcsan wrote:
> Hi,
> 
> I'm new to the list, and I haven't found my question in the  mirror, and I
> couldn't find what I was looking for in the faq, so I would like to ask a
> question.
> So my assignment would be the following:
> I have two network cards in a machine. So the two network cards are on the
> same physical network, and the subnet is the same.  Another machine is on
> the same physical network, also with two network cards:
>       __________________________________________________________
>       |             |                            |              |
>   10.10.10.1    10.10.10.2                   10.10.10.3    10.10.10.4
>           
>            NodeA                                       NodeB
> 
> The route on NodeA goes through 10.10.10.1, to 10.10.10/24. What I would
> like to reach is to somehow make packets go through 10.10.10.2 to
> 10.10.10.3. My guess was to use raw packets, and there is an option that
> can tell a mandatory route for a UDP packet, at least that's what I read
> in Tanenbaum's Computer Networks. Would that work for this case? So that
> the first route would be 10.10.10.2, and the next one is 10.10.10.3. If it
> worked, how can I do so? I read all kinds of documents, but nothing
> details the TCP protocol at this level. 
> I don't have any routers, just that single 10Base2 wire, and they have to
> be on the same subnet. I can't use ipchains either because it should be a
> portable code.
> Any doc advice or .c fragment would be highly appreciated.

I'm not sure, but I think that the your goal can be achieved with use of ip
utility from iproute package. You have to set host route and permanent ARP
entry on both nodes. If you can't figure out how to set routing and ARP
tables feel free to mail me again.

----------------------------------
E-Mail: Milan P. Stanic <[EMAIL PROTECTED]>
Key fingerprint = EA81 54A6 7F35 5A38 FCE6  9EF6 9D24 E68E 5C1D AF15
----------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to