OSPFv3 Configuration Example

This section shows an example of OSPFv3 configuration. The following figure shows the network.

Click to expand in new window
OSPFv3 configuration

To complete the configuration, you must perform the following actions:

Configure VLAN 2 and add port members.

vlan create 2 type port-mstprstp 0
vlan mlt 2 4
vlan members 2 1/1 portmember
interface vlan 2
ipv6 interface
ipv6 interface enable
ipv6 interface address 2001:100:102:202:0:0:0:1/64
exit

Enable OSPFv3 on VLAN 2.

# IPV6 OSPF VLAN CONFIGURATION
interface vlan 2
ipv6 ospf area 0.0.0.0
ipv6 ospf poll-interval 0
ipv6 ospf enable
exit

Create brouter port 1/2 with IPv6 and OSPFv3.

interface gigabitethernet 1/2
ipv6 interface vlan 3999
ipv6 interface enable
ipv6 interface address 2001:100:102:201:0:0:0:1/64
ipv6 ospf area 0.0.0.0
ipv6 ospf enable
exit

Verification

The following example shows the Global Router example for OSPFv3 Area configuration:

Switch:1#show ipv6 ospf area

================================================================================
                           OSPF Area - GlobalRouter
================================================================================
AREA_ID         STUB_AREA  NSSA  IMPORT_SUM TRANS_ROLE TRANS_STATE
--------------------------------------------------------------------------------
0.0.0.0         false      false true       always     disabled
STUB_METRIC STUB_METRIC_TYPE SPF_RUNS BDR_RTR_CNT ASBDR_RTR_CNT LSA_CNT LSACK_SUM
--------------------------------------------------------------------------------
10          ospfV3Metric     0        0           0             0       0

The following example shows the VRF example for OSPFv3 Area configuration:

Switch:1#show ipv6 ospf area vrf vrf1

================================================================================
                           OSPF Area - VRF vrf1
================================================================================
AREA_ID         STUB_AREA  NSSA  IMPORT_SUM TRANS_ROLE TRANS_STATE
--------------------------------------------------------------------------------
0.0.0.0         false      false    true    candidate  disabled 
1.1.1.1         false      false true       candidate  disabled  
STUB_METRIC STUB_METRIC_TYPE SPF_RUNS BDR_RTR_CNT ASBDR_RTR_CNT LSA_CNT LSACK_SUM
--------------------------------------------------------------------------------
10          ospfV3Metric     3          0           0             0       0        
10          ospfV3Metric     3          0           1             0       0  
  
Switch:1#show ipv6 interface vlan 2

================================================================================
                      Vlan Ipv6 Interface
================================================================================

IF   VLAN PHYSICAL ADMIN OPER TYPE MTU HOP REACH RETRAN MCAST  IPSEC RPC RPC
INDX                                       ABLE  SMIT                    MODE
INDX      ADDRESS  STATE STATE         LMT TIME  TIME   STATUS 
                                                               
--------------------------------------------------------------------------------
2070 2 00:24:7f: enable up  ETHER 1500 64  30000 1000   disable disable  exist
       al:7a:06                                                          only
================================================================================
                               Vlan Ipv6 Address
================================================================================
IPV6 ADDRESS                            VLAN-ID      TYPE    ORIGIN    STATUS
--------------------------------------------------------------------------------
2001:100:102:202:0:0:0:1                V-2         UNICAST MANUAL    PREFERRED
fe80:0:0:0:224:7fff:fea1:7a06           V-2         UNICAST LINKLAYER PREFERRED

1 out of 2 Total Num of Interface Entries displayed.
2 out of 5 Total Num of Address Entries displayed.