Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Appendix: WAN Edge SSR or SRX Juniper Mist Cloud-managed eBGP Peering Via Active/Passive LAG

In this appendix, we describe the capability to manage and configure the WAN router through the Juniper Mist cloud. This feature is referred to as WAN Edge, and Juniper currently offers two device series for this purpose:

  • The SRX Series Firewall product line.
  • The Session Smart Router product line.

For integrating these device series into a campus fabric, two design options are practical:

In this appendix, we present the approach that uses eBGP when SRX or SSR devices are managed by the Juniper Mist cloud. In the previous appendix, we used a design in which each of the four uplink interfaces between the fabric and the WAN router was configured independently, with all interfaces active at the same time. In this design, we changed that approach to a LAG configuration when the WAN router nodes operate in an active/passive mode for the following reasons:

  • The SSR uses a stateful firewall design on the LAN interface connected to the EVPN fabric. When traffic flows asynchronously through the fabric and appears on a different LAN interface, the firewall state is not shared and the packets are dropped. When LAG is enabled using bonded interfaces, these stateful checks occur later and no longer on the individual LAN interfaces, which resolves the issue.
  • The SRX places each interface for each VRF into a zone, and there are four uplinks. When hairpin traffic between VRFs is allowed, firewall policies must permit traffic between the zones. With a small number of VRFs, this is not an issue. However, as the number of VRFs grows, the number of firewall policies required for possible hairpin traffic between zones increases significantly. Using a LAG toward the fabric reduces the number of required policies by 75 percent, and internally a redundant interface (reth) can be used to map the interface into a zone.
  • Some customers prefer a LAG with an active/passive WAN router design to avoid potential issues when asynchronous traffic is exchanged and both WAN router nodes operate as stateful devices.
Note:

Currently (July 2025) WAN Edge for SRX and SSR does not support IPv6. Customers with DualStack need to go with an unmanaged SRX design as described in Appendix: IPv6 Overlay and Underlay eBGP Peering Towards Unmanaged SRX. Also using an SSR managed by a conductor was not tested.

WAN Edge for SSR Specifics

For this JVD, all testing was done using physical devices. If you want to build a virtual lab for feature evaluation then the SSR WAN router must also be physical devices (same SKU), and the remaining pieces of the lab infrastructure can be based on virtual machines. You can find instructions on how to use vJunos-switch VMs together with Juniper Mist cloud in the following NCE. To get the physical SSRs connected to the virtual lab infrastructure, we suggest using dedicated Ethernet NICs on the VM server since the SSR LACP messages and interface bonding require this. A suggested lab build-out is shown in the image below.

Figure 1: Hybrid Lab build for SSR testing Hybrid Lab build for SSR testing

The LAG configuration and the BGP peering that must be established when using a pair of redundant SSR devices are illustrated in the topology example below for a single global VRF within the EVPN fabric.

Figure 2: SSR Cluster to EVPN Fabric redundancy SSR Cluster to EVPN Fabric redundancy

The design works in the following way:

  • A single ae*-interface aggregates all four links on the SSR cluster.
  • The ae*-interface must be configured for LAG with active LACP.
  • The LAG must be configured for redundancy, which results in an active/standby VRRP operation.
  • The SSR HA cluster determines which node is active.
  • Only two cluster interfaces run active LACP at the same time.
    • The standby node disables its interfaces until a failover occurs.
  • One fabric ae* LAG is required.
    • It must be configured as an ESI-LAG across the fabric nodes
    • The same AE index key must be used on all fabric links.
  • IP addressing and BGP peering:
    • At least a /29 subnet is required because a minimum of three IP addresses are used in the peering subnet.
    • The IP address on the SSR cluster moves between nodes.
    • The IP addresses on the fabric must be unique for each node.

The picture below shows how the two service block functions of the fabric connect to the first WAN router.

Figure 3: SSR HA Node0 to EVPN Fabric ESI-LAG SSR HA Node0 to EVPN Fabric ESI-LAG

The picture below shows how the two service block functions of the fabric connect to the second WAN router.

Figure 4: SSR HA Node1 to EVPN Fabric ESI-LAG SSR HA Node1 to EVPN Fabric ESI-LAG

