[Samba] samba resolves wrong wins ip address

John Russell drjimmy42 at yahoo.com
Fri Jan 2 18:05:05 GMT 2004


On Fri, 2004-01-02 at 12:51, Jason Balicki wrote:
> >I'm not using samba as a wins server.  It is a client to another WINS
> >server to which I do not have access.  However, I don't think that the
> >database is corrupt as _every_ windows machine is able to resolve the
> >address of machine 1 (see original email).  Only machine 2 gets the ip
> >address of the wrong interface.  That's what confuses me.
> >Thanks for the idea.
> 
> Hmmm.  Let's see what everyone else is saying.  Do this (from machine 2):
> 
> arp -a
> 
> and then
> 
> nmblookup "nameofvmwareguest"
> 
> and then
> 
> nmblookup "nameofvmwarehost"
> 
> and then
> 
> half order of kung po chicken
> 
> and then
berlioz:/home/jorussel# arp -a
bxb2-bb-hsrp.cisco.com (161.44.79.1) at 00:00:0C:07:AC:01 [ether] on
eth0
? (161.44.79.176) at 00:02:8A:36:63:87 [ether] on eth0
? (161.44.79.220) at 00:0C:29:46:EE:9A [ether] on eth0

berlioz:/home/jorussel# nmblookup jorussel-w2ks  <--vmware guest name
querying jorussel-w2ks on 161.44.79.255
161.44.79.220 jorussel-w2ks<00>

berlioz:/home/jorussel# nmblookup mendelssohn <--vmware host and machine
1
querying mendelssohn on 161.44.79.255
161.44.79.176 mendelssohn<00> <-- this is the CORRECT address.  

berlioz:/home/jorussel# ping mendelssohn  
PING mendelssohn (192.168.35.1) 56(84) bytes of data. <-- this is the 
	WRONG address  AAGGH!!  So what is ping doing?

--- mendelssohn ping statistics ---
21 packets transmitted, 0 received, 100% packet loss, time 20012ms

berlioz:/home/jorussel# mmmmm kung po chicken
bash: mmmmm: command not found


> what should be the current ip of machine 1 and machine 2 and the vmware
> guest (machine v?)
> 

machine 1 161.44.79.176
machine 2 161.44.79.31 (not important I think)
machine v (guest on machine 1) 161.44.79.220
because the guest is in bridged mode, it gets its own ip address on the
network and looks like a normal machine.  however, the host communicates
with it through a network interface (vmnet8) ....

on machine 1: 
mendelssohn:~> /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:02:8A:36:63:87  
          inet addr:161.44.79.176  Bcast:255.255.255.255 
		Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2845610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1032601 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2076416902 (1980.2 Mb)  TX bytes:134805682 (128.5 Mb)
          Interrupt:11 Base address:0x8000 Memory:d0200000-d0200038 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:37006 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37006 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:19646754 (18.7 Mb)  TX bytes:19646754 (18.7 Mb)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:192.168.35.1  Bcast:192.168.35.255 
		Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:835 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


So it is this vmnet8 address that machine 2 is getting.  I'm so
confused. Thanks a lot for your help.

John

> and then
> 
> Send me the results, if you would please. :)
> 
> --J(K)
-- 
If you're not part of the solution, you're part of the precipitate.



More information about the samba mailing list