Configuring Data Center Gateway
You can configure a QFX series device and an MX series router as a Data Center Gateway (DC-GW). DC-GW is an overlay role that is assigned to a QFX series switch or an MX series router to:
Extend private network
Extend public routable network
You can extend private network and extend public routable network with EVPN Type 5.
For more information on supported QFX series and MX series devices, see Contrail Networking Supported Hardware Platforms and Associated Roles And Node Profiles.
Configuring QFX Series Devices as Data Center Gateway
You can configure a QFX series device as a DC-GW. For more information on supported QFX series devices, see Contrail Networking Supported Hardware Platforms and Associated Roles And Node Profiles.
As an example, follow these steps to configure a QFX10000 device as a DC-GW.
- Onboard Brownfield Devices
- Add Bare Metal Server
- Create Tenant Virtual Network
- Add CSN Nodes
- Create Logical Routers
- Verification
Onboard Brownfield Devices
Follow the steps provided in the Onboard Brownfield Devices topic to onboard fabric devices and assign roles to devices.
See Table 1 for an example configuration of how you can assign roles to a device.
Device |
Physical Role |
Routing-Bridging Role |
---|---|---|
Spine devices QFX10000 |
spine |
CRB-Gateway, Route-Reflector, CRB-MCAST-Gateway, DC-Gateway |
Leaf devices |
leaf |
CRB-Access |
Ensure that you assign the DC-Gateway role to the QFX10000 device as shown in Table 1.
Add Bare Metal Server
Follow these steps to add an existing bare metal server (BMS) by using the Contrail Command UI:
Create Tenant Virtual Network
A virtual network is a collection of endpoints, such as virtual machine instances, that can communicate with each other. You can also connect virtual networks to your on-premises network. A virtual network in a EVPN VXLAN data center corresponds to a bridge domain for one tenant in a multi-tenant data center fabric.
Follow these steps to create a tenant virtual network from the Contrail Command user interface (UI).
Add CSN Nodes
Follow these steps to add CSN Nodes to the fabric by using the Contrail Command UI:
Navigate to the EVPN fabric you provisioned.
Create Logical Routers
A logical router replicates the functions of a physical router. It connects multiple virtual networks. A logical router performs a set of tasks that can be handled by a physical router, and contains multiple routing instances and routing tables.
Follow these steps to create a logical router (LR).
The router_interface object (Virtual Port) is created as part of the LR creation and VN extension to Spines workflow. While planning the IP address for spines, you must be aware that an extra one IP address is required for the router_interface object which gets created automatically.
Verification
EVPN type 5 configuration is pushed to QFX10000 switch as a DC-GW.
Configuring MX Series Routers as Data Center Gateway
You can configure an MX series router as a DC-GW. You must ensure that you assign the DC-Gateway routing-bridging role to the MX series router during device onboarding. For more information on supported MX series routers, see Contrail Networking Supported Hardware Platforms and Associated Roles And Node Profiles.
Follow these steps to configure an MX series router as a DC-GW.
Onboard Brownfield Devices
Follow the steps provided in the Onboard Brownfield Devices topic to onboard fabric devices and assign roles to devices.
Ensure that you also assign DC-Gateway routing-bridging role to the MX series router (spine device) while assigning device roles.
Create Virtual Network
After you have onboarded fabric devices and assigned roles to devices, you create a virtual network and extend it to the MX series router.
Follow these steps to create a virtual network and extend it to MX series router.
After you configure an MX series router as a DC-GW, you can enable DNAT. For more information on enabling DNAT in a DC-GW, see Destination Network Address Translation for Bare Metal Servers.