Below is the full configuration Table between core1 and core2 as service block function and the two WAN routers. You also see the ASN chosen for eBGP.

Switch Switch AS VRF Core P2P IP Core IF WAN Router WAN Router P2P IP WAN Router AS WAN Router IF VLAN ID
core1 64911 customera 10.255.224.5/29

irb.101

ge-0/0/5

ae10.0

ssr-node0 10.255.224.1/29 64901

bond_0_10

ge-0-2

ge-0/0/2

101
core1 64911 customerb 10.255.224.13/29

irb.102

ge-0/0/5

ae10.0

ssr-node0 10.255.224.9/29 64901

bond_0_10

ge-0-2

ge-0/0/2

102
core1 64911 devices 10.255.224.21/29

irb.103

ge-0/0/5

ae10.0

ssr-node0 10.255.224.17/29 64901

bond_0_10

ge-0-2

ge-0/0/2

103
core1 64911 customera 10.255.224.5/29

irb.101

ge-0/0/6

ae10.0

ssr-node1 10.255.224.1/29 64901

bond_0_10

ge-0-2

ge-1/0/2

101
core1 64911 customerb 10.255.224.13/29

irb.102

ge-0/0/6

ae10.0

ssr-node1 10.255.224.9/29 64901

bond_0_10

ge-0-2

ge-1/0/2

102
core1 64911 devices 10.255.224.21/29

irb.103

ge-0/0/6

ae10.0

ssr-node1 10.255.224.17/29 64901

bond_0_10

ge-0-2

ge-1/0/2

103
core2 64911 customera 10.255.224.6/29

irb.101

ge-0/0/5

ae10.0

ssr-node0 10.255.224.1/29 64901

bond_0_10

ge-0-3

ge-0/0/3

101
core2 64911 customerb 10.255.224.14/29

irb.102

ge-0/0/5

ae10.0

ssr-node0 10.255.224.9/29 64901

bond_0_10

ge-0-3

ge-0/0/3

102
core2 64911 devices 10.255.224.22/29

irb.103

ge-0/0/5

ae10.0

ssr-node0 10.255.224.17/29 64901

bond_0_10

ge-0-3

ge-0/0/3

103
core2 64911 customera 10.255.224.6/29

irb.101

ge-0/0/6

ae10.0

ssr-node1 10.255.224.1/29 64901

bond_0_10

ge-0-3

ge-1/0/3

101
core2 64911 customerb 10.255.224.14/29

irb.102

ge-0/0/6

ae10.0

ssr-node1 10.255.224.9/29 64901

bond_0_10

ge-0-2

ge-1/0/3

102
core2 64911 devices 10.255.224.22/29

irb.103

ge-0/0/6

ae10.0

ssr-node1 10.255.224.17/29 64901

bond_0_10

ge-0-2

ge-1/0/3

103

The following are instructions describing what needs to be configured on the core1 switch as service block function.

The following are instructions describing what needs to be configured on core2 switch as service block function.

WAN Edge for SRX Specifics

For this JVD, all testing was performed using physical devices. If you want to build a virtual lab for feature evaluation, use vSRX version 3 and apply AppID demo licenses to those virtual machines. Instructions for using vJunos-switch VMs with the Juniper Mist cloud can be found in the following NCE. A suggested lab topology is shown in the diagram below.

Figure 5: Complete Lab build for SRX testing Complete Lab build for SRX testing

The LAG configuration and the BGP peering required for a pair of redundant SRXs are illustrated in the topology example below for a single global VRF within the EVPN fabric.

Figure 6: SRX chassis cluster to EVPN Fabric redundancy SRX chassis cluster to EVPN Fabric redundancy

The design works in the following way:

  • A single reth interface aggregates all four links on the SRX chassis cluster.
  • The reth interface is configured for LAG with active LACP.
  • All four SRX chassis cluster interfaces operate with active LACP at the same time.
  • The SRX chassis cluster determines which node is active
    • The standby node does not respond to ARP requests.
    • Only the ae10 or ae11 interfaces on the fabric learn the active SRX remote MAC address.
  • You need two fabric ae* LAGs:
    • They are required to be ESI-LAGs from fabric nodes.
    • They must use the same AE index key toward the corresponding SRX cluster node.
  • IP addressing and BGP Peering:
    • At least a /29 subnet is required because a minimum of three IP addresses are used in the peering subnet.
    • The IP address on the SRX chassis cluster moves between nodes.
    • The IP addresses on the fabric must be unique for each node.

