[Samba] smbmount chooses wrong ip and fails!
woodward at woodward.org
Tue Aug 26 00:55:38 GMT 2003
I'm trying to use smbmount to mount a Windows XP Share.
On the WindowsXP machine I have multiple adapters (due to installing
vmware - www.vmware.com).
By default, these VMWare adapters also bind to "Windows File Sharing".
When smbmount sends a broadcast packet to get the ip address of the host,
it gets back 3 ip addresses as follows:
nmb packet from 192.168.0.120(137) header: id=31847 opcode=Query(0)
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=ZORK<20> rr_type=32 rr_class=1 ttl=300000
answers 0 char `.....`...<.`... hex 6000C0A89A016000C0A83C016000C0A8
answers 10 char .x hex 0078
Got a positive name query response from 192.168.0.120 ( 192.168.154.1
192.168.60.1 192.168.0.120 )
internal_resolve_name: returning 3 addresses: 192.168.154.1 192.168.60.1
Then smbmount chooses to try to connect to one of the VMWare IP addresses as
Connecting to 192.168.154.1 at port 139
error connecting to 192.168.154.1:139 (Network is unreachable)
Error connecting to 192.168.154.1 (Network is unreachable)
It then stops without trying the other addresses.
Is there any way to get smbmount to either (1) continue and try all of the
or (2) only try the 'real' address (in this case 192.168.0.120) ?
BTW, if I unbind "Windows File Sharing" from the VMWare adapters on the XP
then smbmount works, but I really want to robustify my usage of smbmount so
is not required.
More information about the samba