OcNOS SP : Multicast Guide : Protocol Independent Multicasting Configuration : PIM-BFD Configuration
PIM-BFD Configuration
PIM is a multicast routing protocol which uses Hello messages to detect adjacent node failure. This mechanism is very slow and leads to control plane overhead when interval between hello messages is set to minimum.
BFD is a protocol designed to detect link failures superfast, routing protocols such as OSPF, ISIS uses BFD to get link failure notification.
BFD detects the link failure immediately after the original DR fails and triggers new DR election. The BFD protocol uses control packets and shorter detection time limits to more rapidly detect failures in a network.
Topology
PIM-BFD Configuration Topology
PIM-BFD Configuration
This document captures requirements to use BFD with PIM IPv4 and IPv6 to detect adjacent neighbor reachability failure.
Note: IPv6 PIM is supported in Qumran2 series platforms.
R1
 
#configure terminal
Enter configuration mode.
OcNOS(config)#ip multicast-routing
Configure IP multicast routing
OcNOS(config)#ipv6 multicast-routing
Configure IPv6 multicast routing
OcNOS(config)#interface xe29
Entering in to interface
OcNOS(config-if)#ipv6 address 5001::1/64
Configure IPv6 address
OcNOS(config-if)#ip address 14.14.14.1/24
Configure IPv4 address
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPF to interface
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config)#interface ce0
Entering in to interface
OcNOS(config-if)#ipv6 address 2001::1/64
Configure IPv6 address
OcNOS(config-if)#ip address 12.12.12.1/24
Configure IP address
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPF to interface
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#interface xe4
Entering in to interface
OcNOS(config-if)#ipv6 address 3001::1/64
Configure IPv6 address
OcNOS(config-if)#ip address 13.13.13.1/24
Configure IP address
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)# ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPF to interface
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#router ospf 1
Configure IP OSPF
OcNOS(config-router)#ospf router-id 20.20.20.1
Configure router id under ospf
OcNOS(config-router)#network 12.12.12.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 13.13.13.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 14.14.14.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 20.20.20.1/32 area 0.0.0.0
Add network under OSPF
OcNOS(config)#router ipv6 ospf 1
Configure IPv6 OSPF
OcNOS(config-router)#router-id 1.1.1.1
Configure router ID under OSPF
OcNOS(config-router)#commit
Commit all the transactions
OcNOS(config)#exit
Exit
R2
 
#configure terminal
Enter configuration mode.
OcNOS(config)#bridge 1 protocol mstp
Configure bridge 1 protocol MSTP/IEEE VLAN bridge
OcNOS(config)#vlan database
Entering in to VLAN database
OcNOS(config-vlan)#vlan 120 bridge 1 state enable
Configure VLAN 120 with bridge 1 state enable
OcNOS(config-vlan)#ip multicast-routing
Configure IP multicast routing
OcNOS(config-vlan)#ipv6 multicast-routing
Configure IPv6 multicast routing
OcNOS(config)#interface vlan1.120
Entering VLAN interface
OcNOS(config-if)#ipv6 address 1001::2/64
Configure IPv6 address
OcNOS(config-if)#ip address 10.10.10.2/24
Configure IP address
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPFv6
OcNOS(config-if)#ipv6 pim bfd
Configure IPv6 PIM BFD
OcNOS(config-if)#ip pim bfd
Configure IP BFD
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#ipv6 pim bsr-candidate vlan1.120
Configure IPv6 PIM BSR candidate
OcNOS(config)#commit
Commit all the transactions
OcNOS(config)#interface ce11/1
Entering interface ce7/1
OcNOS(config-if)#switchport
Configure Switchport
OcNOS(config-if)#bridge-group 1
Configure bridge group1
OcNOS(config-if)#switchport mode access
Configure switchport mode access
OcNOS(config-if)#switchport access vlan 120
Configure switchport access mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#interface ce9/1
Entering interface ce9/1
OcNOS(config-if)#ipv6 address 2001::2/64
Configure IPv6 address
OcNOS(config-if)#ip address 12.12.12.2/24
Configure IP address
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPFv6 under interface
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#router ospf 1
Configure IP OSPF
OcNOS(config-router)#ospf router-id 20.20.20.2
Configure router ID under ospf
OcNOS(config-router)#network 10.10.10.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 12.12.12.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 20.20.20.2/32 area 0.0.0.0
Add network under OSPF
OcNOS(config)#router ipv6 ospf 1
Configure IPv6 OSPF
OcNOS(config-router)#router-id 2.2.2.2
Configure router ID under OSPF
OcNOS(config-router)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
R3
 
