Lm th? no ? s? d?ng cng c? Netsh.exe v cc thi?t b? chuy?n m?ch d?ng l?nh

D?ch tiu ? D?ch tiu ?
ID c?a bi: 242468 - Xem s?n ph?m m bi ny p d?ng vo.
Ch ?
Bi vi?t ny p d?ng cho Windows 2000. H? tr? cho Windows 2000 k?t thc vo ngy 13 thng 7 nm 2010. Cc Trung tm gi?i php k?t thc h? tr? Windows 2000 l m?t i?m kh?i ?u ? l?p k? ho?ch chi?n l?c c?a b?n di chuy?n t? Windows 2000. ? bi?t thm thng tin xem cc Chnh sch v?ng ?i h? tr? c?a Microsoft.
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TM T?T

Netsh.exe l m?t cng c? qu?n tr? vin c th? s? d?ng ? c?u h?nh v qu?n l? Windows trn my tnh t?i m?t d?u nh?c l?nh. V?i cng c? Netsh.exe, b?n c th? tr?c ti?p cc l?nh b?i c?nh b?n nh?p ? helper thch h?p, v tr? gip sau th?c hi?n l?nh. M?t helper l m?t t?p tin th vi?n lin k?t ?ng (.dll) m? r?ng cc ch?c nng c?a cc cng c? Netsh.exe b?ng cch cung c?p c?u h?nh, gim st, v h? tr? cho m?t ho?c nhi?u d?ch v?, ti?n ch, ho?c giao th?c. Tr? gip c?ng c th? ?c s? d?ng ? m? r?ng ng?i tr? gip khc.

THNG TIN THM

B?n c th? s? d?ng cng c? Netsh.exe ? th?c hi?n cc tc v? sau:
  • C?u h?nh giao di?n.
  • C?u h?nh cc giao th?c ?nh tuy?n.
  • C?u h?nh cc b? l?c.
  • C?u h?nh cc tuy?n ?ng.
  • C?u h?nh hnh vi truy c?p t? xa cho b? ?nh tuy?n Windows d?a trn truy c?p t? xa ang ch?y my ch? truy c?p t? xa (RRAS) d?ch v? v ?nh tuy?n.
  • Hi?n th? c?u h?nh b? ?nh tuy?n hi?n ang ch?y trn my tnh b?t k?.
  • S? d?ng tnh nng k?ch b?n ? ch?y m?t b? su t?p cc l?nh trong ch? ? l ch?ng l?i m?t router ? ch? ?nh.
C php cho cc cng c? Netsh.exe l:
Netsh [-r b? ?nh tuy?n tn] [-m?t AliasFile] [-b?i c?nh c] [l?nh | -f ScriptFile]
? hi?n th? m?t danh sch cc subcontexts v l?nh c th? ?c s? d?ng trong m?t b?i c?nh, g? tn b?i c?nh theo sau l m?t khng gian v m?t? t?i netsh > d?u nh?c l?nh. V d?, ? hi?n th? m?t danh sch cc subcontext v l?nh c th? ?c s? d?ng trong cc / ?nh tuy?n b?i c?nh, g? ?nh tuy?n? t?i netsh > l?nh nh?c, v sau nh?n ENTER.

B?i c?nh

B?i c?nh dy ?c n?i thm vo l?nh cng c? Netsh.exe v ?c truy?n l?i m?t helper lin k?t. Tr? gip c th? c m?t ho?c nhi?u m?c nh?p ch? ra r?ng b?n ? b?i c?nh. M?t s? cc b?i c?nh c s?n trong cc cng c? Netsh.exe l:

B?i c?nh Command: /dhcp
K?t qu?: Thay ?i ?i v?i b?i c?nh Dynamic Host Configuration Protocol (DHCP).

B?i c?nh Command: /ras
K?t qu?: Thay ?i ?i v?i b?i c?nh h? ph?c v? truy c?p t? xa (RAS).

B?i c?nh Command: / ?nh tuy?n
K?t qu?: Thay ?i ? ?nh tuy?n b?i c?nh.

B?i c?nh Command: /wins
K?t qu?: Thay ?i Windows Internet tn d?ch v? (th?ng) ng? c?nh.

B?i c?nh c th? c?ng lm t? trong b?i c?nh khc. V d?, cc b?i c?nh sau ho?t ?ng bn trong netsh > ras b?i c?nh:

B?i c?nh Command: /ip
K?t qu?: Thay ?i ng? c?nh giao th?c Internet (IP).

B?i c?nh Command: /ipx
K?t qu?: Thay ?i ?i v?i b?i c?nh Internetwork gi Exchange (IPX).

B?i c?nh Command: /netbeui
K?t qu?: Thay ?i ?i v?i b?i c?nh NetBios Enhanced User Interface (NETBEUI).

Subcontexts sau ho?t ?ng bn trong netsh > ?nh tuy?n ip b?i c?nh:

B?i c?nh Command: /autodhcp
K?t qu?: Thay ?i ? autodhcp subcontext.

B?i c?nh Command: /dnsproxy
K?t qu?: Thay ?i ? dnsproxy subcontext.

B?i c?nh Command: /igmp
K?t qu?: Thay ?i ? thnh vin nhm Internet Protocol (IGMP) subcontext.

B?i c?nh Command: /mib
K?t qu?: Thay ?i ? qu?n l? thng tin c s? (MIB) subcontext.

B?i c?nh Command: /nat
K?t qu?: Thay ?i ? subcontext ?a ch? m?ng (NAT).

