Microsoft's Windows family has entered the market of network operating systems from Windows NT. To the current Windows 2000, it can be said that the network functions are gradually being improved. During this growth process, Windows has incorporated many functions of other network operating systems. It can be said that it was learned from it and gradually formed a complete network operating system. This is also the reason why major companies such as SUN feel dissatisfied, and they think it is not something that Microsoft has completely developed by itself. However, the functions of Windows 2000 are indeed very powerful, and it can almost do a lot of work on the command line like Unix and Linux.
Let's take a look at a command on Windows that can change the IP address on the command line. After reading this command, you may think that this command is very similar to Unix and Linux commands, and more like Cisco router commands. Here is an echo of what I actually operate on my computer, and I will add some comments:
C:\>ipconfig (First use the ipconfig command to see the previous IP address)
Windows 2000 IP Configuration
Ethernet adapter Local connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . . . . . . . . : 192.168.0.250 (IP before local connection changes)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
PPP adapter Dial-up connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 211.149.128.147
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.149.128.147
C:\>netsh (Then execute the netsh command)
netsh>interface (subcommand of netsh command)
interface>ip (subcommand of the interface command)
interface ip>set (subcommand of interface ip command)
The following commands are valid:
Commands in this context:
set address - Set the IP address or default gateway of the specified interface.
set dns - Set the DNS server mode and address.
set wins - Set the WINS server mode and address.
interface ip>set address "Local connection" static 192.168.0.2 255.255.255.0 192.168.0.1
1 (Set IP address)
Sure.
(Note: The above paragraph is like Cisco's command.)
interface ip>exit
C:\>ipconfig (After changing, use the ipconfig command to check the IP address to confirm whether the change is successful)
Windows 2000 IP Configuration
Ethernet adapter Local connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . . . . . . . . . . . . (The changed IP description was successful)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
PPP adapter Dial-up connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 211.149.128.147
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.149.128.147
C:\>
The netsh command has many powerful functions as follows:
C:\>netsh
netsh>?
The following commands are valid:
Commands in this context:
.. - Move to the previous level of context.
? - Show command list.
aaaa - Change to `aaaa' context.
abort - Drop changes made in offline mode.
add - Add a configuration item to the project list.
alias - Add an alias
bye - Exit the program.
commit - Commit changes made in offline mode.
delete - Delete a configuration project on the project list.
dhcp - Change to `dhcp' context.
dump - Show a configuration script.
exec - Run a script file.
exit - Exit the program.
help - Show command list.
interface - Change to `interface' context.
offline - Set the current mode offline.
online - Set the current mode to online.
popd - Open a context from the stack.
pushd - Push the current context onto the stack.
quit - Exit the program.
ras- Change to `ras' context.
routing - Change to `routing' context.
set - Update configuration settings.
show - Show information
unalias- Delete an alias.
wins- Change to the `wins' context.
The following subcontexts are available:
routing interface ras dhcp wins aaaa
If you need more help information about the command, please type the command,
Followed by ?.
There are many subcommands below each subcommand. I won’t introduce it one by one here because there are too many functions, so you can study it yourself.
Article entry: dnbm Editor: dnbm
Let's take a look at a command on Windows that can change the IP address on the command line. After reading this command, you may think that this command is very similar to Unix and Linux commands, and more like Cisco router commands. Here is an echo of what I actually operate on my computer, and I will add some comments:
C:\>ipconfig (First use the ipconfig command to see the previous IP address)
Windows 2000 IP Configuration
Ethernet adapter Local connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . . . . . . . . : 192.168.0.250 (IP before local connection changes)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
PPP adapter Dial-up connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 211.149.128.147
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.149.128.147
C:\>netsh (Then execute the netsh command)
netsh>interface (subcommand of netsh command)
interface>ip (subcommand of the interface command)
interface ip>set (subcommand of interface ip command)
The following commands are valid:
Commands in this context:
set address - Set the IP address or default gateway of the specified interface.
set dns - Set the DNS server mode and address.
set wins - Set the WINS server mode and address.
interface ip>set address "Local connection" static 192.168.0.2 255.255.255.0 192.168.0.1
1 (Set IP address)
Sure.
(Note: The above paragraph is like Cisco's command.)
interface ip>exit
C:\>ipconfig (After changing, use the ipconfig command to check the IP address to confirm whether the change is successful)
Windows 2000 IP Configuration
Ethernet adapter Local connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . . . . . . . . . . . . (The changed IP description was successful)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
PPP adapter Dial-up connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 211.149.128.147
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 211.149.128.147
C:\>
The netsh command has many powerful functions as follows:
C:\>netsh
netsh>?
The following commands are valid:
Commands in this context:
.. - Move to the previous level of context.
? - Show command list.
aaaa - Change to `aaaa' context.
abort - Drop changes made in offline mode.
add - Add a configuration item to the project list.
alias - Add an alias
bye - Exit the program.
commit - Commit changes made in offline mode.
delete - Delete a configuration project on the project list.
dhcp - Change to `dhcp' context.
dump - Show a configuration script.
exec - Run a script file.
exit - Exit the program.
help - Show command list.
interface - Change to `interface' context.
offline - Set the current mode offline.
online - Set the current mode to online.
popd - Open a context from the stack.
pushd - Push the current context onto the stack.
quit - Exit the program.
ras- Change to `ras' context.
routing - Change to `routing' context.
set - Update configuration settings.
show - Show information
unalias- Delete an alias.
wins- Change to the `wins' context.
The following subcontexts are available:
routing interface ras dhcp wins aaaa
If you need more help information about the command, please type the command,
Followed by ?.
There are many subcommands below each subcommand. I won’t introduce it one by one here because there are too many functions, so you can study it yourself.
Article entry: dnbm Editor: dnbm