The image below shows how the two service block functions of the fabric connect to the first WAN router.

Figure 7: SRX chassis cluster Node0 to EVPN Fabric ESI-LAG SRX chassis cluster Node0 to EVPN Fabric ESI-LAG

The image below shows how the two service block functions of the fabric connect to the second WAN router.

Figure 8: SRX chassis cluster Node1 to EVPN Fabric ESI-LAG SRX chassis cluster Node1 to EVPN Fabric ESI-LAG

Below is the full configuration table between core1 and core2 as service block function and the two WAN routers. You also see the AS number chosen for eBGP.

Switch Switch AS VRF Core P2P IP Core IF WAN Router WAN Router P2P IP WAN Router AS WAN Router IF VLAN ID
core1 64911 customera 10.255.224.5/29

irb.101

ge-0/0/5

ae10.0

srx-node0 10.255.224.1/29 64901

reth3.101

ge-0/0/2

101
core1 64911 customerb 10.255.224.13/29

irb.102

ge-0/0/5

ae10.0

srx-node0 10.255.224.9/29 64901

reth3.102

ge-0/0/2

102
core1 64911 devices 10.255.224.21/29

irb.103

ge-0/0/5

ae10.0

srx-node0 10.255.224.17/29 64901

reth3.103

ge-0/0/2

103
core1 64911 customera 10.255.224.5/29

irb.101

ge-0/0/6

ae11.0

srx-node1 10.255.224.1/29 64901

reth3.101

ge-7/0/2

101
core1 64911 customerb 10.255.224.13/29

irb.102

ge-0/0/6

ae11.0

srx-node1 10.255.224.9/29 64901

reth3.102

ge-7/0/2

102
core1 64911 devices 10.255.224.21/29

irb.103

ge-0/0/6

ae11.0

srx-node1 10.255.224.17/29 64901

reth3.103

ge-7/0/2

103
core2 64911 customera 10.255.224.6/29

irb.101

ge-0/0/5

ae10.0

srx-node0 10.255.224.1/29 64901

reth3.101

ge-0/0/3

101
core2 64911 customerb 10.255.224.14/29

irb.102

ge-0/0/5

ae10.0

srx-node0 10.255.224.9/29 64901

reth3.102

ge-0/0/3

102
core2 64911 devices 10.255.224.22/29

irb.103

ge-0/0/5

ae10.0

srx-node0 10.255.224.17/29 64901

reth3.103

ge-0/0/3

103
core2 64911 customera 10.255.224.6/29

irb.101

ge-0/0/6

ae11.0

srx-node1 10.255.224.1/29 64901

reth3.101

ge-7/0/3

101
core2 64911 customerb 10.255.224.14/29

irb.102

ge-0/0/6

ae11.0

srx-node1 10.255.224.9/29 64901

reth3.102

ge-7/0/3

102
core2 64911 devices 10.255.224.22/29

irb.103

ge-0/0/6

ae11.0

srx-node1 10.255.224.17/29 64901

reth3.103

ge-7/0/3

103

The following are instructions describing what needs to be configured on core1 switch as service block function.

The following are the instructions what needs to be configured on core2 switch as service block function.

EVPN Fabric Setup Side Configuration

Switch Template Configuration

Below is a switch template used for evaluation. You can reuse this switch template or create a new one.

Apart from the overlay VLAN for the EVPN fabric, you need to do the following:

  • Add a transport/peering VLAN for each VRF into the switch template to make it available globally.
    • Apart from the network name, just the VLAN ID needs to be configured.
    • Make sure this is not used in the campus fabric VRF or on any access switches.

