Welcome, Guest. Please login or register.

Author Topic: Network thru serial/parallell link  (Read 1775 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ravnenTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2006
  • Posts: 202
    • Show only replies by ravnen
Network thru serial/parallell link
« on: December 20, 2006, 09:06:26 AM »
Okay, now I have used such an incredible amount of money on amigas this last month, (AND ITS ALL YOUR FAULT A.ORG, getting me involved with this exctremly expencive hobby again).

Well, as you can see from my bragging signature, I've gone from non to three (actually I have a spare a4000d, so four) Amigas this two last months.

Yeah,yeah. So I got the a4000t for free, but nothing is as expencive as getting an amiga for free, since I had to upgrade it with a picasso, new harddrive etc.

Well, to the topic...

I see that amigakit is out of x-surfs, and I want to get them all online. I only lack networking on one of the machines, so I was thinking about using a networked machine as an router, using a serial or parallell cable. The speed is not that important.

Does anyone know how to do this. I've done things like this in the past with phones, setting up a ppp link over serial cable to an linux machine etc. So I guess this is possible for the Amiga to?

What tcpip stack supports this?

Thanks for any help.
 
 

Offline Chain

  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1324
    • Show only replies by Chain
    • http://chain.3dgrafika.cz/aktivity
Re: Network thru serial/parallell link
« Reply #1 on: December 20, 2006, 09:24:29 AM »
ive tried it with miami, BUT there is a problem with tutorial (found it on aminet) - it works as pc is dialer, so after connecting with amiga pc is ONLY connected to amiga and ethernet connection to the internet isnt working. I need it in other way - amiga as dialer and PC as "router" :((

it will need some services running on pc, but im not that skilled on windoze, so any help welcome!
too lazy to use shift key properly...
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Network thru serial/parallell link
« Reply #2 on: December 20, 2006, 10:31:42 AM »
Genesis can do this as well. You have to configure both interfaces in Genesis and then configure Genesis to forward packets between them. There have been some threads on this before. Try searching for "genesis routing".

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline cpfuture

  • Full Member
  • ***
  • Join Date: Feb 2006
  • Posts: 246
    • Show only replies by cpfuture
Re: Network thru serial/parallell link
« Reply #3 on: December 20, 2006, 12:42:33 PM »
I've got PPP running over a serial cable connected to my Mac, which is running pppd. I.e. the same pppd that's included with every Linux distro. OS X/Linux side is easy and just one line to start the ppp daemon (I can provide you with it if you want).

The Amiga side would be a bit tougher and depends on what you use as a TCP/IP stack. I'm using AmiTCP3.0b2 and AmiPPP, which when configured work together like a charm.

I'm running a 38400bps connection on my A500, but I bet an A4000 will match whatever your Linux box's serial port will do.
 :-D

Offline ravnenTopic starter

  • Full Member
  • ***
  • Join Date: Oct 2006
  • Posts: 202
    • Show only replies by ravnen
Re: Network thru serial/parallell link
« Reply #4 on: December 20, 2006, 02:48:28 PM »
I have a mac as well and a usb to rs232 adapter. So please give me the instructions for pppd.

The serial link cable, is it just to cross tx/rx (pin 2 and 3 if I remember correctly?).
 

Offline cpfuture

  • Full Member
  • ***
  • Join Date: Feb 2006
  • Posts: 246
    • Show only replies by cpfuture
Re: Network thru serial/parallell link
« Reply #5 on: December 21, 2006, 09:47:42 AM »
I'll post the pppd line to add to your Mac's /etc/rc tonight (I'm at work ATM). I remember just buying the cable somewhere, but you can find details here:

http://www.amigaforever.com/kb/3-105.html


Offline cpfuture

  • Full Member
  • ***
  • Join Date: Feb 2006
  • Posts: 246
    • Show only replies by cpfuture
Re: Network thru serial/parallell link
« Reply #6 on: December 21, 2006, 07:04:02 PM »
OK, so for using a serial link issue the following command from the Mac OS X Terminal:

sudo /usr/sbin/pppd /dev/tty.KeySerial1 38400 noauth local passive proxyarp asyncmap 0 silent persist 192.168.100.43:192.168.100.44

That should be one whole line. sudo is necessary, because launching pppd requires root privileges. /dev/tty.KeySerial1 is my serial port (which in my case is a KeySpan high speed USB-RS232 adapter, BTW) This will probably be different in your case if you use a different make or model. 38400 is where you'll put the desired bitrate. Start with something low and safe like 9600 initially and when you get it going, work your way up. Now for all the rest of the parameters I will have to refer you to the manpages of pppd, because that would be too much to get into here, although above parameters are good defaults to start with (unless you desire authenticated PPP, which is kind of overkill for a nullmodem connection). The last parameter is 2 IP addresses. The first one is the IP address of the PPP device on your Mac and the second one is the one you'll use for your Amiga. Please replace these with values you use for your own internal network.

If you get it working you can add pppd to your startup file /etc/rc, so the ppp  daemon will always be waiting whenever your Amiga wants to connect. Once again you'll need root privileges to edit /etc/rc, so do:

sudo vi /etc/rc

I simply added the pppd line to the end of the /etc/rc file. Ofcourse you can drop the sudo part here, because the /etc/rc file is already being executed with root privileges.

If you need any help configuring your TCP/IP stack and/or PPP software, just shout. I can post my relevant AmiTCP configuration files and my AmiPPP config here if you want, but that'll probably be tomorrow evening at the earliest. For now good luck!