Creating Data Center Interconnect
These topics provide step-by-step instructions to create data center interconnect.
Before you start creating data center interconnect, ensure that:
Junos OS 18.1 or later is installed
Data center pods that Contrail Networking automates must have IP reachability
Logical routers and client virtual networks are connected
Logical routers extended to the devices in each fabric are assigned DCI-Gateway role
BGP sessions between loopback addresses are reachable
Underlay connectivity is enabled
There is a route reflector on each data center that Contrail Networking is peering to
Follow these steps to create a data center interconnect.
Onboard Brownfield Devices
Follow the steps provided in the Onboard Brownfield Devices topic to onboard devices and assign roles to devices.
See Table 1 for an example configuration of how you can assign roles to a device. When you configure a QFX series device as a data center gateway, ensure that you assign DC-Gateway role to the spine and leaf device.
Table 1: Assign Roles to Devices
CRB-Gateway, Route-Reflector, CRB-MCAST-Gateway, DCI-Gateway
Create Virtual Network
Follow the steps provided in the Create Virtual Network topic to create virtual networks.
Before you begin, ensure that you
Do not add network policy while creating the virtual network.
You can create the network policy and add it to the virtual network after you create the virtual network. For more information on creating a network policy, see Create Network Policy.
Have created a Network IPAM. For more information on creating a network IPAM, see Create Network IPAM.
After you have created the virtual network and the network policy, follow these steps to attach the network policy to the virtual network.
- Navigate to Overlay>Virtual Networks.
The All networks page is displayed.
- To select the virtual network you want to add the policy
to, select the check box next to the name of the virtual network.
Then click the Edit icon at the end of the row.
The Edit Virtual Network page is displayed.
- Select the network policy from the Network Policies list
and click Save.
The policy is now added and the All networks page is displayed.
Create Logical Routers
Follow the steps provided in the Create Logical Routers topic to configure logical routers.
While creating logical router, ensure that you
Select VXLAN Routing as the Logical Router Type.
Select the virtual network(s) from the Connected Networks list.
Select the physical router (Spine device) to which you want to extend the logical router.
Follow these steps to create a DCI of two different data centers by using the Contrail Command user interface (UI).
- Navigate to Overlay > Interconnects.
The Data Center Interconnect page is displayed.
- Click Create.
The Create Data Center Interconnect page is displayed.
- Enter a name for the DCI in the DCI name field.
- Select DCI mode.
You can select L2 or L3 DCI mode.
If you have selected L2 as the DCI mode, the Fabric field, Available Virtual Networks table, and Selected Virtual Networks table are displayed. See Figure 1.
Contrail Networking Release 2011 supports layer 2 DCI functionality.
Enter the following information.
- Select the fabrics that the data centers are a part of,
from the Fabric list.
The available virtual networks that are part of Contrail are listed in the Available Virtual Networks table.
- From the Available Virtual Networks table, select the
virtual networks you want included in the DCI by clicking the arrow
next to each listed virtual network.
The virtual networks that you selected are displayed in the Selected Virtual Networks table.
- Click Create to create the L2 DCI mode.
If you have selected L3 as the DCI mode, the Connections section is displayed. See Figure 2.
Enter the following information.
- Select a logical router from the Select logical router list.
- Select fabric from the Select fabric list.
- Select the physical router to which you want to extend the logical router to, from the Extend to Physical Router (RB Role = DCI-Gateway) list.
- Repeat steps a through c to create the next connection.
- Click Create to create the L3 DCI mode.
- Select the fabrics that the data centers are a part of, from the Fabric list.
The DCI is now created and is listed in the Data Center Interconnect page.