Tested model & firmware version:
- Switch model name:
- Edgecore SONiC version:
Procedure: Enter Vty shell and BGP ASN
sonic# configure terminal
sonic(config)# router bgp 65101
sonic(config-router)# address-family ipv4 unicast // Enter address-family ipv4
sonic(config-router-af)# redistribute connected
sonic(config-router-af)# redistribute kernel
sonic(config-router-af)# redistribute static
Note: This configuration example says that redistribute connected route, kernel route and static route to BGP process
Address-family: Multiprotocol extensions enable BGP to carry routing information for multiple network layer protocols. BGP supports an Address Family Identifier (AFI) for IPv4 and IPv6.
ipv4 Address Family
ipv6 Address Family
l2vpn Address Family
vpnv4 Address Family [TBD]
vpnv6 Address Family [TBD]
Note: Route redistribution is used to learn from one routing protocol (static, connected route, and OSPF ....) available to a different routing protocol.
sonic(config-router-af)# redistribute babel Babel routing protocol (Babel) [TBD] connected Connected routes (directly attached subnet or host) eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) [TBD] isis Intermediate System to Intermediate System (IS-IS) [TBD] kernel Kernel routes (not installed via the zebra RIB) nhrp Next Hop Resolution Protocol (NHRP) [TBD] openfabric OpenFabric Routing Protocol [TBD] ospf Open Shortest Path First (OSPFv2) [TBD] rip Routing Information Protocol (RIP) [TBD] sharp Super Happy Advanced Routing Protocol (sharpd) [TBD] static Statically configured routes table Non-main Kernel Routing Table [TBD] vnc Virtual Network Control (VNC) [TBD] vnc-direct VNC direct (not via zebra) routes [TBD]
Note: Kernel routes and static routes are different, please refer to this article.
Note: Currently, SONiC FRRouting supports redistribute connected, kernel and static only.