Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: leofoe on March 01, 2006, 03:50:02 PM

Title: AmiTCP: multiple interfaces?
Post by: leofoe on March 01, 2006, 03:50:02 PM
Is it possible to run AmiTCP 4.2 with 2 adapters at a time? I have an A1200 connected to my router. Then I have the A1200 connected to an A2000 through a parallel cable, via the magplip device (TCP/IP). I would like to connect to the internet from the A2000 through the A1200 and the router. Both machines have OS3.9 installed.
Title: Re: AmiTCP: multiple interfaces?
Post by: pVC on March 01, 2006, 06:08:42 PM
At least it's possible with AmiTCP/IP Genesis. I don't remember if I've used it with older AmiTCP's, but I'd guess it's possible. And if it isn't for some reason, you have OS3.9 which comes with Genesis, so why wouldn't you use it?
Title: Re: AmiTCP: multiple interfaces?
Post by: Thomas on March 01, 2006, 06:42:44 PM

Genesis allows multiple interfaces, but there is no routing between them. AFAIK MiamiDx is the only IP stack which allows routing.

Bye,
Thomas
Title: Re: AmiTCP: multiple interfaces?
Post by: patrik on March 01, 2006, 08:43:16 PM
AmiTCP can use multiple interfaces and route between them - ie act as a gateway, but it cant do NAT, which nowadays often is what people mean when they talk about routing.


/Patrik
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 01, 2006, 09:47:16 PM
Quote
patrik wrote:
AmiTCP can use multiple interfaces and route between them - ie act as a gateway, but it cant do NAT, which nowadays often is what people mean when they talk about routing.
/Patrik
Is it possible to shed some more light on this? If I use startnet, I can reference only 1 interface. How do I configure and start the extra interface?
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 11:38:27 AM
OK. I managed to get both interfaces run simultaniously with bootpconfig. With the A1200 I can connect to the internet and to the A2000. With the A2000 however I only can connect to the A1200, not the internet.  :-?
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 11:42:13 AM
Probably there is no routing between the two interfaces. You need a TCP/IP stack which supports routing.

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 12:16:01 PM
Quote
motorollin wrote:
Probably there is no routing between the two interfaces. You need a TCP/IP stack which supports routing.


Quote
patrik wrote:
AmiTCP can use multiple interfaces and route between them - ie act as a gateway, but it cant do NAT, which nowadays often is what people mean when they talk about routing.


Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 12:23:49 PM
Sorry my mistake. I take it you have configured routing on the A1200's TCP/IP stack. Perhaps it would help if we could see your IP configuration for each interface.

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 01:02:28 PM
A1200:
AmiTCP.config: GATEWAY=YES
interface1: bootpconfig Orinoco IP=192.168.1.15 GW=192.168.1.1 (this is my router)
interface2: bootpconfig magplip1 IP=192.168.1.17 DEST=192.168.1.16

A2000:
bootpconfig magplip0 IP=192.168.1.16 GW=192.168.1.17
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 01:10:24 PM
I think the two interfaces on the A1200 have to be on different networks, otherwise nothing will be routed.

E.g.

A1200:
AmiTCP.config: GATEWAY=YES
interface1: bootpconfig Orinoco IP=192.168.1.2 GW=192.168.1.1
interface2: bootpconfig magplip1 IP=192.168.2.1 DEST=192.168.1.2

A2000:
bootpconfig magplip0 IP=192.168.2.2 GW=192.168.2.1

Subnet mask on all of them should be 255.255.255.0

--
moto

--EDIT - various mistakes :roll:
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 01:50:06 PM
@motorollin:
This gives the following bootpconfig error on interface2 magplip1:
SIOCAFADDR "object exists"
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 01:54:29 PM
Hmmm not sure about that as I've never used AmiTCP. Maybe a duplicate IP address on the network?

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 02:06:22 PM
Don't know if this helps at all:

