To disable BFD on some interfaces, you need to prevent these interfaces from dynamically establishing BFD sessions.
After the bfd all-interfaces enable command is used in an OSPFv3 process, the following situations occur:
On a P2P network, all OSPFv3 interfaces whose neighbor status is Up set up dynamic BFD sessions.
On a broadcast network, all OSPFv3 interfaces whose neighbor status is Up set up dynamic sessions between Designated Intermediate Systems (DISs) and non-DISs.
To prevent certain interfaces from setting up dynamic BFD sessions, perform the following steps on the interfaces:
The system view is displayed.
The interface view is displayed.
The interface is prevented from dynamically setting up BFD sessions.
The configuration is committed.