B?i c?nh Command: /ospf
K?t qu?: Thay ?i ? subcontext Open Shortest Path First (OSPF).

B?i c?nh Command: /relay
K?t qu?: Thay ?i ? ti?p s?c subcontext.

B?i c?nh Command: /rip
K?t qu?: Thay ?i ? ?nh tuy?n thng tin giao th?c (RIP) subcontext.

Netsh.exe l?nh

Thm l?nh sau y c th? ?c s? d?ng v?i cc cng c? Netsh.exe:

CHU Y: Tham s? ty ch?n ?c hi?n th? trong d?u ngo?c ([]). Thay th? m?c ?c hi?n th? v?i m?t nhn v?t ?ng (|) gi?a chng.

B?i c?nh Command: /?
K?t qu?: Hi?n th? tr? gip.

B?i c?nh Command: /abort
K?t qu?: Lo?i b? b?t k? thay ?i no ?c th?c hi?n trong ch? ? gin tuy?n. Khng c hi?u l?c trong ch? ? tr?c tuy?n.

B?i c?nh Command: / thm helper DLL-tn
K?t qu?: Ci ?t t?p tin .dll helper ? netsh.exe.

B?i c?nh Command: /alias [b danh tn] [string1] [string2...]
K?t qu?: N?u /alias, li?t k t?t c? cc b danh. N?u/b danh b danh-tn, hi?n th? chu?i tng ng. N?u/b danh b danh tn string1 string2..., ?t bi?t hi?u-tn chu?i ch? ?nh.

B?i c?nh Command: /bye
K?t qu?: Thot kh?i chng tr?nh.

B?i c?nh Command: /commit
K?t qu?: Cam k?t b?t k? thay ?i no ?c th?c hi?n trong ch? ? gin tuy?n cho router. Khng c hi?u l?c trong ch? ? tr?c tuy?n.

B?i c?nh Command: / xa helper tn t?p .dll
K?t qu?: Lo?i b? cc t?p tin .dll helper t? Netsh.exe.

B?i c?nh Command: / ?-tn t?p
K?t qu?: B?i hay thm c?u h?nh vo m?t t?p tin vn b?n.

B?i c?nh Command: /exec k?ch b?n t?p tin tn
K?t qu?: T?i t?p l?nh v th?c hi?n l?nh t? n.

B?i c?nh Command: /exit
K?t qu?: Thot kh?i chng tr?nh.

B?i c?nh Command: /h
K?t qu?: Hi?n th? tr? gip.

B?i c?nh Command: /help
K?t qu?: Hi?n th? tr? gip.

B?i c?nh Command: / gin tuy?n
K?t qu?: ?t ch? ? hi?n t?i gin tuy?n. B?t k? thay ?i no ?c th?c hi?n trong ch? ? ny ?c lu, nhng yu c?u m?t "cam k?t" ho?c "tr?c tuy?n" l?nh ?c thi?t l?p trong b? ?nh tuy?n.

B?i c?nh Command: / online
K?t qu?: ?t ch? ? hi?n t?i tr?c tuy?n. B?t k? thay ?i no trong ch? ? ny ngay l?p t?c ?c ph?n nh trong cc router.

B?i c?nh Command: /popd
K?t qu?: Hi?n ra m?t b?i c?nh t? ngn x?p.

B?i c?nh Command: /pushd
K?t qu?: ?y b?i c?nh hi?n t?i vo ngn x?p.

B?i c?nh Command: / quit
K?t qu?: Thot kh?i chng tr?nh.

B?i c?nh Command: / Cai o [ch? ? =] tr?c tuy?n | gin tuy?n
K?t qu?: ?t ch? ? hi?n t?i ? tr?c tuy?n ho?c offline.

B?i c?nh Command: / show b danh | Helper | ch? ?
K?t qu?: N?u /show b danh, li?t k t?t c? cc ?nh ngh?a b danh. N?u/hi?n th? tr? gip, li?t k t?t c? cc qu?c gia ng?i tr? gip. N?u/hi?n th? ch? ?, cho th?y ch? ? hi?n t?i.

B?i c?nh Command: /unalias b danh tn
K?t qu?: Xa b danh ? ch? ?nh.

Helper nng ?ng lin k?t th vi?n file c s?n

?nh tuy?n & t? xa truy c?p IP c?u h?nh - Ipmontr.dll
?nh tuy?n & t? xa truy c?p IPX Configuration - Ipxmontr.dll
Giao di?n - Ifmon.dll
RAS - Rasmontr.dll
DHCP - Dhcpmon.dll
TH?NG - Winsmon.dll

Lin quan ?n m?c ng k? cho Helper nng ?ng lin k?t th vi?n file

HKEY_LOCAL_MACHINE/ph?n m?m/Microsoft/NetSh /
REG_SZ: Ipmontr.dll
REG_SZ: Ipxmontr.dll
REG_SZ: Ifmon.dll
REG_SZ: Rasmontr.dll
REG_SZ: Dhcpmon.dll
REG_SZ: Winsmon.dll


LU ?: N?u nh?ng n? l?c ? s? d?ng Netsh ? -<file name=""> ? ? c?u h?nh vo m?t t?p tin khng lm vi?c, h?y th? s? d?ng c php:<b00></b00></file>Netsh b?i ch?a > tn t?p ho?c path\filename, t? m?t d?ng l?nh.

Thu?c tnh

ID c?a bi: 242468 - L?n xem xt sau cng: 21 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
T? kha:
kbinfo kbnetwork kbmt KB242468 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:242468

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com