Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
51
Добавлен:
11.04.2015
Размер:
22.9 Mб
Скачать

Chapter 10 IPv6 Routing

253

The Current Hop Limit field in the Router Advertisement message. IPv6 sets the Current Hop Limit field to 0, which indicates to the receiving hosts that the router is not specifying a value for the default hop limit.

The command to add a published route with all of its options is the following:

netsh interface ipv6 add route [prefix=]IPv6Prefix/PrefixLength [interface=]InterfaceNameOrIndex [[nexthop=]IPv6Address] [[siteprefixlength=]Integer] [[publish=]no|yes|immortal] [[validlifetime=]Integer|infinite] [[preferredlifetime=]Integer|infinite] [[store=]active|persistent]

Table 10-4 lists the command option, its default value or behavior, and a description.

Table 10-4 The netsh interface ipv6 add route Command Options for Advertised Routes

Option

Default Value or Behavior

Description

nexthop

None

Specifies the next-hop address for the

 

 

route.

siteprefixlength

Not included in the Prefix

 

Information option

Specifies the prefix length of the entire site for the advertised route, and sets the value of the Site Prefix Length field in the Prefix Information option.

Publish

No

Specifies whether the route will be

 

 

included in Prefix Information or Route

 

 

Information options in Router Advertise-

 

 

ment messages. For theimmortaloption,

 

 

the route is advertised with maximum

 

 

valid and preferred lifetimes.

 

 

 

validlifetime

Maximum of 0xFFFFFFFF

Specifies the value of the Valid Lifetime

 

 

field in the Prefix Information option.

 

 

 

preferredlifetime

Maximum of 0xFFFFFFFF

Specifies the value of the Preferred Life-

 

 

time field in the Prefix Information option.

 

 

 

Store

Persistent

Specifies whether to store the

 

 

configuration change so that it will be in

 

 

effect when the computer is restarted.

 

 

 

Configuring Static Routing with Routing and Remote Access

On a computer running Windows Server 2008, you can enable IPv6 routing and configure static IPv6 routes with the Routing and Remote Access snap-in.

To enable IPv6 routing, do the following:

1.In the console tree of the Routing and Remote Access snap-in, right-click the server name and then click Properties.

2.On the General tab, click IPv6 Router and then select either Local Area Network (LAN) Routing Only or LAN And Demand-Dial Routing.

3.Click OK.

254 Understanding IPv6, Second Edition

To add a static IPv6 route, do the following:

1.In the console tree of the Routing and Remote Access snap-in, open IPv6.

2.Right-click Static Routes, and then click New Static Route.

3.In the IPv6 Static Route dialog box, select the interface and type the destination, prefix length, gateway (the next-hop IPv6 address), and metric for the static route. For demand-dial interfaces, you can also select the Use This Route To Initiate Demand-Dial Connections check box to initiate a demand-dial connection for traffic that matches the route. The following figure shows an example of the IPv6 Static Route dialog box:

4.Click OK.

5.Repeat steps 2–4 for additional IPv6 static routes.

To modify an existing IPv6 static route in Routing and Remote Access, right-click the route in the details pane and then click Properties. To delete an existing IPv6 static route in Routing and Remote Access, right-click the route in the details pane and then click Delete.

Dead Gateway Detection

The TCP component of TCP/IP in Windows Server 2008 and Windows Vista uses dead gateway detection to detect the failure of the default router and to adjust the IPv6 routing table to use the next default router when there are multiple default routers configured. Dead gateway detection takes two forms:

By using Neighbor Unreachability Detection, the IPv6 host can determine that the neighboring default router is no longer reachable. If Neighbor Unreachability Detection determines that the next default router in the list is unreachable, dead gateway detection attempts to use the next default router in the list, returning to the first default router after cycling through the entire list.

Соседние файлы в папке Lecture 2_10