#configure terminal
Enter configuration mode.
OcNOS(config)#bridge 1 protocol mstp
Configure bridge 1 protocol MSTP/IEEE VLAN bridge
OcNOS(config)#vlan database
Entering in to VLAN database
OcNOS(config-vlan)#vlan 120 bridge 1 state enable
Configure VLAN 120 with bridge 1 state enable
OcNOS(config-vlan)#ip multicast-routing
Configure IP multicast routing
OcNOS(config-vlan)#ipv6 multicast-routing
Configure IPv6 multicast routing
OcNOS(config)#interface vlan1.120
Entering VLAN interface
OcNOS(config-if)#ipv6 address 1001::3/64
Configure IPv6 address
OcNOS(config-if)#ip address 10.10.10.2/24
Configure IP address
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPFv6
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ip pim bfd
Configure PIM BFD
OcNOS(config-if)#ipv6 pim bfd
Configure IPv6 PIM BFD
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#ipv6 pim bsr-candidate vlan1.120
Configure IPv6 PIM BSR candidate
OcNOS(config)#commit
Commit all the transactions
OcNOS(config)#interface xe7
Entering interface ce7/1
OcNOS(config-if)#switchport
Configure Switchport
OcNOS(config-if)#bridge-group 1
Configure bridge group1
OcNOS(config-if)#switchport mode access
Configure switchport mode access
OcNOS(config-if)#switchport access vlan 120
Configure switchport access mode
OcNOS(config-if)#commit
Commit all the transactions
OCNOS(config)#interface xe8
Entering interface
OCNOS(config-if)#ipv6 address 3001::2/64
Configure IPv6 address
OCNOS(config-if)#ip address 13.13.13.2/24
Configure IP address
OCNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPFv6 under interface
OCNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OCNOS(config-if)#ip pim sparse-mode
Configure IP PIM sparse mode
OCNOS(config-if)#commit
Commit all the transactions
OCNOS(config-if)#exit
Exit
OcNOS(config)#router ospf 1
Configure IP OSPF
OcNOS(config-router)#ospf router-id 20.20.20.3
Configure router id under OSPF
OcNOS(config-router)#network 10.10.10.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 13.13.13.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 20.20.20.3/32 area 0.0.0.0
Add network under OSPF
OcNOS(config)#router ipv6 ospf 1
Configure IPv6 OSPF
OcNOS(config-router)#router-id 3.3.3.3
Configure router id under OSPF
OcNOS(config-router)#commit
Commit all the transactions
OCNOS(config-if)#exit
Exit
SWITCH
 
#configure terminal
Enter configuration mode.
(config)#bridge 1 protocol mstp
Bridge config
OcNOS(config)#vlan database
Entering in to VLAN database
OcNOS(config-vlan)#vlan 120 bridge 1 state enable
Configure VLAN 120 with bridge 1 state enable
OcNOS(config-if)#interface ce49
Entering interface xe1
OcNOS(config-if)#switchport
Configure Switchport
OcNOS(config-if)#bridge-group 1
Configure bridge group1
OcNOS(config-if)#switchport mode access
Configure switchport mode access
OcNOS(config-if)#switchport access vlan 120
Configure switchport access mode
OcNOS (config-if)#exit
Exit interface mode.
OcNOS(config-if)#interface xe37
Entering interface xe1
OcNOS(config-if)#switchport
Configure Switchport
OcNOS(config-if)#bridge-group 1
Configure bridge group1
OcNOS(config-if)#switchport mode access
Configure switchport mode access
OcNOS(config-if)#switchport access vlan 120
Configure switchport access mode
OcNOS (config-if)#exit
Exit interface mode.
OcNOS(config-if)#interface xe47
Entering interface xe1
OcNOS(config-if)#switchport
Configure Switchport
OcNOS(config-if)#bridge-group 1
Configure bridge group1
OcNOS(config-if)#switchport mode access
Configure switchport mode access
OcNOS(config-if)#switchport access vlan 120
Configure switchport access mode
OcNOS (config-if)#exit
Exit interface mode.
OcNOS(config-if)#commit
Commit all the transactions
R4
 
