OSPFv3 Configuration Guide

We will demonstrate a sample OSPFv3 configuration in this guide. The topology consists of two switches, Switch1 and Switch2.

Both OSPF version 2 and 3 can be configured primarily using two different methods. Either we directly specify the interfaces and enable OSPFv3 on them or we enable OSPFv3 on a network prefix. If we use a network prefix to enable OSPF then all the interfaces who share the same network prefix become part of the OSPF network and OSPFv3 tries to create adjacencies with peers on these interfaces. These interfaces are advertised to peers using Type-1 Router LSAs. In this example we will use interface names to enable OSPFv3.

Figure 1. below depicts our basic OSPFv3 sample topology.

                                                Figure 1. OSPFv3 Sample Configuration

Switch Configuration

Below is the switch configuration for the two switches, Switch1 and Switch2.

Switch1 Configuration

Interface ge-1/1/1 connects with Switch1. Interface ge-1/1/2 and ge-1/1/3 connects with hosts. The host-connecting interfaces will be put in passive mode. Which means that these interfaces will be advertised to Switch2 but OSPFv3 will not attempt to form any adjacencies on these two interfaces.

admin@Switch1# set vlans vlan-id 10
admin@Switch1# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@Switch1# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20
admin@Switch1# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30
admin@Switch1# set vlans vlan-id 10 l3-interface vlan10
admin@Switch1# set l3-interface loopback lo address 2001:dd8::a0c:0a54 prefix-length 128
admin@Switch1# set l3-interface vlan-interface vlan10 address 2001:dc9::c00:001 prefix-length 127
admin@Switch1# set l3-interface vlan-interface vlan20 address 2001:dc9::c00:100 prefix-length 64
admin@Switch1# set l3-interface vlan-interface vlan30 address 2002:dc9::c00:100 prefix-length 64
admin@Switch1# set protocols ospf6 router-id 1.1.1.1
admin@Switch1# set protocols ospf6 interface lo area 0.0.0.0
admin@Switch1# set protocols ospf6 interface vlan10 area 0.0.0.0
admin@Switch1# set protocols ospf6 interface vlan20 area 0.0.0.0
admin@Switch1# set protocols ospf6 interface vlan30 area 0.0.0.0
admin@Switch1# set protocols ospf6 interface vlan20 passive
admin@Switch1# set protocols ospf6 interface vlan30 passive
admin@Switch1# set protocols ospf6 interface vlan10 network point-to-point
admin@Switch1# commit

Switch2 Configuration

The Switch2 configuration is almost identical to Switch1, the host-connecting interfaces are put in passive mode.

admin@Switch2# set vlans vlan-id 10
admin@Switch2# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching native-vlan-id 10
admin@Switch2# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 20
admin@Switch2# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 30
admin@Switch2# set vlans vlan-id 10 l3-interface vlan10
admin@Switch2# set l3-interface loopback lo address 2001:dd8::a0c:0a50 prefix-length 128
admin@Switch2# set l3-interface vlan-interface vlan10 address 2001:dc9::c00:002 prefix-length 127
admin@Switch2# set l3-interface vlan-interface vlan20 address 2003:dc9::c00:100 prefix-length 64
admin@Switch2# set l3-interface vlan-interface vlan30 address 2004:dc9::c00:100 prefix-length 64
admin@Switch2# set protocols ospf6 router-id 2.2.2.2
admin@Switch2# set protocols ospf6 interface lo area 0.0.0.0
admin@Switch2# set protocols ospf6 interface vlan10 area 0.0.0.0
admin@Switch2# set protocols ospf6 interface vlan20 area 0.0.0.0
admin@Switch2# set protocols ospf6 interface vlan30 area 0.0.0.0
admin@Switch2# set protocols ospf6 interface vlan20 passive
admin@Switch2# set protocols ospf6 interface vlan30 passive
admin@Switch2# set protocols ospf6 interface vlan10 network point-to-point
admin@Switch2# commit

Optional OSPFv3 Parameters


Hello Interval

To set the OSPFv3 interface hello interval to 5 seconds, run the following set command.

admin@Switch1# set protocols ospf6 interface vlan10 hello-interval 5
admin@Switch1# commit

Dead Interval

To set the OSPFv3 interface dead interval to 10 seconds, run the following set command.

admin@Switch1# set protocols ospf6 interface vlan10 dead-interval 10
admin@Switch1# commit

Priority 

To set the OSPFv3 interface priority value to 5, run the below set command.

admin@Switch1# set protocols ospf6 interface vlan10 priority 5
admin@Switch1# commit

SPF Timers

To set the SPF initial delay to 1000ms, run the command below.

admin@Switch1# set protocols ospf6 timers throttle spf delay 1000
admin@Switch1# commit

To set the SPF initial hold-time to 2000ms, run the command below.

admin@Switch1# set protocols ospf6 timers throttle spf initial-holdtime 2000
admin@Switch1# commit

To set the SPF maximum hold-time to 10000ms, run the command below.

admin@Switch1# set protocols ospf6 timers throttle spf maximum-holdtime 10000
admin@Switch1# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.