Curriculum
Course: CCNP ENARSI Labs
Login

Curriculum

CCNP ENARSI Labs

Text lesson

7.4 Configure OSPFv3 for AF IPv4 and AF IPv6

  OSPFv3 with the address family (AF) unifies OSPF configuration for both IPv4 and IPv6. Each OSPFv3 AF is a single process, so you may have two processes per interface, but only one process per AF. OSPFv3 messages are sent over IPv6 which requires that IPv6 routing is enabled and that the interface has a link-local IPv6 address. This is the requirement even if only the IPv4 AF is configured.

In this section you will configure OSPFv3 with AF for the IPv4 and IPv6 address families on R1, R2, R3, D1 and D2.

Step 1: Configure OSPFv3 with AF on R1.

a. After enabling IPv6 unicast routing, configure OSPFv3 with AF on R1 using the router ospfv3 pid command. Use the ? to see the address families available.

Open configuration window

R1(config)# ipv6 unicast-routing

R1(config)# router ospfv3 123

R1(config-router)# address-family ?

  ipv4  Address family

  ipv6  Address family

 

b. Next, specify the AF for IPv4 and use the ? to see the available options.

R1(config-router)# address-family ipv4 ?

  unicast  Address Family modifier

  vrf      Specify parameters for a VPN Routing/Forwarding instance

  <cr>

 

c. Enter the AF for IPv4 unicast using the command address-family ipv4 unicast. Use the ? to examine the options in AF configuration mode. Some of the more common configuration commands are highlighted. Use the router-id command to configure the router ID for the IPv4 AF.

R1(config-router)# address-family ipv4 unicast

R1(config-router-af)# ?

Router Address Family configuration commands:

  adjacency                          Control adjacency formation

  area                                   OSPF area parameters

  authentication                   Authentication parameters

  auto-cost                           Calculate OSPF interface cost according to bandwidth

  auto-cost-determination   Calculate OSPF interface cost according to bandwidth

  bfd                                     BFD configuration commands

  compatible                        Compatibility list

  default                               Set a command to its defaults

  default-information           Control distribution of default information

  default-metric                    Set metric of redistributed routes

  discard-route                      Enable or disable discard-route installation

  distance                              Define an administrative distance

  distribute-list                      Filter networks in routing updates

  event-log                            Event Logging

  exit-address-family             Exit from Address Family configuration mode

  graceful-restart                   Graceful-restart options

  help                                     Description of the interactive help system

  ignore                                  Do not complain about specific event

  interface-id                          Source of the interface ID

  limit                                      Limit a specific OSPF feature

  local-rib-criteria                   Enable or disable usage of local RIB as route criteria

  log-adjacency-changes       Log changes in adjacency state

  manet                                  Specify MANET OSPF parameters

  max-lsa                                Maximum number of non self-generated LSAs to accept

  max-metric                          Set maximum metric

  maximum-paths                  Forward packets over multiple paths

  mpls                                    MPLS Traffic Engineering configs

  no                                        Negate a command or set its defaults

  passive-interface                 Suppress routing updates on an interface

  prefix-suppression               Enable prefix suppression

  process-min-time                Percentage of quantum to be used before releasing CPU

  queue-depth                        Hello/Router process queue depth

  redistribute                           Redistribute information from another routing protocol

  router-id                               router-id for this OSPF process

  shutdown                             Shutdown the router process

  snmp                                    Modify snmp parameters

  statistics                                Enable or disable OSPF statistics options

  summary-address                 Configure IP address summaries

  summary-prefix                    Configure IP address summaries

  timers                                    Adjust routing timers

R1(config-router-af)#

R1(config-router-af)# router-id 1.1.1.1

 

d. Exit the IPv4 AF configuration mode and enter the AF IPv6 configuration mode. The exit-address-family (or a shorter version of exit) command is used exit address family configuration mode. Issue the address-family ipv6 unicast command to enter the IPv6 AF. For the IPv6 AF, use the router-id command to configure the router ID. It isn’t necessary to configure a different router ID for IPv6 AF but it is a valid option. The exit command is used to return to global configuration mode.