In our example, configure the following:

  • For the first VRF we add the following network:
    • Name=trans101
    • VLAN ID=101
    • IPv4 Subnet=empty (we configure this on the service block using an additional IP address)
    • IPv6 Subnet=empty (unused in this design)
  • For the second VRF we add the following network:
    • Name=trans102
    • VLAN ID=102
    • IPv4 Subnet=empty (we configure this on the service block using an additional IP address)
    • IPv6 Subnet=empty (unused in this design)
  • For the third VRF we add the following network:
    • Name=trans103
    • VLAN ID=103
    • IPv4 Subnet=empty (we configure this on the service block using an additional IP address)
    • IPv6 Subnet=empty (unused in this design)

Core1 and Core2 = Service Block 0 and 1

Ensure your transport/peering VLANs are imported from the switch template (or else configured locally). For each transport VLAN and service block, configure an IP address as an additional IP with a /29 network.

The full configuration for the core1 switch is:

  • Additional IP Configuration=trans101
    • IP Address=static
    • IPv4 Address=10.255.224.5
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans101
  • Additional IP Configuration=trans102
    • IP Address=static
    • IPv4 Address=10.255.224.13
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans102
  • Additional IP Configuration=trans103
    • IP Address=static
    • IPv4 Address=10.255.224.21
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans103

The full configuration for the core2 switch is:

  • Additional IP Configuration=trans101
    • IP Address=static
    • IPv4 Address=10.255.224.6
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans101
  • Additional IP Configuration=trans102
    • IP Address=static
    • IPv4 Address=10.255.224.14
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans102
  • Additional IP Configuration=trans103
    • IP Address=static
    • IPv4 Address=10.255.224.22
    • IPv4 Subnet Mask=255.255.255.248
    • IPv6 Address=empty
    • IPv4 Subnet Mask=empty
    • Network=trans103

Next, define a port profile either in the switch template or locally on each service block function switch. In our example we configure the following:

  • Name=peering-uplinks
  • Port Enabled=Enabled
  • Mode=Trunk
  • Port Network=None
  • Trunk Network=trans101 and trans102 and trans103
  • Enable MTU=Checked
  • MTU=9018

For the SRX chassis cluster, the uplink port configuration on both service block functions requires a different ESI-LAG per uplink node. Hence, the following port configuration for the SRX chassis cluster uplinks are applied:

  • Uplink to node0:
    • Port IDs=ge-0/0/5
    • Interface=L2 Interface
    • Configuration Profile=peering-uplinks
    • Port Aggregation=Enabled
      • AE Index=10
      • ESI-LAG=Enabled
  • Uplink to node1:
    • Port IDs=ge-0/0/6
    • Interface=L2 Interface
    • Configuration Profile=peering-uplinks
    • Port Aggregation=Enabled
      • AE Index=11
      • ESI-LAG=Enabled

For the SSR HA cluster, the uplink port configuration on both service block functions can have a single LAG for all nodes. Hence, the following port configuration for the SSR cluster uplinks are applied:

  • Port IDs=ge-0/0/5-6
  • Interface=L2 Interface
  • Configuration Profile=peering-uplinks
  • Port Aggregation=Enabled
    • AE Index=10
    • ESI-LAG=Enabled

In the next step, customize each VRF on both service blocks by adding the transport VLAN to the overlay VLANs already imported from the EVPN fabric configuration.

Note:

When adding new VLANs to the campus fabric later, you must also add them to the customized VRFs on both service blocks.

This step is performed on both service blocks and works the same way on each; you must configure the following:

  • VRF Configuration:
    • Override Site/Template Settings=Checked
    • Configuration=Enabled
    • Instance=customera
      • Override Site/Template Settings=Checked
      • Add to existing Networks=trans101
    • Instance=customerb
      • Override Site/Template Settings=Checked
      • Add to existing Networks=trans102
    • Instance=devices
      • Override Site/Template Settings=Checked
      • Add to existing Networks=trans103

You can now proceed with the BGP configuration, beginning with the creation of policies. Configure the following import routing policy to receive the default route from the WAN router:

  • Name=import-default
  • Term=1
    • Name=default
    • Prefix=0.0.0.0/0
    • Protocol=BGP
    • Then=Accept

