Welcome, Guest. Please login or register.

Author Topic: Inet 225 TCP/IP Internet Access Problem  (Read 6717 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Pat the Cat

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #14 on: December 30, 2016, 08:27:08 PM »
Trouble shooting network issues is not my speciality. All comments on having a compatible TCIP/IP stack are totally valid.

But, it does strike me that, if the networked Amiga can look at the router, and even access the admin panel for it over the network, then the network side of it isn't the issue.

I suspect it might be the browser - you can get an update to Aweb from the developers here (it's still very old, but more recent than the one you have).

One big change in the meantime was the shift from IPV4 to IPV6. And that might be where the problem lies.

http://www.amitrix.com/aweb.html

You can get a slightly easier to install, none official version here for 3.X and PPC friendly 4.0 and MorphOS;-

http://www.greyhound-data.com/gunnar/aweb/index.htm?page=downloads

EDIT: Came across this thread. Apparently, you have to add the device (hydra.device) to AmiTCP or it defaults to using the serial port rather than the network card. The line is

eth dev=devs:networks/your.device

From;-

http://eab.abime.net/showthread.php?t=55734
« Last Edit: December 30, 2016, 08:53:19 PM by Pat the Cat »
"To recurse is human. To iterate, divine."

A1200, Vanilla, Surf Squirrel, SD Card, KS 3.0/3.z, PCMCIA dev
A500, Vanilla, A570, Rev 5, KS 1.2/1.3 Testbench system
Rasp Pi, UAE4ARM, 3D laser scanner, experimental, hoping for AmigaOS4Arm, based on Watterott Fabscan Pi
 

Offline pneronTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Posts: 176
  • Country: us
  • Gender: Male
    • Show only replies by pneron
    • http://www.incrediblesteps.com
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #15 on: December 31, 2016, 12:05:43 AM »
Thanks Pete.. the install does force me to link to the Hydra driver and I know it works because I can see the driver in my setup and I can also ping machines and the router....so perhaps you are right with the browser but before I go down that road (as per Kolla's request) - here are some screen dumps after I run the ROUTE from command line:


What happens when I run ROUTE from a shell after I initialize startinet prefs
===================================================

MISC{150-DH1}:NetWking/Inet225/Inet/c> route add amiga2000  192.168.1.1 1---> Integer metric
add host amiga2000: gateway 192.168.1.1   ----> output after I run the command


5.MISC{150-DH1}:NetWking/Inet225/Inet/c> netstat -rn
Routing tables
Destination      Gateway            Flags     Refs     Use  Interface
127.0.0.1        127.0.0.1           UH          0       97    lo0
192.168.1.76     192.168.1.1     UGH        0        0     s0
192.168.1.76     127.0.0.1         UH          0        1     lo0
default          192.168.1.76        U            0        0     s0
192.168.1        192.168.1.76     U            0        1     s0

ROUTE COMMANDS DOC BELOW (note the Integer Metric switches)
==========================================
 Interworks I-Net 225 - TCP/IP Networking Software

 Command: route
 Location: inet:c/

NAME

   
   route - manually manipulate the routing tables
   

SYNOPSIS

   
    0m1mroute0m -N=NOSYM/S,-F=FLUSH/S,ROUTES/S,CMD/M
   

DESCRIPTION

   
    route is used to manipulate the network routing tables manually.
    route supports two commands:
   
    1. Add a route.
   
      add [net |host] destination gateway [count]
   
    2. Delete a route.
   
    delete [net |host] destination gateway [count]
   
    The ROUTES switch will cause 0m1mroute0m to read its input from the file
    'inet:db/routes'.  Each line in that file must be either an 0m1madd0m or
    0m1mdelete0m  command  as  shown above, or a comment line (starting with
    ';' or '#').  Blank lines are ignored.  Incorrect lines will be reported to
    the console, but the rest of the file will still be processed.
   
    When  adding a route, if the route already exists, a message is printed and
    nothing changes.
   
   
Other command line arguments are:


    net or host
   
    specifies  the  type of destination address.  If not specified, routes to a
    particular  host  are distinguished from those to a network by interpreting
    the Internet address associated with destination.  If the destination has a
    "local address part" (last section of 'dotted' address, i.e.  if address is
    '200.0.0.20', '.20' is the part referenced) of 0, route is assumed to be to
    a network; otherwise, it is treated as a route to a host.
   
    destination destination host system where the packets will be
    routed.  destination can be either a host name (the official name or an
    alias), a network name (the official name or an alias, an Internet address
    in "dot" notation, or the keyword "default", which signifies the wildcard
    gateway route.
   
    gateway  The  gateway   through  which  the destination is reached.
    gateway  can  be  either a host name (the official name or an alias), or an
    Internet address in "dot" notation.
   
    count   An  integer  that indicates whether the gateway is a remote
    host  or  the local host.  If the route leads to a destination via a remote
    gateway,  count  should  be a number greater than 0.  If the route leads to
    destination  and  the  gateway  is  the local host, count should be 0.  The
    default for count is zero.  The result is not defined if count is negative.
   
    All  symbolic  names  specified  for a destination or gateway are looked up
    first  as  a  hostname using gethostbyname(); if the hostname is not found,
    the  destination  is  searched  as  a  network  name  using getnetbyname().
    destination  and  gateway  can be in dot notation.  If the -n option is not
    specified,  any  host  and  network  addresses  are  displayed symbolically
    according  to  the  name  returned  by  gethostbyaddr() and getnetbyaddr(),
    respectively,  except  for the default network address (printed as default)
    and  addresses  that  have unknown names.  Addresses with unknown names are
    printed  in Internet dot notation.  If the -n option is specified, any host
    and  network  addresses are printed in Internet dot notation except for the
    default network address which is printed as default.
   
    If the -f option is specified, route deletes all route table entries
    that specify a remote host for a gateway.  If this is used with one of
    the commands described above, the entries are deleted before the
    command's application.
   
   
    Output
   
        add destination: gateway gateway flags flags
       
        The specified route is being added to the tables.
       
        delete destination: gateway gateway flags flags
       
        The specified route is being deleted from the tables.
       
    Flags
   
    The  following  truth table can be used to help understand the relationship
    between count, destination type, flags, and route type.
   
    Count   Destination Type        Flags   Route Type
    _________________________________________________________
   
    =0      network     1       =U         route to a network via a
                                                   gateway which is the local host
   
    >0      network     3       =UG       route to a network via a
                                                   gateway which is a remote host
   
    =0      host        5         =UH       route to a host via
                                                   a gateway which is
                                                   the local host
                                                   itself
   
    >0      host        7        =UGH      route to a host via a gateway
                                                   which is a remote host
   
    =0      "default"       1   =U          wildcard route via the local host
   
    >0      "default"       3   =UG        wildcard route via a remote gateway
   
   
   
DIAGNOSTICS


   
    error:      delete a route that does not exist
    meaning:    The specified route was not in the route table.
   
    error:      add a route that already exists
    meaning:    The specified entry is already in the route table.
   
    error:      add too many routes
    meaning:    The routing table is full.
   
   
AUTHOR

    route was developed by the University of California, Berkeley.  The ROUTES
    switch and other related items were designed and developed by Jim Cooper of
    Interworks.
   
   
SEE ALSO

     netstat
     ifconfig
« Last Edit: December 31, 2016, 12:10:35 AM by pneron »
A2000: OS3.1.4|Picasso II|Blizzard 68060@50 MHz|3xAD516 Sunrize cards|HydraNexus|Cocolino|Gotex Floppy Emulator |Mac OSX (main DAW) | Windows
Incredible Steps Film and Music
 

Offline Fats

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 672
    • Show only replies by Fats
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #16 on: December 31, 2016, 04:30:47 PM »
Quote from: pneron;818471
...
default          192.168.1.76        U            0        0     s0
...

This is wrong, it should be 192.168.1.1 for gateway as to go to by default to your router to reach a non-local address.
Try (just guessing)
% route add default 192.168.1.1
Trust me...                                              I know what I\'m doing
 

Offline pneronTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Posts: 176
  • Country: us
  • Gender: Male
    • Show only replies by pneron
    • http://www.incrediblesteps.com
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #17 on: December 31, 2016, 07:14:05 PM »
OK, understand.  I will make the changes later today and dump netstat -rn outputs to see if there is any issue
A2000: OS3.1.4|Picasso II|Blizzard 68060@50 MHz|3xAD516 Sunrize cards|HydraNexus|Cocolino|Gotex Floppy Emulator |Mac OSX (main DAW) | Windows
Incredible Steps Film and Music
 

Offline kolla

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #18 on: January 01, 2017, 03:47:19 AM »
Also you seem to confuse the string ">0" as an input, with "a value greater than 0", so you end up with a lot of files named "0", containing the output from the command.

Quote
Inet:c/Route add net 192.168.1.1 >0

I suggest looking for those files named "0", located in whatever directory you run the command from, and delete them.

Quote
count - An integer that indicates whether the gateway is a remote
host or the local host. If the route leads to a destination via a remote
gateway, count should be a number greater than 0. If the route leads to
destination and the gateway is the local host, count should be 0. The
default for count is zero. The result is not defined if count is negative.

See? "count" can not be the string ">0", but it can foor example be the number 3.


As suggested above, the command to set default gw should be:

Quote
Inet:c/route add default 192.168.1.1
« Last Edit: January 01, 2017, 03:57:41 AM by kolla »
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #19 on: January 01, 2017, 04:15:03 AM »
Quote from: Pat the Cat;818452
But, it does strike me that, if the networked Amiga can look at the router, and even access the admin panel for it over the network, then the network side of it isn't the issue.

No, your assumption is wrong, it is quite normal to be able to access the router on a LAN even when the route out is not configured, and especially so when NAT is attempted.

With IPv6 things happens much more automatically. For example, my provider in Norway (Canal Digital) provides (if I recall correctly) 3 /64 networks to my router which these days is just an Apple Airport Extreme. The Airport Extreme automatically sets up all the native IPv6 routing, using the 3 networks for 2 wireless networks and one for wire. I configured it from my phone and it works flawlessly out of the box. By setting up a NAT64 router and a bind9 installation with DNS64 enabled, I no longer need IPv4 and NAT on my LAN. For each legacy IPv4-only system (everything Amiga), things get more complicated. I must use 464XLAT, which enables them to connect to IPv4 services on Internet across my IPv6-only network. There is of yet no good generic solution for legacy IPv4-only clients to access IPv6-only services, though for web there are simple proxy options.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline pneronTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Posts: 176
  • Country: us
  • Gender: Male
    • Show only replies by pneron
    • http://www.incrediblesteps.com
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #20 on: January 01, 2017, 02:40:54 PM »
Thank you for the detail summary Kolla.

Here is the dump of my inet-225 init startup files along with netstat. As you can see from running Inet:c/ command (with the correct integer setting of 1) I get a confirmation message showing my gate added to the route:

add net default: gateway 192.168.1.1

However, I am still unable to access Internet from my browser...thoughts on next step?



5.MISC{150-DH1}:> startinet
I-Net 225 © 1995,1996 by Interworks
Network startup has begun.
Configuring Hostname: amiga2000
Configuring for User: batman
Adding default gateway route.
add net default: gateway amiga2000
Adding 'shortcut' route to localhost.
add host amiga2000: gateway localhost
Starting INetd.
Starting PortMapper.
Starting SMTPd Mailer daemon.
Network startup complete.
Running 'INet:s/StartINet-After'...
add net default: gateway 192.168.1.1


5.MISC{150-DH1}:> netstat -rn
Routing tables
Destination      Gateway            Flags     Refs     Use  Interface
127.0.0.1        127.0.0.1          UH          0        0  lo0
192.168.1.76     127.0.0.1          UH          0        0  lo0
default          192.168.1.1        UG          0        0  s0
default          192.168.1.76       U           0        0  s0
192.168.1        192.168.1.76       U           0        0  s0
5.MISC{150-DH1}:>
A2000: OS3.1.4|Picasso II|Blizzard 68060@50 MHz|3xAD516 Sunrize cards|HydraNexus|Cocolino|Gotex Floppy Emulator |Mac OSX (main DAW) | Windows
Incredible Steps Film and Music
 

Offline rkidd7952

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #21 on: January 01, 2017, 04:50:33 PM »
Quote from: pneron;818620
Thank you for the detail summary Kolla.

However, I am still unable to access Internet from my browser...thoughts on next step?



I assume you're testing the browser's connection to the internet by entering a site name rather than an IP.  I didn't see a mention of DNS earlier in the thread, but you'll need to point the amiga to a DNS server to be able to resolve domain names.

Try pinging an IP on the public internet, such as 8.8.8.8, from the amiga.  If that works, then your routing is OK.

Robert
 

Offline kolla

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #22 on: January 01, 2017, 05:05:51 PM »
Yes,

And I would assume your NAT router also functions as DNS resolver, so setting nameserver to 192.168.1.1 should also work. I don't recall where Inet-225 sets this, but maybe it has a resolv.conf file somewhere? If so, setting "nameserver 192.168.1.1" in it should do the trick.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline Pat the Cat

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #23 on: January 01, 2017, 06:57:57 PM »
Can I ask a stupid question please?

If I was in this situation, at this stage, I would just change the settings marked 192.168.1.75 or similar to 192.168.1.1 , in the settings area listed in the file marked MISC.

Quote
5.MISC{150-DH1}:> netstat -rn
Routing tables
Destination      Gateway            Flags     Refs     Use  Interface
127.0.0.1        127.0.0.1          UH          0        0  lo0
192.168.1.76     127.0.0.1          UH          0        0  lo0
default          192.168.1.1        UG          0        0  s0
default          192.168.1.76       U           0        0  s0
192.168.1        192.168.1.76       U           0        0  s0
5.MISC{150-DH1}:>    
Because 192.168.1.1 is the local IP address for the machine that routes to the outside internet. 127.0.0.1 is the Amigas IP address, from the Amigas point of view.

The issue is, how? That should let the browser use the TCP/IP stack to access the internet, and the web.

The stupid question is, am I on the right lines or completely off the mark? I did say I'm not very good with networks.
« Last Edit: January 01, 2017, 07:00:49 PM by Pat the Cat »
"To recurse is human. To iterate, divine."

A1200, Vanilla, Surf Squirrel, SD Card, KS 3.0/3.z, PCMCIA dev
A500, Vanilla, A570, Rev 5, KS 1.2/1.3 Testbench system
Rasp Pi, UAE4ARM, 3D laser scanner, experimental, hoping for AmigaOS4Arm, based on Watterott Fabscan Pi
 

Offline kolla

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #24 on: January 01, 2017, 07:50:14 PM »
The only thing that strikes me as a bit odd in that routing output is
Quote
192.168.1.76 127.0.0.1 UH 0 0 lo0
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #25 on: January 01, 2017, 08:00:52 PM »
Quote from: Pat the Cat;818637

If I was in this situation, at this stage, I would just change the settings marked 192.168.1.75 or similar to 192.168.1.1 , in the settings area listed in the file marked MISC.


That MISC is not a file, it is just the prompt of his shell, he appears to be standing in a volume called MISC: which corresponds to his DH1: device :)

What you see is the output of the command "netstat -rn" - netcat being a tool to show various.. network status, -r is "route" and "-n" is "do not resolve ip addresses and ports".

Quote

Because 192.168.1.1 is the local IP address for the machine that routes to the outside internet. 127.0.0.1 is the Amigas IP address, from the Amigas point of view.


That is correct. And 192.168.1.76 is the address of the amiga.

What the routing table shows seems quite normal:

Quote
127.0.0.1 127.0.0.1 UH 0 0 lo0


The localhost IP-address is routet to the loopback interface lo0

Quote
192.168.1.76 127.0.0.1 UH 0 0 lo0


This one is odd, I would have expected a

Quote
192.168.1.76 192.168.1.76 U 0 0 s0


But - back in the days, the TCP-stacks did a lot of weird things :)

Quote

The issue is, how? That should let the browser use the TCP/IP stack to access the internet, and the web.


Sure, but on still need DNS to know what addresses to connect to.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline pneronTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Posts: 176
  • Country: us
  • Gender: Male
    • Show only replies by pneron
    • http://www.incrediblesteps.com
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #26 on: January 01, 2017, 08:01:10 PM »
is this an entry in my Host file or do I need to setup a DNS server ?
A2000: OS3.1.4|Picasso II|Blizzard 68060@50 MHz|3xAD516 Sunrize cards|HydraNexus|Cocolino|Gotex Floppy Emulator |Mac OSX (main DAW) | Windows
Incredible Steps Film and Music
 

Offline Pat the Cat

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #27 on: January 01, 2017, 08:13:16 PM »
Thanks Kolla. I get it now. Something is a little odd with the netstat report, it's just a question of finding the right tool to change it.
Quote from: pneron;818647
is this an entry in my Host file or do I need to setup a DNS server ?


My guess is, you change it in the host file, as indicated by Kolla? You ARE already in the proces of trying to set up a DNS server? :)
« Last Edit: January 01, 2017, 08:16:12 PM by Pat the Cat »
"To recurse is human. To iterate, divine."

A1200, Vanilla, Surf Squirrel, SD Card, KS 3.0/3.z, PCMCIA dev
A500, Vanilla, A570, Rev 5, KS 1.2/1.3 Testbench system
Rasp Pi, UAE4ARM, 3D laser scanner, experimental, hoping for AmigaOS4Arm, based on Watterott Fabscan Pi
 

Offline Oldsmobile_Mike

Re: Inet 225 TCP/IP Internet Access Problem
« Reply #28 on: January 01, 2017, 10:35:51 PM »
I would assume your router already handles DNS - but does the software know to get it from there? You could try manually pointing it to something like OpenDNS?
Amiga 500: 2MB Chip|16MB Fast|30MHz 68030+68882|3.9|Indivision ECS|GVP A500HD+|Mechware card reader + 8GB CF|Cocolino|SCSI DVD-RAM
Amiga 2000: 2MB Chip|136MB Fast|50MHz 68060|3.9|Indivision ECS + GVP Spectrum|Mechware card reader + 8GB CF|AD516|X-Surf 100|RapidRoad|Cocolino|SCSI CD-RW
 Amiga videos and other misc. stuff at https://www.youtube.com/CompTechMike/videos
 

Offline pneronTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Posts: 176
  • Country: us
  • Gender: Male
    • Show only replies by pneron
    • http://www.incrediblesteps.com
Re: Inet 225 TCP/IP Internet Access Problem
« Reply #29 from previous page: January 02, 2017, 12:18:37 PM »
Yes my router is pointing to DNS...will look at OpenDNS. thanks
A2000: OS3.1.4|Picasso II|Blizzard 68060@50 MHz|3xAD516 Sunrize cards|HydraNexus|Cocolino|Gotex Floppy Emulator |Mac OSX (main DAW) | Windows
Incredible Steps Film and Music