Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: LP on October 08, 2003, 04:21:40 PM
-
Hmm...
smbfs gives me this message:
smbfs: ERRSRV - ERRinvnetname (Invalid network name in tree connect).
smbfs: Cannot connect to server (5, Input/output error).
smbfs: Could not connect to server (5, Input/output error).
Could anyone break this into understandable english?
What could be the problem?
-
It means the hostname you're trying to connect to doesn't exist on the network.
Try using SMBClient -L or SMBClient -L if that doesn't work. This will tell you if Samba is working properly.
If you can't connect, something is wrong. Make sure you're running nmbd, and have hostname database entries for all your lan IPs in Miami/Genesis.
-
It's quite wierd this...
smbd is started
nmbd is started both with option -D
smbclient says the following:
Sharename Type Comment
--------- ---- -------
PC Disk C on Windows 98 PC
IPC$ IPC Remote Inter Process-kommunikation
Server Comment
--------- -------
PC Win98
Workgroup Master
--------- -------
USERS PC
and when using smbclient on my ami:
Sharename Type Comment
--------- ---- -------
Homes Disk Home Directories
All Disk All volumes
RAM Disk System Mem
Paint Disk Paint
Downloads Disk Downloads
IPC$ IPC IPC Service (Amiga 1200 060)
Server Comment
--------- -------
AMIGABIG Amiga 1200 060
Workgroup Master
--------- -------
USERS AMIGABIG
Both my Amiga and PC is connected to a hub and my ADSL is connected to the hub...
My ISP gives me 2 dynamic adresses, my internet works on both machines but communication within the 2 computers doesn't, so it's something in miami or samba that doesn't work...
The Windows can't reach the Amiga either...
I've run with this setup once before, but when my ISP gave me new adresses I thought I could just change them in my miami database to the new ones...
But no... Now I'm stuck once again in this network hell...
(No firewall are installed (this goes for both machines)).
Looking at the smbclient information nothing should be wrong...
But what is it then?
BTW, can I prevent this situation again in some way, so I don't have to change IP's in my database every time my ISP changes them?
-edit-
sorry but the text layout won't do as I say so it's a bit messy this...
-
Your Samba works fine.
I think you're confusing LAN and WAN IPs. A WAN IP is your internet IP, and this is the address all other machines in the world see you as. It's given to your machine when you connect/dial up/get a lease. Only your gateway machine or router should be referred to by this address.
LAN IP is a local IP address that usually is in the form 192.x.x.x. Any machine can have a LAN and WAN IP - but when you're on a local network, you usually must use the LAN IP to connect to other machines.
You must define a LAN IP for each of your computers in Miami database. If your router assigns dynamic IPs, you must set it to assign static ones instead.
-
that explains a lot..
So how do I set a LAN IP in windows to it self and my amiga then?
BTW thanks for the answers it has cleared up a bunch of thing I didn't know...
-edit-
So in miami I make another interface for the same hardware and specify my own static IP?
I don't think miami is cabable of doing that as far as I remember...?
-edit-
Should I add a manual route instead?
-
Your router probably assigns LAN IPs dynamically. You can usually change this behaviour by assigning IPs to MAC addresses in the router config. Each network card has a (pseudo-unique) address called a MAC. You can use this to give your machines static IPs.
Your router should list the MAC addresses for each of the computers connected. If it doesn't, you can get it from Miami's hardware "SANA-II Perameters" window by pressing the Query Device button. On the PC you can get the MAC address by using ipconfig /all or in an MS-DOS window or running winipconfig (not win2000 or XP). This (http://compnetworking.about.com/library/weekly/aa062202b.htm) explains it a bit better.
Then, you can set up the LAN IPs as the following (for example):
192.168.2.1 Amiga
192.168.2.2 PC
Then you go into Miami/Genesis, go to the Database, and add these under Hosts. You'll know it works when you can do
MiamiPing PC
or
MiamiPing 192.168.2.2
from the Amiga and it works. It should work from the PC too.
If your router can't assign IPs by MAC, then you'll probably have to turn off DHCP and connect to it using static IPs. This isn't hard at all, but you should check your router first.
-
So my MAC adress for my amiga is:
00:50:FC:9B:0F:EA
Discribed as hardware address?
And for windows:
00:50:FC:9B:7E:CF
?
Another problem is that I don't have a router...
The package that came with the connection says "ADSL-modem" wich is maybe a standard user-friendly term for "router" but I have of how to access this thing by software?...
And thanks again...
-edit-
did I mention my setup:
Amiga ----> (hub) <------PC
(hub----->ADSL-modem---->ISP)
-
No, a modem isn't a router. In your case, the router is the hub.
Can you configure it? If not, you might have to go with the static IPs after all.
And that's not hard - you don't need add another interface. Just change the Miami IP Type gadget in the interface from DHCP to whatever IP you want and hope the hub takes it.
-
Ok...
This was also the thing I did when I didn't have the ADSL involved. And it worked fine...
But the problem is that if I don't set it to DHCP it doesn't work? -I've tried just now...
Problem is that I think the IP given to me by the ISP is also my LAN IP... I know you said it wasn't...
But the problem is that I only got one place in miami to set an IP and that is In the interface/edit section?
Sorry for being blind here...
-
It's the hub you're connecting to by DHCP. The hub connects to the modem using PPPoE, the computers behind it don't see this. Forget ADSL - that's on the internet side and has nothing to do with talking between the PC and the Amiga. And they can't talk to each other across the internet either, because they have the same IP.
When you connect to the hub using DHCP, it gives your computer a LAN IP. It's just that you don't know what it is. Connecting to the hub using a static IP and switching off DHCP will allow you to know the computer's LAN IP for Samba and for pinging.
The only question is, does your hub allow you do connect using a static IP? Have you tried?
But the problem is that I only got one place in miami to set an IP and that is In the interface/edit section?
Exactly. This is where you set your LAN IP. The hub should set your internet IP without Miami knowing it.
It's really the hub that's accessing the internet. It's like a computer attached straight to your modem. The two computers attached to it share its connection.
-
The hub allows static IP's yes...
I gave my Amiga 192.168.2.1
then it asked for a netmask...
I gave it 255.255.255.0
then it said it couldn't find any dns servers...
so I sat priority to 0 (disabled it)
Then it went online, but no internet... :-?
If I in Windows set my IP to static it doesn't connect to the Internet either...
maybe the hub might be ####ed then?
-
If you don't use DHCP but use static IP instead, you have to set the DNS server manually in Miami and Windows.
There's nothing wrong with your hub.
-
And the dns servers is always the same I presume?
Thanks for your help it's been a nice session this. I've learned alot...
Cheers...
-
DNS servers don't usually change but are different for each ISP.
And you're welcome. ;-)
-
Hmm...
This is starting to look like a bad movie...
The DNS servers are now in place in database/DNS servers...
The interface goes online without complains...
(Here comes the famous -but- again)
but, browser says no route to host when trying to reach e.g. amiga.org... :cry:
So this time it might be the gateway?
I've set it to what Windows says it has for gateway... This is proberbly wrong again, what do I set it to?...
-
You set gateway to the LAN IP address of your hub, in that case. You'll have to find out what it uses as its IP, somehow. Do you have docs for it?
-
No docs...
It's a borrowed second hand hub...
Darn... A dead end :-(
-
Well, does it have a manufacturer website with docs?
-
I have found the manufacturer but but no docs available...
Hmm... But atleast I found out ow to setup at network :-)
Thanks
-
Well...maybe then you can use DHCP and use some tool on the PC to find out the assigned gateway and computer IPs. Don't give up! Good luck! :-)
-
Thanks a bunch... ;-)