[Edgecore SONiC] BGP Step 2.1 Redistribute routes to BGP process (Optional) Follow
Tested model & firmware version:
- Switch model name:
AS7362-56X
AS7726-32X
AS5835-54X(T)
- Edgecore SONiC version:
202006.4
202012.2
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
sonic(config-router)# end
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.
sonic(config-router)# address-family
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.
Comments
1 comment
Thank you this is very useful.
is there a way to do it through the /etc/sonic/config_db.json file?
Please sign in to leave a comment.