Netsh RAS IPv6 Context Commands

Applies To: Windows Server 2008, Windows Server 2008 R2

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

  • dump

Netsh commands for ras IPv6 in Windows Server 2008

Netsh commands for RAS IPv6 in Windows Server 2008 R2

Note

All of the commands for Windows Server 2008 continue to apply to RRAS servers running Windows Server 2008 R2. This section documents new commands for Windows Server 2008 R2 that are not valid on earlier versions of Windows.

Netsh commands for ras IPv6 in Windows Server 2008

Set commands

  • set access

  • set negotiation

  • set prefix

Show commands

  • show config

The following entries provide details for each command.

dump

Displays the IPv6 configuration of a 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\rasipv6cfg.dmp file.

  • From the command prompt:

    netsh ras ipv6 dump > c:\test\rasipv6cfg.dmp

  • From the netsh ras ipv6 context prompt:

    set file open c:\test\rasipv6cfg.dmp

    dump

    set file close

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

set access

Specifies whether IPv6 network traffic from any client are forwarded to the network or networks to which the remote access server is connected.

Syntax

set access

[ mode = ] { all | serveronly }

Parameters

  • [ **mode = ] { all | serveronly }**
    Required. Specifies whether clients are able to reach the remote access server and any networks to which it is connected. The all parameter allows clients to reach networks through the server. The serveronly parameter allows clients to reach only the server and any share folders that it makes available.

set negotiation

Specifies whether the remote access server should allow IPv6 to be used by client connections that the server accepts.

Syntax

set negotiation

[ mode = ] { allow | deny }

Parameters

  • [ **mode = ] { allow | deny }**
    Required. Specifies whether to permit IPv6 over client connections. The allow parameter allows IPv6 over client connections. The deny parameter prevents IPv6 over client connections.

set prefix

Sets the static IPv6 prefix that the remote access server advertises to clients.

Syntax

set prefix

[ prefix = ] IPv6Prefix

Parameters

  • [ **prefix = ] IPv6Prefix**
    Required. Specifies the IPv6 prefix in the form: 'xx:'

Example

The following sets the IPv6 prefix to 3ffe:ffff🅰️1.

set prefix prefix=3ffe:ffff🅰️1::

show config

Displays the current IPv6 configuration of the remote access server.

Syntax

show config

Netsh commands for RAS IPv6 in Windows Server 2008 R2

The commands in this section are new to RRAS in Windows Server 2008 R2, and are not available in previous versions of Windows.

Set commands

  • set routeradvertise

set routeradvertise

Specifies that the RRAS server is to advertise itself as a router on its attached networks.

Syntax

set routeradvertise

[ mode = ] { enable | disable }

Parameters

  • [ **mode = ] { enable | disable }**
    Required. Specifies whether the router advertises itself as one on the locally attached networks.

Remarks

  • To advertise as a router, the computer must have a default route (::/0) that is configured to be published.

Example

The following sets the router to advertise to its local connected networks..

set routeradvertise mode=enable