In this recipe, we will outline how to configure BGP on Juniper devices. We will outline how to set up BGP and BGP Route Reflectors (RR) as part of our sample topology, along with all the required BGP address families to support virtual private network (VPN) services.
Configuring BGP on Juniper devices
How to do it...
- Update the group_vars/all.yml file with the following BGP information:
bgp_topo:
rr: mxp01
af:
- inet
- inet-vpn
- For each node within our Ansible inventory, we create a file called bgp.yml under the host_vars directory. This file holds the BGP information and BGP peers for each node. This is the example for the mxpe01 device:
$ cat host_vars/mxpe01/bgp.yml
bgp_asn: 65400
bgp_peers:
- local_as: 65400
...