Configure the following export routing policy to announce the fabric overlay networks and the overlay loopback IP ranges used for DHCP relay:

  • Name=export-vrfs
  • Term=1
    • Name=exclude-default
    • Prefix=0.0.0.0/0
    • Protocol=None
    • Then=Reject
  • Term=2
    • Name=fabric-all-no-hosts
    • Prefix=0.0.0.0/0-30
    • Protocol=None
    • Then=Accept
  • Term=3
    • Name=overlaylo0
    • Prefix=172.16.192.0/23-32
    • Protocol=None
    • Then=Accept

Be sure to include the overlay loopback host routes as a second rule.

Note:

The overlay loopback configuration suggested earlier is not required for EVPN Multihoming or CRB campus fabrics. Refer to the JVD for more details.

Next, define the BGP peering groups and neighbors for each VRF. Configure the following BGP groups:

  • Name=customera
    • Type=External
    • Network=trans101
    • BFD Interval=1000
    • Local AS=64911
    • Hold Time=90
    • Export=export-vrfs
    • Import=import-default
    • Neighbour=1
      • IP Address=10.255.224.1
      • Neighbor AS=64901
      • Hold Time=90
  • Name=customerb
    • Type=External
    • Network=trans102
    • BFD Interval=1000
    • Local AS=64911
    • Hold Time=90
    • Export=export-vrfs
    • Import=import-default
    • Neighbour=1
      • IP Address=10.255.224.9
      • Neighbor AS=64901
      • Hold Time=90
  • Name=devices
    • Type=External
    • Network=trans103
    • BFD Interval=1000
    • Local AS=64911
    • Hold Time=90
    • Export=export-vrfs
    • Import=import-default
    • Neighbour=1
      • IP Address=10.255.224.17
      • Neighbor AS=64901
      • Hold Time=90
Note:

Additional Junos CLI configuration on the service block switches is required. Without it, the fabric node responds only on the local IRB IP address when the WAN router sends ARP requests, while the WAN router may send those requests to a different interface due to LAG load balancing. Should you forget adding these changes it may happen that the BGP peering sessions cannot be established randomly, which is a symptom for the missing configuration.

Depending on the devices used as service block function, the fabric type and features like IPv4 or IPv6 underlay chosen you may require the following two additional Junos CLI line on each service block function.

  1. On each service block function switch go to Utilities -> Download Junos Config as shown below
    Figure 9: Download Junos Config Download Junos Config
  2. Open the downloaded file in an editor and search for the string do-not-advertise similar to below example.
    Figure 10: Search for do-not-advertise string Search for do-not-advertise string
  3. If the string does not appear, then no change is needed to be made in your configuration. This is usually the case for EVPN Multihoming and CRB fabrics. You can then ignore the other instructions following now.
  4. If the string is found you require one out of two possible configuration changes applied on each service block function.
    1. If the line where the string is found also contains the string routing-instances evpn_vs as in above example then the configuration change below has to be applied as mandatory change. This is because the system uses the evpn_vs virtual switch rather than the default switch and our configuration change must be valid for this.
    2. In all other cases you should apply the following configuration as the system still uses the default virtual switch.

SSR HA Cluster Setup

Our lab had two SSR1500s in HA cluster mode.

Figure 11: SSR Cluster as WAN-Router SSR Cluster as WAN-Router

You need to ensure they are on the same firmware version:

Figure 12: Check Firmware is same between Cluster devices Check Firmware is same between Cluster devices

Below is the JSON file that was used for the hub profile:

If you are not using the JSON file, follow the manual setup described below. Under Organization -> Applications, add a custom application for “fabric” that includes all RFC1918 networks, and another for default route injection, which is currently required to advertise a default route toward the EVPN fabric. Create the following applications:

  • Name=fabric
    • Type=Custom Apps
    • IP Addresses=10.0.0.0/8 and 172.16.0.0/12 and 192.168.0.0/16
  • Name=default
  • Type=Custom Apps
  • IP Addresses=0.0.0.0/0

