Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure OSPFv3 Route Generation

Configuration Condition

Before configuring OSPFv3 route generation, ensure that:

  • The IPv6 forwarding function is enabled.
  • The OSPFv3 protocol is enabled.

Configure OSPFv3 Route Re-distribution

If multiple routing protocols run on one device, routes of other protocols can be introduced to OSPF through redistribution. By default, class-2 external routes of OSPFv3 are generated with the route metric 20. When you introduces external routes through redistribution, you can modify the external route type, metric, and tag field, and associate the specified routing policy to perform route control and management.

Table 8-12 Configure OSPFv3 route re-distribution

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enter the OSPFv3 configuration mode.

ipv6 router ospf process-id [vrf vrf-name ]

-

Configure OSPFv3 route re-distribution

redistribute routing-protocol [ protocol-id-or-name ] [ metric metric-value / metric-type type-value / tag tag-value / route-map map-name / match route-type ]

Mandatory
By default, OSPFv3 is not configured with the route re-distribution.

Configure the metric of the OSPFv3 external route. default-metric metric-value Optional

note


  • If the metric value of external routes are configured by using both the redistribute protocol [ protocol-id ] metric command and the default-metric command, the value that is configured by using the former command has a higher priority.

Configure OSPFv3 Default Route

After an OSPFv3 Stub area or a totally NSSA areas is configured, a Type-3 default route is generated. For an NSSA area, no default route is automatically generated. You can use the area area-id nssa default-information-originate command to introduce a Type-7 default route to the NSSA area.

OSPFv3 cannot use the redistribute command to introduce a Type-5 default route. To do this, use the default-information originate [ always ] command.

Table 8-13 Configure the default OSPFv3 route

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enter the OSPFv3 configuration mode.

ipv6 router ospf process-id [vrf vrf-name ]

-

Configure OSPFv3 to introduce a default route.

default-information originate [ always / metric metric-value / metric-type metric-type / route-map route-map-name ]

Mandatory.

By default, no external default route is introduced to an OSPFv3 AS.

The default metric of the introduced default route is 1, and the type is external type 2.

The field always means to force the OSPFv3 AS to generate a default route; otherwise, the default route is generated only when there is a default route in the local routing table.