Configure IP network address with MS-DOS command
Usually to configure and set the IP address for machines in the network you just need to configure in Network Connections and set the IP address in the TCP / IP protocol with the Windows interface. Now we introduce a method to configure the IP address using the command line command sometimes this way will be used in necessary cases.
To configure IP address, DNS, WIN by command line. Do the following steps:
Go to the command prompt window (Run -> type cmd for Windows 2000, Xp, 2003 or type command for Windwos 98, Me) type the command:
netsh
IP interface
Set IP address:
set address name = "Local Area Connection" source = dhcp
Tập tin địa chỉ địa chỉ Set
For example:
set address name = "Local Area Connection" source = dhcp
đặt thiết bị địa chỉ địa chỉ 192.168.1.2 255.255.255.0
Set up DNS Server priority
set dns name = "Local Area Connection" source = dhcp
set Local Local Connection "static DNS
For example:
set dns name = "Local Area Connection" source = dhcp
set DNS "Local Area Connection" static 192.168.1.1
Set up WINS address
set wins name = "Local Area Connection" source = dhcp
set Local Area Connection "static wins
For example:
set wins name = "Local Area Connection" source = dhcp
set static "Local Area Connection" wins 192.168.1.1
Once completed, to exit the program, enter the exit command.
In addition to the basic configuration above, you can refer to the following features (in English).
Cấu hình cơ sở dữ liệu từ sự mạng
. - Goes up one context level.
abort - Discards changes made while in offline mode.
add - Adds an entry configuration to một danh sách các mục nhập.
alias - Adds an alias.
bridge - Changes to the 'netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes an entry configuration from một danh sách các mục nhập.
diag - Thay đổi đến các giao diện 'Netsh diag'.
exit - Exits the program.
interface - Changes to the 'netsh interface' context.
offline - Sets the current mode to offline.
online - Thiết lập thời gian hiện thời để 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.
shows - Displays information.
unalias - Deletes an alias.
wins - Changes to the 'netsh wins' context.
Cấu hình cơ sở dữ liệu từ cơ sở dữ liệu interface:
add - Thêm một mục nhập cấu hình để một bảng.
xoá - mục nhập tập tin Deletes từ một bảng.
ip - Changes to the 'netsh interface ip' context.
reset - Resets information.
set - Sets configuration information.
shows - Displays information.
Commands in this context:
? - Hiển thị một danh sách các lệnh.
add - Thêm một mục nhập cấu hình để một bảng.
xoá - mục nhập tập tin Deletes từ một bảng.
dump - Displays a script configuration.
help - Displays a list of commands.
reset - Resets TCP / IP and related components to a clean state.
set - Sets configuration information.
shows - Displays information.
When you encounter difficult commands that require help, type a question mark ( ? ) Or type (? /) The necessary statements will be displayed and you can follow those help.
You should read it
- How to delete options in the Windows context menu
- This small application helps bring the context menu interface of Windows 10 to Windows 11
- How to add items to the 'Create New' context menu in Windows 10
- 9 pros and cons of using a local LLM
- How does Google determine local rankings?
- How to fix slow context menu in Windows 10's File Explorer
- Speed up network and Internet access
- Steps on how to create a local user account in Windows 10
May be interested
- Learn 192.168.0.100 IP address for local network192.168.0.100 is a private ip address, meaning it is used exclusively on private networks where it will be the ip address of the router or one of the devices on the network.
- The Scwcmd configure command in Windowsapplies to: windows server 2012 r2, windows server 2012.
- What is an IP address?ip address (internet protocol ip) is the number of formats for a network hardware, devices that use ip addresses to communicate with each other over an ip-based network like the internet.
- How to Ping an IP Addressthe ping command allows testing the connection speed between you and another network node. in this article, tipsmake will show you how to use the ping command on any operating system.
- How to Configure a Static Internet Protocol (IP) Address on a Computerthis wikihow teaches you how to set a static ip address for your computer within your wi-fi network. a static ip address won't change when your router or computer reboots, making it useful for remote operation and website hosting. static...
- How to use ipconfig command to refresh, reset IP address for the computerinstructions on how to use the ipconfig command to refresh, reset the ip address of the computer in the command prompt, introduce advanced ipconfig commands. click watch now!
- How to Change MAC Address on Windowssometimes you want to change the mac address of your network adapter. a mac address (media access control address) is a unique identifier used to identify your computer on a network. changing the mac address helps you diagnose network problems or change names. read step 1 below to learn how to change mac address on windows.
- Instructions for using IP address 192.168.2.2192.168.2.2 is a private ip address, sometimes used on local networks. this is the second ip address in the ip range starting from 192.168.2.1, sometimes called the 192.168.2.0 network.
- How to determine the device IP address on the local networkbefore you begin to fix most network or internet connectivity problems, you need to know the ip address assigned to different hardware devices in your network.
- Instructions for configuring IPv6 on Windows Serverassigning addresses on an ipv6 network is a bit different from ipv4. ipv6 can be assigned to an interface in four ways in how to configure this ipv6.