@amije
i don't think that has to do with the ip but with the name of the pc. you need to set it up in a way that it's looking for the ''Full computer name''.
right click my computer/properties/computer name
And how exactly does smbfs find out about this name?
You'd need some sort of dynamic name resolving (local nameserver), or dynamically generated hosts file for this. As I said, just using static IP for the server is much easier.
Anyway, here is what I use in my lan:
run <>nil: l:smbfs CASE DOMAIN=DEBIAN USER=piru PASSWORD=yeahright QUIET VOLUME=peg1: CACHE=1024 SERVICE=//peg1/all
in hosts file I have:
10.0.0.2 peg1.home peg1