#configure terminal
Enter configuration mode.
OcNOS(config)#ipv6 multicast-routing
Configure IPv6 multicast routing
OcNOS(config)#ip multicast-routing
Configure IP multicast routing
OcNOS(config)#interface xe18
Entering in to interface
OcNOS(config-if)#ipv6 address 6001::1/64
Configure IPv6 address
OcNOS(config-if)#ip address 16.16.16.1/24
Configure IP address
OcNOS(config-if)#ipv6 mld version 2
Configure MLD version 2
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPF to interface
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config)#interface xe5
Entering in to interface
OcNOS(config-if)#ipv6 address 1001::1/64
Configure IPv6 address
OcNOS(config-if)#ip address 10.10.10.1/24
Configure IP address
OcNOS(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0
Configure OSPF to interface
OcNOS(config-if)#ip pim sparse-mode
Configure PIM sparse mode
OcNOS(config-if)#ipv6 pim sparse-mode
Configure IPv6 PIM sparse mode
OcNOS(config-if)#ip pim bfd
Configure IP PIM BFD
OcNOS(config-if)#ipv6 pim bfd
Configure IPv6 PIM BFD
OcNOS(config-if)#commit
Commit all the transactions
OcNOS(config-if)#exit
Exit
OcNOS(config)#router ospf 1
Configure IP OSPF
OcNOS(config-router)#ospf router-id 20.20.20.4
Configure router id under OSPF
OcNOS(config-router)#network 10.10.10.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 16.16.16.0/24 area 0.0.0.0
Add network under OSPF
OcNOS(config-router)#network 20.20.20.4/32 area 0.0.0.0
Add network under OSPF
OcNOS(config)#router ipv6 ospf 1
Configure IPv6 OSPF
OcNOS(config-router)#router-id 5.5.5.5
Configure router id under OSPF
OcNOS(config-router)#commit
Commit all the transactions
OcNOS(config)#exit
Exit
Validation
R1
#show ipv6 pim neighbor
 
Total number of PIM neighbors:2
 
Neighbor Address Interface Uptime/Expires DR
Pri/Mode
fe80::36ef:b6ff:fe94:3df5 ce0 00:00:38/00:01:24 1 /
fe80::e201:a6ff:fe4b:f30a xe4 00:00:41/00:01:30 1 /
 
#show ip pim neighbor
 
Total number of PIM neighbors:2
 
Neighbor Interface Uptime/Expires Ver DR
Address Priority/Mode
12.12.12.2 ce0 00:11:17/00:01:28 v2 1 / DR
13.13.13.2 xe4 00:11:19/00:01:27 v2 1 / DR
R2
#show ipv6 pim neighbor
 
Total number of PIM neighbors:3
 
Neighbor Address Interface Uptime/Expires DR
Pri/Mode
fe80::eac5:7aff:feb1:6b11 ce9/1 00:12:51/00:01:24 1 / DR
fe80::e201:a6ff:fe4b:f301 vlan1.120 00:02:28/00:01:17 1 /
fe80::eac5:7aff:fe78:a2cc vlan1.120 00:02:28/00:01:29 1 / DR
 
#show ip pim neighbor
 
Total number of PIM neighbors:3
 
Neighbor Interface Uptime/Expires Ver DR
Address Priority/Mode
12.12.12.1 ce9/1 00:09:15/00:01:32 v2 1 /
10.10.10.1 vlan1.120 00:09:44/00:01:31 v2 1 /
10.10.10.3 vlan1.120 00:10:56/00:01:20 v2 1 / DR
 
#show bfd session
 
BFD process for VRF: (DEFAULT VRF)
=====================================================================================
Sess-Idx Remote-Disc Lower-Layer Sess-Type Sess-State UP-Time Interface Down-Reason Remote-Addr
258 NA IPv6 Micro-BFD Up 00:34:25 vlan1.120 NA fe80::eac5:7aff:fea8:7cb9/128
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop ce11/1 2 2056 Up
 
259 NA IPv4 Micro-BFD Up 00:23:03 vlan1.120 NA 10.10.10.1/32
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop ce11/1 3 4 Up
 
257 NA IPv4 Micro-BFD Up 00:00:16 vlan1.120 NA 10.10.10.3/32
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop ce11/1 1 4 Up
 
260 NA IPv6 Micro-BFD Up 00:00:09 vlan1.120 NA fe80::e201:a6ff:fe4b:f301/128
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop ce11/1 4 2052 Up
 
 
Number of Sessions: 4
R3
#show ipv6 pim neighbor
 
Total number of PIM neighbors:3
 
Neighbor Address Interface Uptime/Expires DR
Pri/Mode
fe80::eac5:7aff:feb1:6b15 xe8 00:02:55/00:01:22 1 / DR
fe80::36ef:b6ff:fe94:3db4 vlan1.120 00:04:50/00:01:37 1 /
fe80::eac5:7aff:fea8:7cb9 vlan1.120 00:04:51/00:01:27 1 / DR
 
#show bfd session
 
BFD process for VRF: (DEFAULT VRF)
=====================================================================================
Sess-Idx Remote-Disc Lower-Layer Sess-Type Sess-State UP-Time Interface Down-Reason Remote-Addr
4100 NA IPv4 Micro-BFD Up 00:00:08 vlan1.120 NA 10.10.10.2/32
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop 4 1 Up
 
4104 NA IPv4 Micro-BFD Up 00:00:08 vlan1.120 NA 10.10.10.1/32
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop 8 8 Up
 
4108 NA IPv6 Micro-BFD Up 00:00:07 vlan1.120 NA fe80::36ef:b6ff:fe94:3db4/128
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop 2052 4 Up
 
4112 NA IPv6 Micro-BFD Up 00:00:07 vlan1.120 NA fe80::eac5:7aff:fea8:7cb9/128
HW SESS: TYPE INTERFACE LOC_DISC REM_DISC LOCAL_STATE
=============================================================
Single Hop 2056 2052 Up
 
 
Number of Sessions: 4
R4
#show ipv6 pim neighbor
 
Total number of PIM neighbors:2
 
Neighbor Address Interface Uptime/Expires DR
Pri/Mode
fe80::36ef:b6ff:fe94:3db4 xe5 00:11:48/00:01:37 1 /
fe80::e201:a6ff:fe4b:f301 xe5 00:08:51/00:01:24 1 /
 
#show ip pim neighbor
 
Total number of PIM neighbors:2
 
Neighbor Interface Uptime/Expires Ver DR
Address Priority/Mode
10.10.10.2 xe5 00:09:03/00:01:25 v2 1 /
10.10.10.3 xe5 00:09:07/00:01:27 v2 1 / DR
 
#show bfd session
 
BFD process for VRF: (DEFAULT VRF)
=====================================================================================
Sess-Idx Remote-Disc Lower-Layer Sess-Type Sess-State UP-Time Interface Down-Reason Remote-Addr
2056 2 IPv6 Single-Hop Up 00:33:25 xe5 NA fe80::36ef:b6ff:fe94:3db4/128
4 3 IPv4 Single-Hop Up 00:22:04 xe5 NA 10.10.10.2/32
 
Number of Sessions: 2
 
#show ipv6 mld groups detail
MLD Connected Group Membership Details
 
Flags: (M - SSM Mapping, R - Remote,
SG - Static Group, SS - Static Source)
Interface: xe15
Group: ff06::2
Flags: R
Uptime: 00:01:18
Group mode: Include ()
State: Active
Last reporter: fe80::1
Group source list: (R - Remote, M - SSM Mapping, S - Static )
 
Include Source List :
Source Address Uptime v2 Exp Fwd Flags
5001::2 00:01:18 00:04:17 Yes R
 
#show ip igmp groups detail
IGMP Instance wide G-Recs Count is: 1
IGMP Connected Group Membership Details
 
Flags: (M - SSM Mapping, R - Remote, L - Local,
SG - Static Group, SS - Static Source)
Interface: xe15
Group: 231.1.1.1
Flags: R
Uptime: 00:01:24
Group mode: Include ()
State: Active
Last reporter: 16.16.16.2
Group source list: (R - Remote, M - SSM Mapping, S - Static, L - Local)
 
Include Source List :
Source Address Uptime v3 Exp Fwd Flags
14.14.14.2 00:01:24 00:04:07 Yes R
After Shutdown
#show bfd session
 
BFD process for VRF: (DEFAULT VRF)
=====================================================================================
Sess-Idx Remote-Disc Lower-Layer Sess-Type Sess-State UP-Time Interface Down-Reason Remote-Addr
 
Number of Sessions: 0