Bizarre multi-homed name resolution with nmbd?

Bob Franklin R.C.Franklin at reading.ac.uk
Tue Oct 13 11:43:24 GMT 1998


Hi,

I connected a multi-homed Win95 machine (carrot, see below) to two 
networks (ankh-net and morpork-net) which a multi-homed Linux machine 
running Samba 1.9.18p10 (or whatever the latest <2 is) was also connected 
to (vimes) and wanted to see which of the two interfaces Win95 would 
pick...

   ---------------------------------   ankh-net   134.225.241.0/24
        |                |
    134.225.241.1    134.225.241.8
    [ vimes ]        [ carrot ]
    134.225.242.2    134.225.242.8
        |                |
   ---------------------------------   morpork-net   134.225.242.0/24

I played an MP3 on carrot directly off a share on vimes and looked at the 
lights on my hub.  Bizarrely, I saw the ankh transmit light on vimes 
flashing and the morpork light on carrot flashing.

Doing a netstat -rn on both machines, I saw a connection active from 
vimes-morpork -> carrot-ankh... I'm sure the reason for the asymmetric 
path will now be obvious!

Both the interfaces on carrot were DHCP configured and, amusingly, I 
could use WINIPCFG to release/renew the morpork interface on carrot and 
the routing would go the ankh interface way!  ;)

Anyway... what I was inquiring about was: does nmbd do any address 
sorting like named to avoid this happening?  I'm a bit confused about how 
I managed to get a connection across subnets in this way!

As for routing tables... vimes has no default route, only the two 
directly attached subnets; carrot has a default route of vimes (since 
vimes does routing)... there were two default route entries in the 
table... which was being used I have no idea.

My suspicion is that it's problem some Win95 weirdness, but I was just 
wondering if there were any known problems with nmbd in this kind of 
situation.

Ta,

  - Bob



----------------------------------------------------------------------------
  I do mail, web, news, DNS and C++... but I don't understand any of it...
----------------------------------------------------------------------------
  Bob "Mince" Franklin ~{], CNE ;), MCSE ;)           Tel. (0118) 931 8432
  Systems and Communications                          Fax. (0118) 975 3094
  Computer Services Centre                      R.C.Franklin at reading.ac.uk
  University of Reading, U.K.          http://www.reading.ac.uk/~suq96rcf/
----------------------------------------------------------------------------




More information about the samba mailing list