Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Amiga 2000 PPP Internet Raspberry Pi
« on: April 07, 2014, 04:24:00 AM »
I need some help getting my Amiga 2000 on the internet.  Currently I am trying to use a Raspberry Pi to connect to the Amiga via a USB to Serial & Null Modem Cable.  I then want to use PPPD to provide internet to the Amiga.  

Currently there is no clear tutorial on what settings are required on the Pi so I am trying to hobble together information from several different posts.

This one is on the Raspberry Pi but through serial rather then a USB to serial

http://jmp.no/blog/cheap-overkill-amiga-network-adapter

This video achieved exactly what I want but has no information how to setup the Pi with the exception of that pppd command which won't work (but it has all the Miami settings which is great)

https://www.youtube.com/watch?v=fEonOb5SkEg


So far I got as far making the connection between the Amiga and the Pi. Miami states:

Interface 'ppp0' is now online,

But when I ping or do anything I get a 100% packet loss

The command line I am using on the Pi is:

sudo pppd -detach /dev/ttyUSB0 19200 noauth local passive xonxoff persist 192.168.0.130:192.168.0.131

Where 192.168.0.130 is the address of the Raspberry Pi
Where 192.168.0.131 is a random IP address I selected that is not currently being used on the network.

Any other variation of the pppd command does not seem to work.  I get an unable to connect message in Miami.

I enabled ip forwarding (at least I think I did) by

Editing:

/etc/sysctl.conf

Running:

sudo sysctl -p /etc/sysctl.conf

What am I missing

Any help would be apreciated
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #1 on: April 07, 2014, 04:07:53 PM »
Quote from: rewlako;762098
Have you read the comments on the blog?  Pretty much explained there.
Also use a dedicated subnet for your rpi/amiga network.

I have been at this for 2 days, I think I read every single post & comment related to this that google returned in the first 3 pages.  I   am ready to say that this may be beoynd me.  If someone has done this and is willing to post their setup script I would be very greatfull.

Else a tutorial on how to do this would be great.  

rewlako, I did not see anything on any of the posts about a deticated subnet, I am not even sure how to set that up on my router.  Do you think this is the issue?  Is there any way to test that I am at least hitting the Raspberry Pi and its a network issue?
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #2 on: April 08, 2014, 04:15:20 PM »
Quote from: rewlako;762172
You don't need to configure this on your router.

I just noticed that you chose some odd addresses for the rpi/amiga connection which makes me suspect you are using the same subnet as on your network.

Let's say your network is 192.168.0.x

On the Rpi, use IP 192.168.1.1
On the Amiga, use IP 192.168.1.2 with gateway 192.168.1.1

The Rpi will route traffic from 192.168.1.x to 192.168.0.x.
I have spoken with the author earlier and can ask for his assistance if you still can't make it work


Thank you so much for responding.

I will try tonight and let you know if it works,

One question, my raspberry Pi's IP address is 192.168.0.130, should I first force DHCP to give it 192.168.1.130?

Thanks
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #3 on: April 10, 2014, 04:27:15 PM »
Quote from: rewlako;762246
What desiv said.  The Pi will have 2 IPs, one for your Amiga/Rpi network (locally) and one for the network you have the other computers connected to.  The Amiga won't be able to tell.

Let me know how it works out


I don't understand how to give my Pi 2 ip addresses. I mean one IP address is given to the wireless interface by DHCP, I have no idea how to get the router to give it a second IP address to the Pi or even what interface would use it.  Or are these just made up number that do not exist on my router but are just used internally within the Pi?

Sorry, networking is not my strength.
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #4 on: April 11, 2014, 06:17:45 AM »
Quote from: desiv;762320
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


Great tutorial, thanks,

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.

If you ever get this going on the Pi please post a tutorial,

Thanks
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #5 on: April 12, 2014, 02:20:18 AM »
Well this is the command I am running so far:

sudo pppd nodetach /dev/ttyUSB0 19200 noauth local passive ms-dns 192.168.0.1 xonxoff persist 192.168.1.130:192.168.1.131

From the Amiga I can ping 192.168.1.130 which is the PPP ip address I gave the Pi but nothing else.  It seems I can ping the pi but not the internet or even my real non PPP network.
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #6 on: April 12, 2014, 02:57:45 AM »
Yes I did, had to do it differently but when I run

sudo sysctl -p /etc/sysctl.conf

I get

kernel.printk = 3 4 1 3
net.ipv4.ip_forward = 1
vm.swappiness = 1
vm.min_free_kbytes = 8192
-----------------------------------------
A1000, A500, A2000
3583Bytes.com
 

Offline 3583BytesTopic starter

  • Jr. Member
  • **
  • Join Date: Mar 2014
  • Posts: 87
    • Show all replies
Re: Amiga 2000 PPP Internet Raspberry Pi
« Reply #7 on: April 28, 2014, 06:00:29 AM »
Update:

No luck yet.

Currently I am running this command:

sudo pppd nodetach /dev/ttyUSB0 19200 noauth local passive xonxoff persist 192.168.0.130:192.168.0.250

Where:

192.168.0.130 is the IP Address of my Raspberry Pi
192.168.0.250 is the IP Address outside of my DHCP range that I want my Amiga to have

Results:

I can ping both 192.168.0.130 & 192.168.0.250 from the Amiga.
I can telnet to 192.168.0.130 (MyPi)

I cannot ping anything else including my router 192.168.0.1

IP forwarding is on.

On the Pi If I run cat /proc/sys/net/ipv4/route I get:

Destination: 192.168.0.250
Gateway: *
Genmask: 255.255.255.255
Flags UH
Metric 0
Ref 0
Use 0
Iface PPP0

Any help would be appreciated, this is driving me nuts
-----------------------------------------
A1000, A500, A2000
3583Bytes.com