[Edgecore SONiC] BGP Unnumbered Follow
In the original BGP configuration, it needs to specify a peer IPv4 address to establish peer connections.
For CLOS deployment in the data center, the IP interfaces grow dramatically due to the full connection between spines and LEAFs.
(each peer connection needs IPv4 addresses on it). To eliminate this situation, we need the unnumbered interface to establish peer connections.
Restriction
- "BGP unnumbered" support for Layer 3 interfaces that bind IP on a port or port-channel interface.
- (202006.x, 202012.x) "BGP unnumbered" support VLAN interface, but it must configure IPv4 address to VLAN interface to activate IPv6 link-local IP address, please make sure there's only one Interface added to the VLAN since BGP session is point to point.
- The reason why VLAN interface needs extra IP address to be configured is IPv6 link-local address is created automatically on Linux netdevice. If user create 4k VLAN, it will create the 4k corresponding router interface even it doesn't configure any IP address. This will exhaust ASIC resources in this scenario, so we limit IPv6 link-local address to create router interface automatically. In order to make BGP unnumbered work, it indeed needs a router interface on it, so we let user to configure extra IP on it as a workaround
Tested model & firmware version:
- Switch model name:
AS7362-56X
AS7726-32X
AS5835-54X(T)
- Edgecore SONiC version:
202006.4
202012.2
Establish BGP unnumbered session
Procedure:
Step 1. Initialize FRR configuration. Please refer to FRRouting and config initialization tutorial.
Step 2. Configure IP address properly for BGP session. Please refer to Management and front port IPv4/IPv6 Address tutorial.
Step 3. Enter Vty shell.
Note.
"vtysh" provides a combined frontend to all FRR daemons in a single combined session.
Step 4. Configuring BGP Neighbor Session with unnumbered. Replaces the IP configuration of the original neighbor with the locally connected interface. (refer to Establish BGP session)
Note.
The AS number of neighbors, you could assign the AS number of neighbors. The "external" is to eBGP and the "internal" is to iBGP.
eBGP:
sonic(config-router)# neighbor Ethernet8 interface remote-as external
iBGP:
sonic(config-router)# neighbor Ethernet8 interface remote-as internal
Step 5. Checking the BGP connection and neighbor status.
On the AS7726-32X (Switch1)
On the AS5835-54X (Switch2)
Step 6. Save the routing setting.
Comments
0 comments
Please sign in to leave a comment.