The following commands are specific to the routing context within the Netsh environment.

To view the command syntax, click a command:

Netsh commands for routing

The following entries provide details for each command.

dump

Displays the configuration of the remote access server in script form.

Syntax

dump

Remarks

  • You can dump the contents of the current configuration to a file that can be used to restore altered configuration settings.

Example

The following commands save the current configuration as a script in the c:\test\routingcfg.dmp file.

  • From the command prompt:

    netsh routing dump > c:\test\routingcfg.dmp

  • From the netsh routing context prompt:

    set file open c:\test\routingcfg.dmp

    dump

    set file close

You can use the netsh exec command to run the script created by the netsh dump command.

reset

Resets IPv4 and IPv6 routing to a clean state.

Syntax

reset