Apply IPSec Security Association
IPSec can be applied to BGP traffic. IPSec is a protocol suite used for protecting IP traffic at the packet level. IPSec is based on security associations (SAs). A security association is a simplex connection that provides security services to the packets carried by the SA. After configuring the security association, you can apply the SA to BGP peers.
To apply a security association, include the
ipsec-sastatement:ipsec-saipsec-sa;You can apply a security association globally for all BGP groups (at the
[edit protocols bgp]hierarchy level), for all peers in a group (at the[edit protocols bgp groupgroup-name]level), or for an individual peer (at the[edit protocols bgp groupgroup-nameneighboraddress]level). For routing instances, include the statement at the[edit routing-instancesrouting-instance-nameprotocols bgp]hierarchy level, [edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-name]hierarchy level, andthe[edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-nameneighboraddress]hierarchy level. The security association is identified by the SA name.A more specific security association overrides a less general SA. For example, if a specific SA is applied to a specific peer, that SA overrides the SA applied to the whole peer group.
For more detailed information about configuring IPSec security associations, see the JUNOS Internet Software Configuration Guide: Getting Started.