(http://www.mashley.net/LeoNetwork.jpg)

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 05:43:44 PM
Thanks for the drawing.
The duplicate is probably the DEST of the magplip1 and the IP of the Orinoco. That's the only possiblity.
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 06:38:32 PM
What is DEST? Do you mean default gateway? If so then this should be configured as in the diagram I drew.

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 06:54:45 PM
DEST is destination. This IP is always used as the destination of all outbound traffic via that interface.
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 02, 2006, 07:26:22 PM
In your configuration the dest was set to 1.16, but I couldn't see that address anywhere else. Maybe that is why the A2000 can't see the Internet?

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: ncafferkey on March 02, 2006, 07:42:27 PM
I think your router also needs a route added to its configuration so that it knows it needs to go through the A1200 to get to the A2000 (because the router's default route will be out to the internet). You might also need to use the route command on the A1200.
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 02, 2006, 10:15:21 PM
I have it now setup as follows:
A1200:
AmiTCP.config: GATEWAY=YES
interface1: bootpconfig Orinoco IP=192.168.1.2 GW=192.168.1.1
interface2: bootpconfig magplip1 IP=192.168.2.1 NOGW

A2000:
bootpconfig magplip0 IP=192.168.2.2 GW=192.168.2.1

I cannot ping my router at 192.168.1.1.
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 03, 2006, 07:11:16 AM
Interface 2 on the A1200 needs a gateway of 192.168.1.2.

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 03, 2006, 07:53:40 AM
I don´t know if this applies to AmiTCP but I found this (http://technet2.microsoft.com/WindowsServer/en/Library/6c7c7ab2-cfdc-4dfe-8560-570d3859f5b11033.mspx) about multiple interfaces and default gateways. Look under `Using multiple gateways`.
That´s why I use only one but I´ll experiment further.
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 03, 2006, 08:01:26 AM
I don't understand the term "Interface metric". What I do know is that each interface must have a default gateway otherwise it does not know how to contact other networks. You may also need to enter static routes in the A2000 to tell that it can reach the 192.168.1.x network through its 192.168.2.x interface.

--
moto
Title: Re: AmiTCP: multiple interfaces?
Post by: leofoe on March 03, 2006, 10:00:45 AM
Metric is probably the distance to the next hop. See here. (http://www.tcpipguide.com/free/t_RIPRouteDeterminationAlgorithmandMetric.htm)
If I use 2 default gateways one of which is 192.168.1.2 I don't have internet on the A1200 because the browser doesn't which one to take or takes the wrong one.
The A2000 doesn't need to know anything about the 192.168.1 network because it has it's default gateway set to 192.168.2.1. So it sends anything there it doesn't know about.

I have tried all possible settings now and I cannot ping my router in any setting. Maybe AmiTCP cannot route between 2 interfaces after all?
Title: Re: AmiTCP: multiple interfaces?
Post by: motorollin on March 03, 2006, 10:22:43 AM
You need to set up some static routes on the A1200. Anything that is destined for the 192.168.2.x network (magplip interface) needs to route to 192.168.2.3. You also need a route for 0.0.0.0 to route to 192.168.1.1. This will ensure all traffic not intended for 192.168.2.x will go via the Orinoco interface not the Magplip. So here is the routing table you need:

0.0.0.0 / 0.0.0.0 / 192.168.1.1
IP dest / IP Mask / IP of router

 

192.168.2.0 / 255.255.255.0 / 192.168.2.3
IP dest / IP Mask / IP of A2000


--
moto

--EDIT
Corrected more mistakes :lol:
Title: Re: AmiTCP: multiple interfaces?
Post by: orange on February 01, 2014, 01:47:02 PM
um, sorry to resurrect this one.

I've just managed to get magplip and ariadne working in Amitcp.
I think settings were fine, but you probably forgot to configure GW ruter ( GW=192.168.1.1 ) in its web interface.
need to add a route so that all traffic for 192.168.2.2 goes to 192.168.1.2