Peer to peer Win2k network: Ping cannot resolve name to IP

D

David

There is a small peer-to-peer network in our office.
All PCs:
OS win2k,
no domain but workgroup,
no WINS/DHCP server
only an internet DNS server to resolve internet domain name
It's simple and fine.

Several days ago I took my laptop to another company and changed the TCP/IP settings from static IP to dynamical DHCP. It worked
fine there.

Two days ago I got the laptop back to our office, and changed the TCP/IP settings from dynamical DHCP back to static IP. Then some
strange problems occurred to the laptop:
1)At laptop: ping <other PC by name> failed, error: Unknown host xxx;
2)At other PC: ping <laptop by name> failed too, error: Unknown host xxx;
3)ping <IP address> each other ok;
4)At laptop: can resolve other PC name through file "hosts";
5)At laptop: can resolve names such as "www.google.com" through the internet DNS server.

------------
More info:
------------
1)No relavant error message in OS eventvwr.
2)Win32 SDK gethostbyname("wind") return WSAHOST_NOT_FOUND(11001);
3)if both the laptop and another PC enable NetBEUI, they can access each other, but ping-by-name still fails.
4)Network settings are same as other PCs;
5)WINS TAB:
(1)No WINS server
(2)Enable LMHOST
(3)Enable NetBIOS over TCP/IP
6)All these do not work: disable/enable network, change IP address, change hostname, change workgroup name, uninstall/reinstall NIC,
move NIC to another slot, Disable/Enable Internet protocal, Disable/Enable NetBEUI
7)I don't want to reinstall the OS.


c:\>ping wind
Unknown host wind.

c:\>ipconfig /all

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : david
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Peer-Peer
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : DGC 100Base-TX CardBus PC Card #2
Physical Address. . . . . . . . . : 00-40-B8-00-04-A5
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.5.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.5.1
DNS Servers . . . . . . . . . . . : 202.106.0.20
 
G

Guest

Hi,

Have you tried any of the nbtstat commands like nbtstat -RR or -R or -r to
purge the netbios name cache? I have seen this problem once and this fixed it
(It was after doing the same as you have). A reboot would normally clear the
cache one would think, but not for me it didn't. I was using an XP laptop
however.

Good luck

Davy
 
D

Doug Sherman [MVP]

Try:

Edit the registry and change NodeType to b-node or h-node:

http://support.microsoft.com/default.aspx?scid=kb;en-us;160177

Doug Sherman
MCSE, MCSA, MCP+I, MVP

David said:
There is a small peer-to-peer network in our office.
All PCs:
OS win2k,
no domain but workgroup,
no WINS/DHCP server
only an internet DNS server to resolve internet domain name
It's simple and fine.

Several days ago I took my laptop to another company and changed the
TCP/IP settings from static IP to dynamical DHCP. It worked
fine there.

Two days ago I got the laptop back to our office, and changed the TCP/IP
settings from dynamical DHCP back to static IP. Then some
strange problems occurred to the laptop:
1)At laptop: ping <other PC by name> failed, error: Unknown host xxx;
2)At other PC: ping <laptop by name> failed too, error: Unknown host xxx;
3)ping <IP address> each other ok;
4)At laptop: can resolve other PC name through file "hosts";
5)At laptop: can resolve names such as "www.google.com" through the internet DNS server.
other, but ping-by-name still fails.
4)Network settings are same as other PCs;
5)WINS TAB:
(1)No WINS server
(2)Enable LMHOST
(3)Enable NetBIOS over TCP/IP
6)All these do not work: disable/enable network, change IP address, change
hostname, change workgroup name, uninstall/reinstall NIC,
 
D

David

Thanks. But it does not work.


Davy said:
Hi,

Have you tried any of the nbtstat commands like nbtstat -RR or -R or -r to
purge the netbios name cache? I have seen this problem once and this fixed it
(It was after doing the same as you have). A reboot would normally clear the
cache one would think, but not for me it didn't. I was using an XP laptop
however.

Good luck

Davy
 
D

David

Yes, it works!

I guess the following happend to my laptop:
1. At first, neither NodeType and DhcpNodeType key exist, so the node type defaults to b-node;
2. The DHCP server in that company added DhcpNodeType key(value: p-node) to the laptop;
3. When back to our office, the node type is still p-node. A p-node system uses only point-to-point name queries to a name server
(WINS). So all name resolvings fail because no WINS server exists.

So I deleted the DhcpNodeType key and disable/enable network, then the node type changed to "Broadcast" from "Peer to Peer", and
everything was ok.
 
G

Guest

Have you tried to see if other pc on you group network have the same static
IP address that you are using? If not, make sure that the pc has the same
network subnet mask of the work group. Check the gateway address and the
submask address and make sure that it matches with the other pc. You don't
have to reimage your labtop. This is a misconfiguration issue. Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top