Welcome, Guest. Please login or register.

Author Topic: Amiga 2000 PPP Internet Raspberry Pi  (Read 6690 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline desiv

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1270
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« on: April 08, 2014, 05:39:14 PM »
I haven't done this in ages, but I would think the Raspberry Pi would need 2 IPs.
It would get an IP from your router that should be in the same subnet that the router is in.

But the Pi should have a different IP/subnet for handing out IPs to devices via the serial (or just talking to them if you are manually assigning the IP on the Amiga).

So, your Pi has a 192.168.0.130 IP address (I am guessing that's a /24 so the whole 192.168.0.x subnet is there..).
Then, you Pi would have another IP in a different subnet, say 192.168.1.1/24.
When the Amiga connects via serial, it gets an address in that network, maybe 192.168.1.10.
The Pi then routes traffic between the 2.  So the Amiga's default gateway would be 192.168.1.1.

(Or you could use iptables or ipchains and NAT the Amiga to the other network rather than "route" it...)
This might be pretty old info tho, as I said, it's been ages since I did this..

desiv
Amiga 1200 w/ ACA1230/28 - 4G CF, MAS Player, ext floppy, and 1084S.
Amiga 500 w/ 2M CHIP and 8M FAST RAM, DCTV, AEHD floppy, and 1084S.
Amiga 1000 w/ 4M FAST RAM, DUAL CF hard drives, external floppy.
 

Offline desiv

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1270
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #1 on: April 10, 2014, 11:53:18 PM »
Haven't done this in ages or tested this, but this page seems to be describing what you want, except it's Win95 instead of an Amiga...  But the Linux config should be similar (although it's an older config, and not Pi specific.)

http://totalizator.wordpress.com/2012/10/03/connect-windows-95-to-the-internet-using-linux-box-and-rs-232-serial-port-null-modem-cable/

Interesting side note:  i just (yesterday) got a Pi and this is on my list of things to do, so I'll probably  be trying this out myself before too long.. ;-)

desiv
Amiga 1200 w/ ACA1230/28 - 4G CF, MAS Player, ext floppy, and 1084S.
Amiga 500 w/ 2M CHIP and 8M FAST RAM, DCTV, AEHD floppy, and 1084S.
Amiga 1000 w/ 4M FAST RAM, DUAL CF hard drives, external floppy.
 

Offline desiv

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1270
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #2 on: April 11, 2014, 04:23:05 PM »
Quote from: 3583Bytes;762331

However I am still not sure what the IP addresses represent in that tutorial I still don't get if I should just make up a pair for the PPP process or do they somehow have to tie into my router.

In this tutorial, the IP addresses are just for the linux box to client side.
So in your case, that would be your Pi to Amiga network.
Your Pi will still have it's own IP that it gets from your router..

The only thing you need to make sure is that they are in different subnets.
So, if your router is handing out IPs in the 192.168.0.0/24 range, your PPP config'd range should be 192.168.1.0/24.  Changing that 3rd octet makes it a different subnet for a /24 (255.255.255.0) range.

Now that I look at it, I'm not sure all of it is totally applicable..  These lines:
192.168.1.201:192.168.1.200
ms-dns 192.168.1.1

The first one says, I believe, your linux boxes (the Pi) IP for this range will be 192.168.1.201 and your client will get 192.168.1.200

The next line sets the DNS server, but you're going to want that to be the IP of your router most likely, and not 192.168.1.1.  That IP, being in the same range as the PPP network, but not being the linux host (that would assume your linux host is doing DNS) is confusing.

Of course, that's pretty old documentation, so it will be interesting to see if anything has changed... ;-)

desiv
Amiga 1200 w/ ACA1230/28 - 4G CF, MAS Player, ext floppy, and 1084S.
Amiga 500 w/ 2M CHIP and 8M FAST RAM, DCTV, AEHD floppy, and 1084S.
Amiga 1000 w/ 4M FAST RAM, DUAL CF hard drives, external floppy.
 

Offline desiv

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1270
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #3 on: April 12, 2014, 02:45:30 AM »
Did you enable routing on the Pi?
From the tutorial:
echo 1 > /proc/sys/net/ipv4/ip_forward

Also, what does your routing table look like after the connection on both machines.
On the pi in the shell, it's "route -n"
On the Amiga, it depends on your stack..  Hopefully you can tell what it is..

desiv
« Last Edit: April 12, 2014, 02:52:56 AM by desiv »
Amiga 1200 w/ ACA1230/28 - 4G CF, MAS Player, ext floppy, and 1084S.
Amiga 500 w/ 2M CHIP and 8M FAST RAM, DCTV, AEHD floppy, and 1084S.
Amiga 1000 w/ 4M FAST RAM, DUAL CF hard drives, external floppy.
 

Offline desiv

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1270
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #4 on: April 12, 2014, 03:06:49 AM »
(The more I think about it, the more I think you need that route on your router I mentioned below)

Quote from: 3583Bytes;762373
Yes I did, had to do it differently but when I run
Wonder if it needed a sudo, or something else..
Anyway, try a
pi@raspberrypi ~ $ cat /proc/sys/net/ipv4/ip_forward
0

(Mine says 0, as I haven't enabled routing, yours should say 1, as the output from the sysctl shows..)

If that's fine (as it probably is based on the sysctl), then it's probably down to the routing tables..

Possibly the default route on the Amiga not getting set...
If you can manually set the IP on the Amiga, try setting the IP (192.168.1.131), subnet mask (255.255.255.0), DNS server (whatever your router is) AND default route (192.168.1.130) that way.

Also, if we can see your Pi's routing table if it doesn't work..

I suppose it's possible your router doesn't like the new subnet.  If your router doesn't know about it, he might not pick it up.
If you can add a route to the routing table of your router manually, try that.
So, in the router, it would be a route to 192.168.1.0 255.255.255.0 (/24) and the gateway to that route would be your Pi's IP address on the router subnet (wasn't that something like 192.168.0.x?).
Or, you can use IP masq on the Pi instead of routing, but that is trickier..

desiv
« Last Edit: April 12, 2014, 03:18:34 AM by desiv »
Amiga 1200 w/ ACA1230/28 - 4G CF, MAS Player, ext floppy, and 1084S.
Amiga 500 w/ 2M CHIP and 8M FAST RAM, DCTV, AEHD floppy, and 1084S.
Amiga 1000 w/ 4M FAST RAM, DUAL CF hard drives, external floppy.