Define the following networks:

  • Each of the three RFC1918 networks that may be used as overlay networks in the EVPN fabric must be defined. We use the naming convention fabricX. These networks must be advertised to the overlay, other spokes, and LAN-side BGP neighbors to support hairpin traffic between VRFs.
  • Define a network for each BGP peering per VRF, including the VLAN ID and the correct /29 IP address information. Do not enable propagation to the overlay. In this example, three networks are defined using the naming convention VRFX .
  • A default route must be injected toward the EVPN fabric. To achieve this, create a default-helper network with a /32 host address that falls outside the fabric? networks already in use. This network must be advertised to the overlay as shown below.

The intended configuration is illustrated below.

Create the first network:

  • Name=fabric1
  • Subnet IPv4 Address=10.0.0.0
  • IPv4 Prefix Length=8
  • VLAN ID=<empty>
  • Access to MIST Cloud=Checked/Enabled
  • Advertise to the Overlay=Checked/Enabled
  • Advertise to other Spokes=Checked/Enabled
  • Advertise to Hub LAN BGP Neighbor=Checked/Enabled

Create the second network:

  • Name=fabric2
  • Subnet IPv4 Address=172.16.0.0
  • IPv4 Prefix Length=12
  • VLAN ID=<empty>
  • Access to MIST Cloud=Checked/Enabled
  • Advertise to the Overlay=Checked/Enabled
  • Advertise to other Spokes=Checked/Enabled
  • Advertise to Hub LAN BGP Neighbor=Checked/Enabled

Create the third network:

  • Name=fabric3
  • Subnet IPv4 Address=192.168.0.0
  • IPv4 Prefix Length=16
  • VLAN ID=<empty>
  • Access to MIST Cloud=Checked/Enabled
  • Advertise to the Overlay=Checked/Enabled
  • Advertise to other Spokes=Checked/Enabled
  • Advertise to Hub LAN BGP Neighbor=Checked/Enabled

Create the fourth network:

  • Name=VRF1
  • Subnet IPv4 Address=10.255.224.0
  • IPv4 Prefix Length=29
  • VLAN ID=101
  • Access to MIST Cloud=Unchecked/Disabled
  • Advertise to the Overlay=Unchecked/Disabled
  • Networks Not Directly Attached=fabric1 and fabric2 and fabric3

Create the fifth network:

  • Name=VRF2
  • Subnet IP Address=10.255.224.8
  • Prefix Length=29
  • VLAN ID=102
  • Access to MIST Cloud=Unchecked/Disabled
  • Advertise to the Overlay=Unchecked/Disabled
  • Networks Not Directly Attached=fabric1 and fabric2 and fabric3

Create the sixth network:

  • Name=VRF3
  • Subnet IP Address=10.255.224.16
  • Prefix Length=29
  • VLAN ID=103
  • Access to MIST Cloud=Unchecked/Disabled
  • Advertise to the Overlay=Unchecked/Disabled
  • Networks Not Directly Attached=fabric1 and fabric2 and fabric3

Create a seventh network, which is required to inject a default route. The interface IP address used must fall outside the range of the RFC1918 networks. However, the option to advertise to the Hub LAN BGP neighbor must be enabled for the injection to take effect:

  • Name=default-helper
  • Subnet IP Address=100.64.0.0
  • Prefix Length=32
  • VLAN ID=none
  • Access to MIST Cloud=Checked/Enabled
  • Advertise to the Overlay=Checked/Enabled
  • Advertise to other Spokes=Unchecked/Disabled
  • Advertise to Hub LAN BGP Neighbor=Checked/Enabled

In our design, static IP addresses were used on the WAN interfaces for the lab, and we recommend refining this approach for a production environment.

Figure 13: WAN-Interfaces for our Lab example WAN-Interfaces for our Lab example

Next is the configuration of the LAN interfaces in the following design. Configure the following three LAN IP gateways:

  • First GW
    • Network=VRF1
    • IP Address=10.255.224.1
    • Prefix Length=29
  • Second GW
    • Network=VRF2
    • IP Address=10.255.224.9
    • Prefix Length=29
  • Third GW
    • Network=VRF3
    • IP Address=10.255.224.17
    • Prefix Length=29

Then, configure the LAG with the LAN interfaces towards the fabric like the following:

  • Interface=ge-0/0/2,ge-0/0/3,ge-1/0/2,ge-1/0/3
  • Port Aggregation=Checked/Enabled
    • Disable LACP=Unchecked
    • Enable Force Up=Unchecked
    • AE Index=10
  • Redundant=Checked/Enabled
    • Redundant Index=1
    • Redundant Group=empty (default)
    • Primary Node=node0
  • Networks=VRF1 and VRF2 and VRF3

