N?u b?n b?m vào các
Giao th?c Internet (TCP/IP) m?c nh?p trong các
K?t n?i này dùng các m?c sau đây danh sách đó là hi?n th? trong thu?c tính c?a k?t n?i khu v?c đ?a phương, b?n có th? nh?n th?y r?ng các
G? cài đ?t nút là không có s?n (khuy?t t?t). Hành vi này x?y ra v? ngăn x?p v?n t?i Control Protocol/Internet Protocol (TCP/IP) là m?t thành ph?n c?t l?i c?a Microsoft Windows Server 2003 và không th? đư?c g? b?.
Trong m?t s? t?nh hu?ng, b?n có th? cài đ?t l?i TCP/IP đ? tr? v? ngăn x?p TCP/IP tr?ng ban đ?u. B?n có th? s? d?ng ti?n ích Netsh.exe đ? thi?t l?p l?i ngăn x?p TCP/IP đi?u đ?nh cùng đó là khi b?n l?n đ?u tiên cài đ?t h? đi?u hành.
(Ti?n ích) Netsh.exe
Netsh) m?t công c? d?ng l?nh k?ch b?n mà b?n có th? s? d?ng đ? c?u h?nh và giám sát Windows Server 2003 m?ng. Công c? này s? cho b?n m?t giao di?n tr?nh bao tương tác m?ng.
B?n có th? s? d?ng các
thi?t l?p l?i l?nh trong b?i c?nh giao th?c Internet (IP) c?a ti?n ích này đ? ghi l?i các sau TCP/IP-liên quan đ?n khóa registry:
- SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
- SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
N?u b?n ch?y l?nh này, b?n nh?n đư?c k?t qu? tương t? như khi b?n g? b? và cài đ?t l?i các giao th?c TCP/IP.
C?nh báo Các
Netsh int ip thi?t l?p l?i l?nh s? thi?t l?p l?i t?t c? các thông tin IP, m?c đ?nh c?ng thông tin, và thông tin máy ch? DNS. Trư?c khi b?n kh?i đ?ng l?i máy tính sau khi ch?y l?nh này, b?n ph?i c?u h?nh thi?t đ?t TCP/IP. N?u không, b?n không th? k?t n?i t?i máy tính t? xa.
Cú pháp l?nh
Netsh int ip thi?t l?p l?i [log_file_name]
S? d?ng các
Netsh l?nh đ? thi?t l?p l?i ngăn x?p TCP/IP, b?n ph?i ch? đ?nh m?t tên t?p tin đăng nh?p, trong đó k?t qu? c?a l?nh đư?c ghi l?i. N?u b?n nh?p vào m?t trong các l?nh đư?c mô t? trong ph?n "L?nh m?u" c?a bài vi?t này, ngăn x?p TCP/IP trên máy tính hi?n t?i đư?c đ?t l?i, và các ho?t đ?ng c?a hành đ?ng đó đư?c ghi l?i trong t?p tin Resetlog.txt đư?c xác đ?nh trong d?ng l?nh. Trong ví d? đ?u tiên, đăng nh?p t?p tin đư?c t?o ra trong thư m?c hi?n t?i; trong ví d? th? hai, m?t đư?ng d?n đ?y đ? đ?n t?p tin đăng nh?p Resetlog.txt đư?c ch? đ?nh.
Chú ý N?u t?p s? ghi hi?n có cùng tên là hi?n nay trong thư m?c m?c tiêu, thông tin m?i t?p tin đăng nh?p đư?c g?n vào k?t thúc t?p hi?n có.
L?nh m?u
Các ví d? sau mô t? cách s? d?ng các
Netsh l?nh đ? thi?t l?p l?i x?p ch?ng giao th?c TCP/IP.
Ví d? 1
- Nh?p vào B?t đ?u, sau đó b?m Ch?y.
- Trong các M? h?p, lo?i CMD, sau đó b?m Ok.
- T?i d?u nh?c l?nh, g? l?nh sau, và sau đó nh?n ENTER:
Netsh int ip thi?t l?p l?i resetlog.txt
LƯU ?: Trong l?nh trư?c, "int" là h?nh th?c ng?n c?a các giao di?n b? ch? huy. - Lo?i exit, sau đó nh?n ENTER.
Ví d? 2
- Nh?p vào B?t đ?u, sau đó b?m Ch?y.
- Trong các M? h?p, lo?i CMD, sau đó b?m Ok.
- T?i d?u nh?c l?nh, g? l?nh sau, và sau đó nh?n ENTER:
Netsh int ip thi?t l?p l?i c:\resetlog.txt
- Lo?i exit, sau đó nh?n ENTER.
Xem tr? giúp cho l?nh, g? l?nh, g? m?t không gian, và sau đó g?
?. Tr? giúp b? sung có s?n cho các l?nh trong sub-contexts c?a các
Netsh b? ch? huy. Ví d?, xem tr? giúp cho các
Netsh l?nh này đư?c mô t? trong ph?n trư?c, g? l?nh sau t?i d?u nh?c l?nh:
- Lo?i Netsh?, sau đó nh?n ENTER.
- Lo?i Netsh int?, sau đó nh?n ENTER.
- Lo?i Netsh int ip?, sau đó nh?n ENTER.
- Lo?i Netsh int ip thi?t l?p l?i?, sau đó nh?n ENTER.
Ví d? v? t?p s? ghi cho NETSH INT IP thi?t l?p l?i
Các văn b?n sau đây là m?t ví d? v? t?p nh?t k? đư?c t?o ra b?i
Netsh N?u b?n ch?y các
đ?t l?i IP b? ch? huy. T?p nh?t k? th?c t? có th? khác nhau tùy thu?c vào c?u h?nh c?a máy tính mà trên đó b?n ch?y l?nh. Thông thư?ng, không có hành đ?ng đang đăng nh?p các t?p tin n?u khóa registry TCP/IP không đư?c thay đ?i t? c?u h?nh ban đ?u c?a h?.
reset SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\15\RegLocation
old REG_MULTI_SZ =
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDomain
SYSTEM\CurrentControlSet\Services\TcpIp\Parameters\DhcpDomain
added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NetbiosOptions
added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BAA9D128-54BB-43F6-8922-313D537BE03E}\NetbiosOptions
reset SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServerList
old REG_MULTI_SZ =
10.1.1.2
deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhosts
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\AddressType
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DefaultGatewayMetric
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DontAddDefaultGateway
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\EnableDhcp
old REG_DWORD = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NameServer
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\RawIpAllowedProtocols
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\TcpAllowedPorts
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\UdpAllowedPorts
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\DisableDynamicUpdate
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\EnableDhcp
old REG_DWORD = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAddress
old REG_MULTI_SZ =
12.12.12.12
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationAddress
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationMask
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationSeed
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\SubnetMask
old REG_MULTI_SZ =
255.255.255.0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\TcpAllowedPorts
old REG_MULTI_SZ =
0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\UdpAllowedPorts
old REG_MULTI_SZ =
0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\AddressType
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DefaultGatewayMetric
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DontAddDefaultGateway
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\EnableDhcp
old REG_DWORD = 0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\NameServer
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\RawIpAllowedProtocols
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\TcpAllowedPorts
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\UdpAllowedPorts
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGateway
old REG_MULTI_SZ =
10.1.1.2
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGatewayMetric
old REG_MULTI_SZ =
0
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DisableDynamicUpdate
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\EnableDhcp
old REG_DWORD = 0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAddress
old REG_MULTI_SZ =
10.1.1.1
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationAddress
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationMask
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationSeed
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServer
old REG_SZ = 10.1.1.2,10.1.1.3
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\SubnetMask
old REG_MULTI_SZ =
255.255.255.0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\TcpAllowedPorts
old REG_MULTI_SZ =
0
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\UdpAllowedPorts
old REG_MULTI_SZ =
0
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DontAddDefaultGatewayDefault
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableIcmpRedirect
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableSecurityFilters
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution
<completed>
Chú ý Trong Windows Server 2003 Service Pack 1, b?n có th? s? d?ng các
Netsh winsock đ?t l?i l?nh đ? s?a ch?a Winsock.
C?nh báo Các chương tr?nh mà truy c?p ho?c giám sát Internet, ch?ng h?n như các chương tr?nh ch?ng virus, tư?ng l?a chương tr?nh, ho?c ?y quy?n khách hàng có th? b? ?nh ?nh hư?ng khi b?n ch?y các
Netsh winsock đ?t l?i b? ch? huy. N?u b?n có m?t chương tr?nh mà không c?n ch?c năng chính xác sau khi s? d?ng đ? phân gi?i này, cài đ?t l?i chương tr?nh đ? khôi ph?c ch?c năng.
Đ? bi?t thêm thông tin, h?y b?m vào s? bài vi?t sau đ? xem bài vi?t trong Cơ s? Ki?n th?c Microsoft:
811259
(http://support.microsoft.com/kb/811259/
)
Làm th? nào đ? xác đ?nh và ph?c h?i t? Winsock2 tham nh?ng trong Windows Server 2003, Windows XP, và trong Windows Vista
ID c?a bài: 317518 - L?n xem xét sau cùng: 27 Tháng Tám 2011 - Xem xét l?i: 2.0
Áp d?ng
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Small Business Server 2003 Standard Edition
- Microsoft Windows Small Business Server 2003 Premium Edition
| kbinfo kbnetwork kbmt KB317518 KbMtvi |
Máy d?chQUAN TRỌNG: Bài vi?t này đư?c d?ch b?ng ph?n m?m d?ch máy c?a Microsoft ch? không ph?i do con ngư?i d?ch. Microsoft cung c?p các bài vi?t do con ngư?i d?ch và c? các bài vi?t do máy d?ch đ? b?n có th? truy c?p vào t?t c? các bài vi?t trong Cơ s? Ki?n th?c c?a chúng tôi b?ng ngôn ng? c?a b?n. Tuy nhiên, bài vi?t do máy d?ch không ph?i lúc nào c?ng hoàn h?o. Lo?i bài vi?t này có th? ch?a các sai sót v? t? v?ng, cú pháp ho?c ng? pháp, gi?ng như m?t ngư?i nư?c ngoài có th? m?c sai sót khi nói ngôn ng? c?a b?n. Microsoft không ch?u trách nhi?m v? b?t k? s? thi?u chính xác, sai sót ho?c thi?t h?i nào do vi?c d?ch sai n?i dung ho?c do ho?t đ?ng s? d?ng c?a khách hàng gây ra. Microsoft c?ng thư?ng xuyên c?p nh?t ph?n m?m d?ch máy này.
Nh?p chu?t vào đây đ? xem b?n ti?ng Anh c?a bài vi?t này:
317518
(http://support.microsoft.com/kb/317518/en-us/
)