- Switch model name:
- Edgecore SONiC version:
Example: Establish BGP unnumbered session
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
- AS (autonomous systems) is a unique identifier and it used to exchange routing information with other AS.
Its available pool of 16-bit AS numbers.
1 ~ 64511 reserve to the public, you need to apply for it form IANA ( Internet Assigned Numbers Authority)
64512~ 65534 reserve for private.
Since AS numbers are not enough, IANA extended the AS Number field to 32 bits in size.
131072 - 4199999999 reserve for public and 4200000000-4294967294 reserve for private.
- Router ID is used to identify routers in AS(autonomous systems).
Caution: Router ID must be unique for each BGP router in the network. Otherwise, it's failed to establish BGP session.
- The AS number of neighbors, you could assign the AS number of neighbors. The "external" is to eBGP and the "internal" is to iBGP.
sonic(config-router)# neighbor Ethernet8 interface remote-as external
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.