The result should look like the image shown below.

Figure 14: SSR HA-Cluster LAN-interface bonding SSR HA-Cluster LAN-interface bonding
  • The traffic steering rules are straightforward, as shown below: Create a LAN traffic steering rule using ECMP, including all VRF peering interfaces.
  • Create a WAN traffic steering rule that includes both of your WAN interfaces.
Figure 15: Traffic Steering Traffic Steering

For application policies, you need to configure the following:

  • Rule=1
    • Name=hairpin-traffic
    • Network=fabric1 and fabric2 and fabric3
    • Application=fabric
    • Traffic Steering=N/A (do not configure any traffic steering on this rule for the SSR)
  • Rule=2
    • Name=internet
    • Network=fabric1 and fabric2 and fabric3
    • Application=any
    • Traffic Steering=WAN
  • Rule=3
    • Name=default-route-inject
    • Network=default-helper
    • Application=default
    • Traffic Steering=LAN

You can now begin the BGP configuration by creating the required routing policies.

Configure the following export routing policy:

  • Name=export-default
  • Term=1
    • Prefix=0.0.0.0/0
    • Protocol=BGP
    • Then=Accept
  • Term=2
    • Prefix=N/A (do not set)
    • Protocol=BGP
    • Then=Reject

Configure the following import routing policy:

  • Name=import-fabric
  • Term=1
    • Prefix=0.0.0.0/0
    • Protocol=BGP
    • Then=Reject
  • Term=2
    • Prefix=0.0.0.0/0-32
    • Protocol=BGP
    • Then=Accept

Next, define the BGP peering groups and the two neighbors for each VRF, as part of the service block configuration.

  • Configure the first BGP group:
    • Name=VRF1
    • Peering Network=LAN and VRF1
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.5
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.6
      • Neighbor AS=64911
  • Configure the second BGP group:
    • Name=VRF2
    • Peering Network=LAN and VRF2
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.13
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.14
      • Neighbor AS=64911
  • Configure the third BGP group:
    • Name=VRF3
    • Peering Network=LAN and VRF3
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.21
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.22
      • Neighbor AS=64911

SRX Chassis Cluster Setup

In our lab, we built the SRX chassis cluster based on vSRX3 VMs as seen below.

Figure 16: vSRX3 based virtual chassis cluster vSRX3 based virtual chassis cluster

Below is the JSON file that was used for the hub profile.

If you are not using the JSON file, follow the manual setup described below.

Under Organization -> Applications, add a custom application for “fabric” with all RFC1918 networks. Create the application as follows:

  • Name=fabric
  • Type=Custom Apps
  • IP Addresses=10.0.0.0/8 and 172.16.0.0/12 and 192.168.0.0/16

Under Organization -> Networks, add the subnets for each VRF. It is mandatory to use the "Users" object with RFC1918 networks, as tested. Advertise to the Overlay is optional and is only required for the default-helper network to inject a default route toward the EVPN fabric.

  • Create first Network:
    • Name=VRF1
    • Subnet IP Address=10.255.224.0
    • Prefix Length=29
    • VLAN ID=101
    • Access to MIST Cloud=Checked/Enabled
    • Advertise to the Overlay=Unchecked/Disabled
    • Users
      • Name=fabric
      • IP Prefix1=10.0.0.0/8
      • IP Prefix2=172.16.0.0/12
      • IP Prefix3=192.168.0.0/16
  • Create second Network:
    • Name=VRF2
    • Subnet IP Address=10.255.224.8
    • Prefix Length=29
    • VLAN ID=102
    • Access to MIST Cloud=Checked/Enabled
    • Advertise to the Overlay=Unchecked/Disabled
    • Users
      • Name=fabric
      • IP Prefix1=10.0.0.0/8
      • IP Prefix2=172.16.0.0/12
      • IP Prefix3=192.168.0.0/16
  • Create third Network:
    • Name=VRF3
    • Subnet IP Address=10.255.224.16
    • Prefix Length=29
    • VLAN ID=103
    • Access to MIST Cloud=Checked/Enabled
    • Advertise to the Overlay=Unchecked/Disabled
    • Users
      • Name=fabric
      • IP Prefix1=10.0.0.0/8
      • IP Prefix2=172.16.0.0/12
      • IP Prefix3=192.168.0.0/16

