Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuration Walkthrough

Apstra Configuration for Configuring SRX4600

This JVDE walks through the steps to create connectivity between the SRX4600 and 3-stage data center fabric Spine switches using Juniper Apstra. For the purposes of this JVDE, two SRX4600 are connected to each Spine switch. In the current Apstra version, SRX4600 is not supported under device profiles. Therefore, the two SRX4600 are added as external generic servers connected to the Spines and must be added as a Remote EVPN Gateway (also known as external Gateway). Hence Apstra does not manage the SRX4600.

Note:

For high availability, the SRX devices are configured as MNHA. For more information on MNHA refer to the SRX user guide or to the techpost that provides different architecture deployments.

Assign ASN Numbers to SRX4600

Next assign ASN numbers to the SRX4600 as shown in Figure 4.

Figure 4: Assign ASN Numbers to SRX4600 A screenshot of a computer AI-generated content may be incorrect.

SRX Device as Remote EVPN Gateway (External Gateway) in Apstra

The SRX devices are added as external gateways/Remote EVPN Gateway in Apstra. Refer the Apstra guide for information on the External Gateway/Remote EVPN Gateway. Apstra guide also covers the steps to add Remote EVPN Gateway to extend the control plane.

From Blueprints > {Blueprint name} > Staged > DCI navigate to Over the top or External Gateways and click on Create over the top or External Gateway and create external gateway.

Figure 5: Creating External Gateway for each SRX4600 A screenshot of a computer AI-generated content may be incorrect.

Assign the SRX gateway to the Spines as shown in Figure 6.

Figure 6: Assigning SRX to the Spines to Create evpn Gateway A screenshot of a computer AI-generated content may be incorrect.

Create Underlay Connectivity from SRX Device to the Spine

Use the Create Connectivity Template in Apstra to create the underlay connectivity by configuring the routing connections from each SRX device to the different Spine switches. To create the underlay connectivity, assign the primitive types for IP link, BGP Peers and Routing Policy in Apstra Connectivity templates. For more information on Connectivity Templates see the Apstra Guide.

As shown in Figure 7, connectivity template is created and the Default Routing Zone is used for VRF to the SRX devices, BGP peering is created between SRX device and Spine, and the IPV4 address is used to setup for connectivity. Next the Routing policy is also assigned for route exchange.

After creating the connectivity template, the template is then assigned to the Spine switches as shown in Figure 8.

Figure 7: SRX Devices Underlay Connectivity Template Screens screenshot of a computer AI-generated content may be incorrect.

Figure 8: Assign Connectivity Template to the Spines Facing the SRX Device Interfaces A screenshot of a computer AI-generated content may be incorrect.

Assign Underlay IP Addresses to Spine and SRX Device Interfaces

Once the connectivity template is assigned, Apstra displays build errors (under Blueprints > {Blueprint Name} > Uncommitted) with suggestions when IP addresses need to be assigned to the interfaces. Navigate from the Blueprint > {Your Blueprint} > Staged > Virtual Network > Routing Zones and edit the Default Routing Zone as was assigned on the Connectivity template and scroll down to assign IP addresses as shown in Figure 9.

Figure 9: Assign IP Addresses to Spine and SRX Device A screenshot of a computer AI-generated content may be incorrect.

Configure Second SRX Device Connectivity to Spines

Once all the above configuration in Apstra is completed, repeat all the above steps for the second SRX device to create the underlay connectivity and the Remote EVPN gateway to Spine switches.

Enabling EVPN Type 5 Host Specific Routes

For host specific routes in Apstra Fabric setting, enable EVPN Type 5 routes as shown in Figure 10. This will increase routes in the BGP routing table depending on the number of hosts in the fabric. The default setting for EVPN Type 5 routes is disabled. Navigate to Blueprint > Staged > Fabric Settings. If this setting is disabled, then the routes shared will be the subnet prefix that is configured on the Virtual Network IP Subnet.

Figure 10: Fabric Setting to Enable Host Specific IP Routes A screenshot of a computer settings AI-generated content may be incorrect.

Committing Configuration on Spines

Once all the connectivity is configured in Apstra, commit the configuration to push the configuration on the Spine switches by navigating to Blueprints > { Blueprint name} > Uncommitted. For more information on committing the configuration, see Apstra guide. At this point any issues or errors should be cleared for the commit to be successful. However, the connectivity between Spine and SRX device will not be established until the SRX device is configured. This is discussed in next section of this JVDE.

After committing the configuration in Apstra, the below BGP configuration for the underlay and Overlay BGP peering with SRX is applied by Apstra on Spine switches. The configuration below shows the import and export of routes between Spine and the connected SRX device. In an EVPN‑VXLAN data center fabric, routing information is distributed to all leaf switches. This allows each leaf to learn every route and its associated next hop, enabling traffic forwarding toward other leaf switches or toward external destinations. Through the overlay BGP peering, EVPN Type 5 routes are shared by Spine with SRX firewall. As a result, the SRX learns all Type‑5 routes originating from the leaf switches.

By default, the behaviour of the EBGP multi-hop statement is to rewrite the next hop. But to prevent this, Apstra also applies the no-nexthop-change statement to prevent the Spine switches from changing the next-hop for routes received from the leaf switches. Since leaf switches learn the SRX firewall as the next-hop, traffic is steered towards the SRX firewall where appropriate security policies are applied for relevant Inter-VRF traffic as well as North-South traffic.

SRX Configuration

Multi-node high availability configuration

For Multinode high availability with two SRX4600 firewall devices, high availability configuration was set up as shown below on one of the nodes. The Inter-chassis link is configured for synchronization between the SRX firewall devices/nodes. The ICL is bound to the loopback interface, and an aggregated interface is used to ensure resiliency. The security zones are created for the ICL zone, and the policy are configured to allow communication between the nodes over the ICL link.

BGP peering between SRX and spine

After configuring the spines to connect to SRX devices. Next configure the underlay and overlay peering on SRX devices:

Next, configure the policy options to export/import routes for the VRF and define community.

Configure the routing instance with EVPN-VXLAN configuration and include the different route distinguishers. Then, configure the VRF or routing instance with import and export policies to allow inter-VRF communication.

A VRF group bundles multiple VRFs (routing instances) together so they can be governed by a single security policy.

Define the security zone

To define a security policy, it is essential to understand the concept of security zones within your network. The concept of zones is a fundamental building block for security architecture on Juniper devices. It is used to segment the network based on trust levels and enforces granular control on the flow of traffic between the different network segments.

A security zone on a Juniper SRX firewall is a logical grouping of one or more interfaces that share the same security requirements. Instead of applying security policies to individual interfaces, you can apply them to zones. This simplifies management and configuration. All interfaces must belong to a zone. By default, interfaces are placed in a "null zone" where all traffic is dropped. Traffic is allowed only when the interface is configured in a zone as shown below.

Define the security policy

In the configuration below, we created an intra zone policy, where traffic enters the SRX device from zone “untrust” and exits through zone “untrust” on the SRX device.

To verify that the firewalls are functional and the changes are configured, log into the console or CLI of each of the firewalls. From the shell, enter the following Junos OS CLI command:

The output of this command should be similar to the output below. It shows that BGP is established from each spine to SRX underlay and overlay.

If the output of the show bgp summary | no-more command resembles the screenshot above, a bare-bones network fabric is now complete with SRX integration.

Verify EVPN under each routing instance.

Verify the route leaking is in effect properly across the routing-instance.