Configure IP Network Addresses Using MS-DOS Command

Configure IP Network Addresses Using MS-DOS Command

Normally, to configure and set IP addresses for machines on the network, you only need to configure them in Network Connections and set the IP address in TCP / IP using the Windows interface. Now we introduce another method of IP address configuration using Command line statements. Sometimes this method will be used in case of need.

To configure IP address, DNS, WIN by command line. Follow these steps:
In the command prompt (Run -> type cmd for Windows 2000, XP, 2003 or type command for Windwos 98, Me) type:
& nbsp;
netsh
IP interface

& lt; - Set IP Address-- & gt;
set address name = `` Local Area Connection`` source = dhcp
đặt địa chỉ địa chỉ cục bộ
vidu:
set address name = `` Local Area Connection`` source = dhcp
đặt địa chỉ cục bộ 192.168.1.2 255.255.255.0

& lt; - Set Preferred DNS Server - & gt;
set dns name = `` Local Area Connection`` source = dhcp
đặt DNS Local Area Connection`` static

vidu:
set dns name = `` Local Area Connection`` source = dhcp
đặt DNS `` Local Area Connection`` static 192.168.1.1

& lt; - Set WINS address-- & gt;

set wins name = `` Local Area Connection`` source = dhcp
set wins Local Area Connection`` static

vidu:
set wins name = `` Local Area Connection`` source = dhcp
set wins `` Local Area Connection`` static 192.168.1.1

& lt; - De-install the program --- & gt;

Exit & nbsp; & nbsp;
In addition to the basic configuration above you can refer to the following features (in English) Chữ ký tự động từ nút thông tin netsh:
- Goes up one context level.
abort - Discarded changes made in offline mode.
add - a configuration entry to a list of entries.
alias - Adds an alias.
bridge - Thay đổi tới nút thông tin netsh bridge.
bye - Exits the program.
commit - các thay đổi thay đổi làm trong chế độ offline.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag 'context.
exit - Exits the program.
interface - Thay đổi tới nút thông tin netsh interface.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
Routing - Changes to the `netsh routing 'context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.
wins - Changes to the `netsh wins' context.

Chữ ký đã có giao diện netsh giao diện netsh:
add - a configuration entry to a table.
delete - Deletes a configuration entry from a table.
ip - Changes to the `netsh interface ip 'context.
reset - Resets information.
set - Sets configuration information.
show - Displays information.

Chạy trong ngữ cảnh:
1 - Displays a list of commands.
add - a configuration entry to a table.
delete - Deletes a configuration entry from a table.
Dump - Displays a script configuration.
help - Displays a list of commands.
reset - TCP / IP Resets and related components to a clean state.
set - Sets configuration information.
show - Displays information.
& nbsp; When you encounter difficult commands that need help please type question mark ( ) or type (/ /) the necessary commands will be displayed and you can follow the help