In our design, static IP addresses were used on the WAN interfaces for the lab, and we recommend refining this approach for a production environment.

Figure 17: WAN-Interfaces for our Lab example WAN-Interfaces for our Lab example

Next is the configuration of the LAN interfaces. Configure the following three LAN IP gateways:

  • First GW
    • Network=VRF1
    • IP Address=10.255.224.1
    • Prefix Length=29
  • Second GW
    • Network=VRF2
    • IP Address=10.255.224.9
    • Prefix Length=29
  • Third GW
    • Network=VRF3
    • IP Address=10.255.224.17
    • Prefix Length=29

Then, configure the LAG with the LAN interfaces towards the fabric as follows:

  • Interface=ge-0/0/2-3,ge-7/0/2-3
  • Port Aggregation=Checked/Enabled
    • Disable LACP=Unchecked
    • Enable Force Up=Unchecked
    • AE Index=10
  • Redundant=Checked/Enabled
    • Redundant Index=3
    • Redundant Group=3
    • Primary Node=node0
  • Networks=VRF1 and VRF2 and VRF3

The result should look like the image shown below.

Figure 18: SRX chassis cluster LAN-interface reth SRX chassis cluster LAN-interface reth

The traffic steering rules are straightforward, as shown below:

  • Create a LAN traffic steering rule using ECMP, including all VRF peering interfaces.
  • Create a WAN traffic steering rule that includes both of your WAN interfaces.
Figure 19: Traffic Steering Traffic Steering

For application policies you need to configure the following:

  • Rule=1
    • Name=hairpin-traffic
    • Network=fabric.VRF1 and fabric.VRF2 and fabric.VRF3
    • Application=fabric
    • Traffic Steering=LAN
  • Rule=2
    • Name=internet
    • Network=fabric.VRF1 and fabric.VRF2 and fabric.VRF3
    • Application=any
    • Traffic Steering=WAN

You can now begin the BGP configuration by creating the required routing policies. Configure the following routing policy:

  • Name=export-default
  • Term=1
    • Prefix=0.0.0.0/0
    • Protocol=BGP
    • Then=Accept
  • Term=2
    • Prefix=N/A (do not set)
    • Protocol=BGP
    • Then=Reject

Configure the following routing policy:

  • Name=import-fabric
  • Term=1
    • Prefix=0.0.0.0/0
    • Protocol=BGP
    • Then=Reject
  • Term=2
    • Prefix=0.0.0.0/0-32
    • Protocol=BGP
    • Then=Accept

Next, define the BGP peering groups and the two neighbors for each VRF, as part of the service block configuration.

  • Configure the first BGP group:
    • Name=VRF1
    • Peering Network=LAN and VRF1
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.5
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.6
      • Neighbor AS=64911
  • Configure the second BGP group:
    • Name=VRF2
    • Peering Network=LAN and VRF2
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.13
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.14
      • Neighbor AS=64911
  • Configure the third BGP group:
    • Name=VRF3
    • Peering Network=LAN and VRF3
    • Advertise to the Overlay=Checked/Enabled
    • Type=External
    • Local AS=64901
    • Hold Time=90
    • Graceful Restart Time=120
    • Export=export-default
    • Import=import-fabric
    • Neighbour=1
      • Neighbor=Enabled
      • IP Address=10.255.224.21
      • Neighbor AS=64911
    • Neighbour=2
      • Neighbor=Enabled
      • IP Address=10.255.224.22
      • Neighbor AS=64911

OPTIONAL: On the SRX, we can add the below configuration to be able to ping the LAN interfaces on SRX chassis cluster for debugging.

Testing Your Applied Configuration

The output below was gathered from the first service block switch:

The following output was gathered from the SRX chassis cluster:

You can gather similar output from the WAN Edge Testing Tools.

.

.