Share via


Create a Static Route

Applies To: Windows 7, Windows Server 2008 R2

Creating a static route informs the router of a specified network, the address of the gateway that serves as the next hop, and the interface to use to forward packets sent to that network.

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To create an IPv4 static route

  1. In the RRAS MMC snap-in, expand IPv4, right-click Static Routes, and then click New Static Route.

  2. In the Interface list, select the interface that should be used to forward packets to the network for which you are creating the route.

  3. In Destination, type the Internet Protocol version 4 (IPv4) address of the network.

  4. In Network mask, type the network mask that corresponds to the network address.

  5. In Gateway, type the IPv4 address of the router that serves as the next hop for forwarded packets.

  6. In Metric, type the number that reflects the cost of using this route. Typically, this value is the number of routers between this server and the destination network. When RRAS must select between multiple valid routes, the route with the lowest metric is the one selected.

  7. Click OK to save your changes. The new route appears in Static Routes.

To create an IPv6 static route

  1. In the RRAS MMC snap-in, expand IPv6, right-click Static Routes, and then click New Static Route.

  2. In the Interface list, select the interface that should be used to forward packets to the network for which you are creating the route.

  3. In Destination, type the Internet Protocol version 6 (IPv6) network address of the network using a format similar to 21DA:D3:0:2F3B::.

  4. In Prefix length, type the number of bits in the destination address that represent the network address. This value is typically 64, but can also be a value less than 64 when creating a summarized route.

  5. In Gateway, type the IPv6 address of the router that serves as the next hop for forwarded packets.

  6. In Metric, type the number that reflects the cost of using this route. Typically, this value is the number of routers between this server and the destination network. When RRAS must select between multiple valid routes, the route with the lowest metric is the one selected.

  7. Click OK to save your changes. The new route appears in Static Routes.

Additional references