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
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