Example-1: The example below demonstrates switch routing OSPF configuration.
This configuration enables Open Shortest Path First (OSPF) routing protocol on Layer 3 switches for dynamic route discovery and convergence. The example includes area assignments, authentication settings, and routing parameters for enterprise network connectivity.
This configuration activates OSPF routing using “enabled: true”, “hello_timer_in_seconds: 10” and “dead_timer_in_seconds: 30” for neighbor discovery timing, and “areas” array defining OSPF areas with “area_id” (0, 20), “area_name” (BACKBONE, branch1), and “area_type: normal” specifications. The configuration includes “v3” settings for OSPFv3 with separate timers, “md5_authentication: true” for secure neighbor authentication, and “md5_authentication_key” with “id: 1” and environment variable “passphrase” for cryptographic authentication between OSPF routers.