共用方式為


Netsh commands for Interface 6to4

Applies To: Windows Server 2008

This section contains the following commands:

  • add

  • delete

  • reset

  • set interface

  • set relay

  • set routing

  • set state

  • show interface

  • show relay

  • show routing

  • show state

Interface 6to4 commands

The following entries provide details for each command.

add

Adds an interface to the router. For full interfaces, a phone book entry with the same name must already exist on the system.

Syntax

add [name=] Name [[type=]full]

Parameters

  • name
    Required. Specifies the name of the interface to be added.
  • type
    Optional. Specifies that a demand dial interface is created when full is designated.

Examples

Following is an example of the add command that creates a demand-dial interface.

add name="Demand-Dial Interface" type=full

delete

Deletes an interface from the router.

Syntax

delete [ name= ] Name

Parameters

  • name
    Required. Specifies the name of the interface to be deleted.

Examples:

The following example command deletes a demand-dial interface at the router

delete name="Demand-Dial Interface"

reset

Deletes all of the interfaces that can be added through this context.

Syntax

reset

set interface

Sets 6to4 interface configuration information.

Syntax

set interface [ name= ] Name [ [ routing= ]( enabled | disabled | default )]

Parameters

  • name
    Required. Specifies the interface name.
  • routing
    Optional. Specifies whether to act as a router.

Examples

Following is an example of the set interface command.

set interface "Private" enabled

set relay

Sets 6to4 relay information.

Syntax

set relay [ [ name= ]( Name | default )] [ [ state= ] ( enabled | disabled | automatic | default ) ] [[ interval= ] Integer ]

Parameters

  • name
    Optional. Specifies the name of the 6to4 relay.
  • state
    Optional. Specifies whether relay name resolution is enabled or disabled.
  • interval
    Optional. Specifies an integer that is the resolution interval (in minutes).

Examples

Following is an example of the set relay command.

set relay 6to4.ipv6.org. enabled 1440

set routing

Sets 6to4 routing information.

Syntax

set routing [ [ routing= ]( enabled | disabled | automatic | default ) ] [ [ sitelocals= ] (enabled | disabled | default ) ]

Parameters

  • routing
    Optional. Specifies the state of 6to4 routing.
  • sitelocalsq
    Optional. Specifies whether to use Site-Local addresses.

Examples

Following are two examples of the set routing command.

set routing default default

set routing routing=enabled sitelocals=enabled

set state

Sets the 6to4 configuration state.

Syntax

set state [ [ state= ] ( enabled |disabled | automatic | default ) ] [ [ undoonstop= ] ( enabled | disabled | default ) ]

Parameters

  • state
    Optional. Specifies whether 6to4 is enabled.
  • undoonstop
    Optional. Specifies whether 6to4 is disabled on service stop.

Examples

Following are two examples of the set state command.

set state default default

set state state=enabled undoonstop=disabled

show interface

Displays the 6to4 interface configuration information.

Syntax

show interface

show relay

Displays the 6to4 relay information.

Syntax

show relay

show routing

Displays the 6to4 routing state.

Syntax

show routing

show state

Displays the 6to4 state.

Syntax

show state