| Back to logs list
Reprinted from 1250390797 at 09:18 on October 16, 2009 Reading (loading. ..) Comments (0) Category: Personal Diary
with DOS command to set ip address and DNS
Microsoft's Windows family, starting from the Windows NT network operating system into the market,
belstaff sale, and now Windows 2000 network function can be gradually improved,
belstaff leather, in the process of growing into many other Windows network operating system functions can be said to learn from,
belstaff jackets outlet, and gradually formed a set of functional network operating systems, SUN, etc. This is also the major reason the company felt satisfied,
belstaff online, do not think Microsoft has developed something completely self-sufficient. However,
belstaff coat, the function of Windows2000 is indeed very powerful, it is almost the same as Unix and Linux command line to do a lot of work.
Here we look at Windows on the command line that can change the ip address command,
belstaff uk, read the command that you may feel very much like Unix and Linux command command, more like Cisco's router command. Here is my computer echo the actual operation, I will add some comments:
C: \> ipconfig (first use ipconfig command to look at this before the change ip address)
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix.:
IP Address............: 192.168.0.250 (local connection before the change ip)
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 (and then run the command netsh)
netsh> interface (netsh command of the sub-command)
interface> ip (interface command subcommand)
interface ip> set (interface ip command of the sub-command)
effective the following command:
this context command:
set address - set the specified interface IP address or default gateway.
set dns - set the DNS server mode and addresses.
set wins - set the WINS server mode and addresses.
interface ip> set address \
OK.
(Note: The above image is not a command like Cisco.)
interface ip> exit
C: \> ipconfig (ipconfig command to change the look and then use the ip address, and confirm whether the change successful)
Windows 2000 IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix.:
IP Address............: 192.168.0.2 (the ip that after the change 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: \>
netsh there are a lot stronger this command functions as follows:
C: \> netsh
netsh>?
effective the following command:
this context command:
.. - moved to a layer of context level.
? - Display list of commands.
aaaa - Changes to the `aaaa 'context.
abort - discarded in offline mode changes.
add - will be a configuration item to the project list.
alias - add an alias
bye - exits the program.
commit - submitted in offline mode changes.
delete - delete a list in the project configuration items.
dhcp - change to `dhcp 'context.
dump - Displays a configuration script.
exec - run a script file.
exit - exit the program.
help - displays a list of commands.
interface - change to the `interface 'context.
offline - Sets the current mode to offline.
online - Sets the current mode into online.
popd - to open a context from the stack.
pushd - will be put onto the stack the current context.
quit - exit the program.
ras - Changes to the `ras' context.
routing - Changes to the `routing 'context.
set - Updates configuration settings.
show - displays information
unalias - Delete an alias.
wins - Changes to the `wins' context.