Back up network settings in the Netsh command in Windows
2004-06-08 Read: 3540
Http://anheng.com.cn/news/23/301.html
One of the important tasks in the network failure recovery process is the recovery of server network settings.
Netsh is the command line script utility provided by the Windows 2000 / XP / 2003 operating system itself, which allows users to display or modify the network configuration of currently running computers locally or remotely. For archive, backup, or configure other servers, NetSh can also save configuration scripts in a text file.
Run the netsh command
There are two situations where running netsh commands.
1. Local running netsh command
Click "Start → Run", enter the cmd command in the Run dialog and click [OK], and then enter the netsh command after the command prompt will be.
Enter Netsh>:
The following instructions are valid:
The commands in this context: .. - Move to the previous layer. ? - Display the list of commands. Abort - Discard changes made in offline mode. Add - Add a configuration item on the project list. Alias - Add a alias Bridge - change to `Netsh Bridge 'context. BYE - Exit the program. Commit - Submit changes made in offline mode. Delete - Delete a configuration item on the project list. Diag - Change to `Netsh Diag 'context. Dump - Displays a configuration script. Exec - Run a script file. Exit - Exit the program. FireWall - Change to `Netsh FireWall 'context. Help - Displays the list of commands. Interface - Change to `Netsh 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 `Netsh Ras' context. Routing - Change to `Netsh Routing 'context. SET - Update Configuration Settings. Show - Display Information UNALIAS - Delete an alias.
The following sub-context available: Bridge Diag FireWall Interface Ras Ras Ras
If you need more help information for the command, type the command, followed by?
2. Remote Run Netsh Command
To run the netsh command on the remote Windows 2000 Server server, first connect to the Windows 2000 Server server running the Terminal Services using the Remote Desktop Connection, followed by using the Netsh command locally.
Backup / recovery
Server network settings
When you talk about network settings, you will think of an IP address, subnet mask, gateway, and DNS, etc. (these mainly interface IP configuration parameters). For ordinary computers, network settings are only interface IP configuration parameters; for the server, network settings include not only the interface IP configuration parameters mentioned earlier, and interface configuration, port proxy configuration, remote access configuration, routing configuration , DNS proxy configuration, NAT configuration, DHCP relay proxy configuration, etc. The above network setting parameters are different depending on the special effects of the server in the network. For example, the Campus Network is responsible for connecting the external network in the campus network, and connects multiple subnets in the school, then they must Set Remote Access Configuration, Route Configuration, DNS Agent Configuration, and NAT Configuration. 1. Backup server network settings
The most frequent job made by an experienced network administrator is backup. Only the backup is made, and the network can be quickly restored when you encounter devastating damage. Network Settings Backup Actions: Netsh Dump> Bak12.txt, you can back up your network settings into the Bak12.txt file through this operation, which is a text file.
After adjusting network settings, you should instantly backup.
2. Restore server network settings
When the network setting is adjusted, if an operation error occurs, or the server network has failed, you can use a backup quick recovery network settings. Operation method: NESH EXEC BAK12.TXT.
By backing the server network settings through the Netsh command, it is very simple and convenient, and it is quick and effective. No other software assist is required, it is very suitable for network managers to back up and restore management.