Add an IPv6 route

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To add an IPv6 route

  1. Open Command Prompt.

  2. At the command prompt, type netsh, and then press ENTER.

  3. Type interface ipv6, and then press ENTER.

  4. Type add route [prefix=]IPv6Address**/**Integer [[interface=]String] [[nexthop=]IPv6Address] [[siteprefixlength=]Integer] [[metric=]Integer] [[publish=]{no | yes | immortal}] [[validlifetime=]{Integer | infinite}] [[preferredlifetime=]{Integer | infinite}] [[store=]{active | persistent}]

Where:

  • [ prefix=] IPv6Address/Integer
    Required. Specifies the prefix for which to add a route. Integer specifies the prefix length.
  • [[ interface=] String]
    Specifies an interface name or index.
  • [[ nexthop=] IPv6Address]
    Specifies the gateway address, if the prefix is not on-link.
  • [[ siteprefixlength=] Integer]
    Specifies the prefix length for the entire site, if the prefix is not on-link.
  • [[ metric=] Integer]
    Specifies the route metric.
  • [[ publish=]{ no| yes| immortal}]
    Specifies whether routes are advertised (yes), advertised with an infinite lifetime (immortal), or not advertised (no) in Route Advertisements. The default selection is no.
  • [[ validlifetime=]{ Integer| infinite}]
    Specifies the lifetime over which the route is valid. The default value is infinite.
  • [[ preferredlifetime=]{ Integer| infinite}]
    Specifies the lifetime over which the route is preferred. The default value is infinite.
  • [[ store=]{ active| persistent}]
    Specifies whether the change lasts only until the next boot (active) or is persistent (persistent). The default selection is persistent.

Note

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

IPv6 routing
IPv6 utilities
The IPv6 routing table
Remove an IPv6 route
Enable IPv6 forwarding
View the IPv6 routing table
Netsh commands for Interface IPv6