Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started 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.
-
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?
-
Genesis allows multiple interfaces, but there is no routing between them. AFAIK MiamiDx is the only IP stack which allows routing.
Bye,
Thomas
-
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
-
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?
-
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. :-?
-
Probably there is no routing between the two interfaces. You need a TCP/IP stack which supports routing.
--
moto
-
motorollin wrote:
Probably there is no routing between the two interfaces. You need a TCP/IP stack which supports routing.
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.
-
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
-
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
-
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:
-
@motorollin:
This gives the following bootpconfig error on interface2 magplip1:
SIOCAFADDR "object exists"
-
Hmmm not sure about that as I've never used AmiTCP. Maybe a duplicate IP address on the network?
--
moto
-
Don't know if this helps at all:
(http://www.mashley.net/LeoNetwork.jpg)
--
moto
-
Thanks for the drawing.
The duplicate is probably the DEST of the magplip1 and the IP of the Orinoco. That's the only possiblity.
-
What is DEST? Do you mean default gateway? If so then this should be configured as in the diagram I drew.
--
moto
-
DEST is destination. This IP is always used as the destination of all outbound traffic via that interface.
-
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
-
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.
-
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.
-
Interface 2 on the A1200 needs a gateway of 192.168.1.2.
--
moto
-
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.
-
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
-
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?
-
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:
-
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