R1(config-router-af)# exit-address-family

R1(config-router)# address-family ipv6 unicast

R1(config-router-af)# router-id 1.1.1.1

R1(config-router-af)# exit-address-family

R1(config-router)# exit

 

e. OSPFv3 is enabled directly on the interfaces for both IPv4 and IPv6 AFs using the ospfv3 pid [ ipv4 | ipv6 ] area area-id interface command. Use this command to enable OSPFv3 on both of R1’s interfaces.

R1(config)# interface g0/0

R1(config-if)# ospfv3 123 ipv4 area 0

R1(config-if)# ospfv3 123 ipv6 area 0

R1(config-if)# exit

R1(config)# interface g0/1

R1(config-if)# ospfv3 123 ipv4 area 1

R1(config-if)# ospfv3 123 ipv6 area 1

Close configuration window

Step 2: Configure OSPFv3 with AF IPv4 and AF IPv6 on R2.

Enable IPv6 unicast routing and configure the OSPFv3 with AF for both IPv4 and IPv6 on R2, similar to the configuration for R1.

R2(config)# ipv6 unicast-routing

 

R2(config)# router ospfv3 123

R2(config-router)# address-family ipv4 unicast

R2(config-router-af)# router-id 2.2.2.1

R2(config-router-af)# exit-address-family

R2(config-router)# address-family ipv6 unicast

R2(config-router-af)# router-id 2.2.2.1

R2(config-router-af)# exit-address-family

R2(config-router)# exit

 

R2(config)# interface g0/0

R2(config-if)# ospfv3 123 ipv4 area 0

R2(config-if)# ospfv3 123 ipv6 area 0

R2(config-if)# exit

R2(config)# interface g0/1

R2(config-if)# ospfv3 123 ipv4 area 0

R2(config-if)# ospfv3 123 ipv6 area 0

 

Step 3: Configure OSPFv3 with IPv4 AF and IPv6 AF on R3.

Enable IPv6 unicast routing and configure the OSPFv3 with AF for both IPv4 and IPv6 on R3, similar to the configurations for R1 and R2. On R3, set the router ID for both IPv4 AF and IPv6 AF with a single command as shown.

R3(config)# ipv6 unicast-routing

 

R3(config)# router ospfv3 123

R3(config-router)# router-id 3.3.3.1

R3(config-router)# address-family ipv4 unicast

R3(config-router-af)# exit-address-family

R3(config-router)# address-family ipv6 unicast

R3(config-router-af)# exit-address-family

R3(config-router)# exit

 

R3(config)# interface g0/1

R3(config-if)# ospfv3 123 ipv4 area 0

R3(config-if)# ospfv3 123 ipv6 area 0

R3(config-if)# exit

R3(config)# interface g0/2

R3(config-if)# ospfv3 123 ipv4 area 2

R3(config-if)# ospfv3 123 ipv6 area 2

 

Step 4: Configure OSPFv3 with AF on D2.

a.     Enter the following command to enable routing for IPv4. (This may not be required on depending on model and IOS.)

D2(config)# ip routing

 

b.     Enter the following command to enable routing for IPv6. (This may not be required on depending on model and IOS.)

D2(config)# ipv6 unicast-routing

 

Note: By default, the 3650 supports IPv6 interface configuration.

c.     Configure the OSPFv3 with AF for both IPv4 and IPv6 on D2, similar to the configurations for R1, R2 and R3.

D2(config)# router ospfv3 123

D2(config-router)# address-family ipv4 unicast

D2(config-router-af)# router-id 3.3.3.2

D2(config-router-af)# exit-address-family

D2(config-router)# address-family ipv6 unicast

D2(config-router-af)# router-id 3.3.3.2

D2(config-router-af)# exit-address-family

D2(config-router)# exit

 

D2(config)# interface g0/1

D2(config-if)# ospfv3 123 ipv4 area 2

D2(config-if)# ospfv3 123 ipv6 area 2

D2(config-if)# exit

D2(config)# interface g 0/3

D2(config-if)# ospfv3 123 ipv4 area 2

D2(config-if)# ospfv3 123 ipv6 area 2