Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: motorollin on December 23, 2005, 02:55:00 PM

Title: Genesis: How do I add a route to another network?
Post by: motorollin on December 23, 2005, 02:55:00 PM
My A1200 is has an IP address of 10.0.2.178. It connects via an Ethernet cable to my iBook, which uses an IP of 10.0.2.150 on its Ethernet port. Communication between the two works great. The iBook's wireless card has an IP address of 10.0.1.150, and the router is 10.0.1.1. The iBook can see both the Amiga and the Internet. The problem I am having is getting the Amiga to connect to the Internet.

I have set the default gateway on the Amiga to 10.0.2.150, and the DNS server to the same. I have enable Internet sharing on the iBook. I think the problem is that the iBook isn't forwarding DNS requests from 10.0.2.150 to 10.0.1.1. So really I want to specify 10.0.1.1 as the DNS and Gateway on the Amiga. In order to do this I need to add a route to the 10.0.1.x network on the Amiga, but I can't figure out how to do this.

I have looked in the settings for Genesis and found the Networks pane, but can't figure out how I specify what interface I want to use for the network. I can't find any docs in the Genesis drawer  :-(

--
moto
Title: Re: Genesis: How do I add a route to another network?
Post by: Thomas on December 23, 2005, 03:53:54 PM
Quote

The problem I am having is getting the Amiga to connect to the Internet.


Are you sure that you have a problem with the internet connection ? I guess the connection is fine and it is only a matter of specifying the correct DNS.

Quote

So really I want to specify 10.0.1.1 as the DNS and Gateway on the Amiga. In order to do this I need to add a route to the 10.0.1.x network on the Amiga, but I can't figure out how to do this.


I don't think, this is correct. You don't need a gateway to 10.0.1.x if your iBook-router is the default gateway. Just check if you can ping 10.0.1.1 and if it works, set 10.0.1.1 as the DNS. That's all.

If there is only one gateway, all request have to go this way. The iBook has to take care to forward the packages correctly. Use traceroute to check if it works.

Bye,
Thomas
Title: Re: Genesis: How do I add a route to another network?
Post by: Zac67 on December 23, 2005, 04:29:19 PM
Is that a wireless-only router?? Otherwise connect Amy directly and that's it. Your setup's way too complicated.

I'm not sure if Internet sharing through the iBook works since that iBook only has a NATted connection itself. You don't need ICS, you need simple routing through the iBook.

Thomas' point is very valid. Try this:
- ping iBook (works)
- ping Router (if that fails, the ICS is bad)
- ping some IP outside (if that fails, the iBook's ICS in combination with NAT on the router is bad)
- setup default gateway and DNS as Thomas wrote
Title: Re: Genesis: How do I add a route to another network?
Post by: motorollin on December 23, 2005, 05:12:32 PM
@Thomas
I cannot ping 10.0.1.1 from the Amiga. I can only ping the 10.0.2.x network. I have already set the default gateway and DNS on the Amiga to 10.0.2.150 (the Ethernet port on the iBook) but it does not appear to be routing packets between the networks. That is why I had the idea of setting a static route to the 10.0.1.x network on the Amiga.

@Zac67
I cannot connect the Amiga directly to the router. I have to use wireless, and due to cost I don't want to get a wireless bridge for the Amiga.

Ping tests carried out from iBook:
ping 10.0.1.1 (router) - success
ping 10.0.1.150 (iBook wireless) - success
ping 10.0.2.150 (iBook Ethernet) - success
ping 10.0.2.178 (Amiga) - success

Ping tests carried out from Amiga:
ping 10.0.2.150 (iBook Ethernet) - success
ping 10.0.1.150 (iBook wireless) - failure

So the problem lies with routing between the 10.0.1.x and 10.0.2.x networks, right?

--
moto
Title: Re: Genesis: How do I add a route to another network?
Post by: adolescent on December 23, 2005, 05:17:24 PM
From memory:

amitcp:bin/route add 10.0.1.1 10.0.1.150

Give that a try and see.
Title: Re: Genesis: How do I add a route to another network?
Post by: Thomas on December 23, 2005, 05:30:54 PM
Quote
So the problem lies with routing between the 10.0.1.x and 10.0.2.x networks, right?


Yes, that's right. And the one who does the routing between 10.0.1.x and 10.0.2.x is the iBook.

As I said before, try traceroute. I guess it will show that it goes to the iBook but does not get any further. So the problem is the iBook, not the routing table in Genesis.

However, there might be one routing-table related problem, but it is not Genesis' table but the router's table. You might need to tell the router that the 10.0.2.x network is accessible through 10.0.1.150. Otherwise the ping comes to the router but the router does not know where to reply to.

Bye,
Thomas
Title: Re: Genesis: How do I add a route to another network?
Post by: Zac67 on December 23, 2005, 05:42:01 PM
Deactivate ICS on the iBook. Is that OS X? From what I found, you've got to activate the IPFORWARDING service.

I suppose you set the correct networks masks - 10.x.x.x is class A by default; you're subnetting it to class C, that's a mask of 255.255.255.0. If Amy's got 255.0.0.0 she won't ever try to talk to the default gateway (=iBook)...
Title: Re: Genesis: How do I add a route to another network?
Post by: orange on December 23, 2005, 08:29:35 PM
if all else fails, you could start socks server on ibook and use it on Amiga.