.. _example_protocols_bgp_neighbor_bfdmark: ######## Bfd Mark ######## Scenario to verify BFD mark (SO_MARK) functionality with BGP. BFD profile mark allows marking BFD packets at the socket level for policy routing in scenarios with VRFs and multiple WANs. These tests verify that the mark is applied correctly, can be changed dynamically, and controls BFD session state when traffic policies filter by mark. ********************* Test BFD Profile Mark ********************* Description =========== Test that BFD profile mark is applied correctly. Configures a BFD profile with mark 99 on both routers and verifies that BGP establishes, BFD is up with the correct mark value, and end-to-end connectivity works. Scenario ======== .. include:: bfdmark/testbfdprofilemark .. raw:: html
**************************** Test BFD Mark Dynamic Change **************************** Description =========== Test that changing the mark value in the BFD profile updates the BFD session dynamically without tearing it down. The mark is changed from 99 to 50 and back to 99, verifying that show peers reflects each change. Scenario ======== .. include:: bfdmark/testbfdmarkdynamicchange .. raw:: html
****************************** Test BFD Mark Controls Session ****************************** Description =========== Test that the BFD mark controls session state. A traffic policy is configured to drop BFD packets that do not carry mark 99 and to log packets that do. With mark 99, BFD stays up and marked packets appear in the system journal. Changing to mark 50 causes BFD to go down. Restoring mark 99 brings BFD back up. Scenario ======== .. include:: bfdmark/testbfdmarkcontrolssession .. raw:: html