Description

How  to configure BGP under a group in an SRX device

Symptoms

How  to configure BGP under a group in an SRX device

Solution

The preferred way to configure a large number of BGP peer neighbors is to configure peer groups consisting of multiple neighbors per group.

 

As the number of external BGP (EBGP) groups increases, the ability to support a large number of BGP sessions might become a CPU and memory resource scaling issue. Supporting fewer EBGP groups generally scales better than supporting a large number of EBGP groups. This becomes more evident in the case of hundreds of EBGP groups when compared with a few EBGP groups with multiple peers in each group. The reason for this scaling behavior is that Junos OS has data structures that occur on a per route-per group basis. When you add a group, you multiply those numbers and decrease the amount of memory available.

In the example network, Device in AS 17 establishes BGP peer sessions with a group of peers referred to as "external-peers." These peers are located in AS 22 with IP addresses 10.10.10.2, 10.10.10.6, and 10.10.10.10, respectively. 

set protocols bgp group external-peers type external 
set protocols bgp group external-peers peer-as 22 
set protocols bgp group external-peers neighbor 10.10.10.2 
set protocols bgp group external-peers neighbor 10.10.10.6 
set protocols bgp group external-peers neighbor 10.10.10.10 
set routing-options autonomous-system 17

Modification History

2024-11-07 : Article Created