[Samba] smbmount chooses wrong ip and fails!

Don Woodward 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 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 ( )
internal_resolve_name: returning 3 addresses:

Then smbmount chooses to try to connect to one of the VMWare IP addresses as
Connecting to at port 139
error connecting to (Network is unreachable)
Error connecting to (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 ?

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.

-Don Woodward

More information about the samba mailing list