Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Linde on October 29, 2006, 09:16:25 PM

Title: TCP/IP Network help
Post by: Linde on October 29, 2006, 09:16:25 PM
Okay, so I installed drivers for my PCMCIA card and AmiTCP using this guide: http://www.acc.umu.se/~patrikax/amiga/guides/AmiTCP_Install/ (http://www.acc.umu.se/~patrikax/amiga/guides/AmiTCP_Install/).

I think I've got it installed properly, but I know little about network configuration. I think the problem has to do with the ip adresses or something. Here's a pic of my network:
(http://img230.imageshack.us/img230/3197/networkra4.gif)
The router is connected to the internet of course, I forgot to draw that.

The Amiga is configured with the IP address 192.168.0.77 using 192.168.1.1 as its gateway. I don't know if it's correct, but I don't plan on connecting to the internet with it right now anyway. I tried changing it to the IP of the adapter in the PC it's connected to (192.168.0.251) but that didn't work at all. First of all I want to be able to ping my PC :(

Windows indicates that the cable is connected every time I start the amiga up, so I don't think it's the cable.

Any network gurus know what to do?  :-?
Title: Re: TCP/IP Network help
Post by: Linde on October 29, 2006, 09:38:11 PM
Never mind, I got it working with CardPatch and CardReset :D
Title: Re: TCP/IP Network help
Post by: alewis on October 29, 2006, 10:31:15 PM
Is your PC running ICS or some other form of Internet conenction sharing?
Title: Re: TCP/IP Network help
Post by: xPhilx on October 30, 2006, 12:37:50 AM
Hi, that's the same setup I have here nearly, only I have an Ariadne ii in an A4kd. I've been trying for the best part of today to connect to the internet through the pc. I can ping the 2nd NIC in the pc which the a4k connects directly to but only if I disable the pc's wifi NIC that connects to the router. I've enabled Internet Connection Sharing on the PC, I've turned my brain to spaghetti and I've been in deep dark places of XP64 pro no man should ever go alone.


....
Phil
Title: Re: TCP/IP Network help
Post by: alewis on October 30, 2006, 12:42:32 AM
I have a horrible suspicion that ICS sharing is broken in XP, at least with wireless. It attempts to create a layer two bridge, to avoid routing. However, for some odd reason it then decides that the 2nd (connected to router/internet) NIC should have a seperate IP address, and that this IP adress should be the default gateway. And more often than not, it decides to assign the same IP address as the existing router....

This is plain daft. TBH, better to bite the bullet and use a wired connection from Amiga to router. Tried, tested, and works.
Title: Re: TCP/IP Network help
Post by: xPhilx on October 30, 2006, 12:52:51 AM
I won't let MS beat me, I WONT! ;^). In desperation I let the ICS wizard loose and it decided that it should set up a 2nd network between the 2nd NIC & a4k; 192.168.0.1. My head hurts too much now so I've thrown the towel at it till tomorrow. I just don't want to run a cable downstairs when there's a net connection sat right at the side of the miggy.
Title: Re: TCP/IP Network help
Post by: trekiej on October 30, 2006, 05:59:42 AM
Does anyone know if NIS(Network Information Service) or NFS(Network File System) is available for the amiga?  It exists for Linux.
 How about a clone?

Thanks.
Title: Re: TCP/IP Network help
Post by: motorollin on October 30, 2006, 07:21:44 AM
The problem is that you have two interfaces on your PC and expecting it to act as a router, but both interfaces have IP addresses in the same IP range (192.168.0.x). Also, you have given your Amiga a gateway in the 192.168.1.x range, but this address is not in the range of its next hop on the network. The way you should configure it is to have 192.168.1.x on one side of the network (Amiga and Ethernet adapter on the PC) and 192.168.2.x on the other side (Router/Wifi/Wifi adapter on the PC). Then you have to configure the PC to route between 192.168.1.x and 192.168.2.x, and tell your router that if it wants to find the 192.168.1.x network it has to go through the IP address you give to the Wifi adapter on the PC.

Alternatively, just bridge the Ethernet and Wifi connections on the PC. It will then alocate one IP address to both, and automatically take care of the routing for you.

--
moto
Title: Re: TCP/IP Network help
Post by: alexatkin on October 30, 2006, 07:49:50 AM
AmiTCP comes already with NFS client support built-in.

NIS im not sure there would be any point as the Amiga doesnt have any multi-user support except in AmiTCP itself.  Im not quite sure how that works either but its less than practical.
Title: Re: TCP/IP Network help
Post by: alewis on October 30, 2006, 08:19:06 AM
Neither will the PC... TBH, I'd then give everything an address in the 192.168.0.x range, to keep things simple (and if one is new to IP addressing, be able to follow many examples found on the net, without worrying about differences ebtween examples that use 192.168.0.x and ones own network using 192.168.1.x, but thats mho).

Quote
motorollin wrote:
The problem is that you have two interfaces on your PC and expecting it to act as a router, but both interfaces have IP addresses in the same IP range (192.168.0.x). Also, you have given your Amiga a gateway in the 192.168.1.x range, but this address is not in the range of its next hop on the network. The way you should configure it is to have 192.168.1.x on one side of the network (Amiga and Ethernet adapter on the PC) and 192.168.2.x on the other side (Router/Wifi/Wifi adapter on the PC). Then you have to configure the PC to route between 192.168.1.x and 192.168.2.x, and tell your router that if it wants to find the 192.168.1.x network it has to go through the IP address you give to the Wifi adapter on the PC.

Alternatively, just bridge the Ethernet and Wifi connections on the PC. It will then alocate one IP address to both, and automatically take care of the routing for you.moto


Thats the theory, but ICS for some reason doesnt always do this, and often will assign the same IP address to the bridged connection as already exists on the router interface... as I said, I'm sure it's broken. And thats before one runs into the permissions issue of access the properties page...!
Title: Re: TCP/IP Network help
Post by: xPhilx on October 30, 2006, 10:40:50 AM
Hi, this isn't my thread so I'll be quick, hope you don't mind Linde. I eventually got the a4k connected to the internet through the pc. I bridged the NICs and the IP has stayed at 192.168.1.X. I did try bridging at first but what threw me was the wifi nic icon would get a red cross and inform me it wasn't connected, I just pressumed that this wasn't right and removed the bridge.

Thanks,

....
Phil
Title: Re: TCP/IP Network help
Post by: neuroflip on October 30, 2006, 12:46:19 PM
i don't know if a lose something but.... if you connect directly amiga - router via ethernet you haven't to run ICS software...

you have to especify an IP that it isn't used at the same network range:

router IP: 192.168.1.1
PC IP: 192.168.1.30

Amiga IP: 192.168.1.31
Amiga network mask: 255.255.255.0
Amiga gateway (or destination IP or somthing else): 192.168.1.1

Title: Re: TCP/IP Network help
Post by: Linde on October 30, 2006, 08:50:02 PM
Thanks, I could get internet on it, too, by bridging the connections like motorollin suggested. It's really slow though, I get around 1000 CPL with AmiFTP on the local network. Is that because of my amiga being slow (A1200 with 8MB RAM card, stock 68ec020) or am I doing something wrong?
Title: Re: TCP/IP Network help
Post by: Zac67 on October 30, 2006, 09:19:05 PM
Why don't you spare yourself the pain and connect Amy directly to the router?
Bridging works entirely different to routing - it's definitely possible to use the same IP on both sides, since you'll have to spoof all remote IPs anyway...
I don't use M$ for network purposes at all - setup is a pain in the a**. AFAIK ICS only works for certain IP ranges...
Title: Re: TCP/IP Network help
Post by: Linde on October 30, 2006, 09:57:44 PM
Do you think that the bridging is causing the slow speed?

The thing is that the router is pretty far away from my room. I don't want to move my amiga, and I DON'T want a long LAN cable through the whole house :)

I will move to a new house soon, and the previous owners have already put cables in the walls so all the rooms have wire access to the office (without cables laying around all over the floor).

But I still want to get the network going, because I'm pretty impatient with stuff like this :pissed: