Source: www.net130.com Date: 2005-03-03
How to change the IP address under the CMD of WindowsServer ■■■ -> Windows 2K / 2003 Server
Change the IP address in the command line
Windows2000 is now a popular operating system. Its function is very powerful, and it can even do a lot of work in the command line like UNIX. The following is a method of changing the IP address in the command line. Now it is introduced to everyone (in parentheses, the black body is manually entry):
C: /> ipconfig (first use ipConfig this command to see the previous IP address)
Windows 2000 IP Configuration
Ethernet Adapter Local connection:
Connection-Specific DNS SUFFIX.:
IP address..............................................................
.................: 255.255.255.0
................: 10.1.1.254
C: /> Netsh (enter setting mode)
Netsh> interface
Interface> IP
Interface IP> Set Add AdDress "Local Connection" Static 10.1.1.111 255.255.255.0 10.1.1.254
Interface IP> EXIT
The set command above is explained below:
Set Address - Set the IP address of the specified interface and the default gateway.
SET DNS - Sets DNS server mode and address.
SET WINS - Sets WINS Server Mode and Address.
C: /> ipconfig (After the change, look at the ipconfig command, confirm if the change is successful)
Windows 2000 IP Configuration
Ethernet Adapter Local connection:
Connection-Specific DNS SUFFIX.:
...............: 10.1.1.111
.................: 255.255.255.0
................: 10.1.1.254
Command list
.. - Move to the previous layer.
? - Display the list of commands.
AAAA - Change to `aaaa 'context.
Abort - Discard changes made in offline mode.
Add - Add a configuration item to the project list.
Alias - Add an alias
BYE - Exit the program.
Commit - Submit changes made in offline mode.
Delete - Delete a configuration item on the project list.
DHCP - Change to `DHCP 'context.
Dump - Displays a configuration script.
Exec - Run a script file.
Exit - Exit the program.
Help - Displays the list of commands.
Interface - Change to `Interface 'context.
Offline - sets the current mode to offline.
Online - sets the current mode to an online.
POPD - Open a context from the stack.
Pushd - Push the current context into the stack.
Quit - Exit the program.
RAS - Change to `Ras' context.
Routing - Change to `Routing 'context.
SET - Update Configuration Settings.
Show - Display Information
UNALIAS - Delete an alias.