Logical Router Interconnect
Contrail Networking Release 2005 supports the logical router interconnect feature, which enables interconnection of logical routers deployed in the same fabric.
These topics enable you to understand the way logical router interconnect works and create a logical router interconnect.
Understanding Logical Router Interconnect
In Contrail Networking Release 2005, the logical router interconnect feature enables a logical router in a fabric to interconnect with other logical routers deployed in the same fabric. The logical router interconnect feature is supported by logical routers that are deployed on QFX Series fabric devices. You can create logical router interconnection by leaking routes from a source logical router to multiple destination logical routers. In releases prior to release 2005, you could not leak routes from one logical router to other logical routers that are deployed in the same fabric.
In order to leak routes, you must select one logical router as a source logical router and one or more logical routers as destination logical routers in the Contrail Command user interface (UI). A source logical router leaks routes to multiple destination routers according to the type of Export Source you choose in the Contrail Command UI.
In the Contrail Command UI, you can choose Routing Policy or Virtual Network as an Export Source.
If you select Routing Policy as the Export Source, you must ensure that the routing policy is configured for the QFX Series device, where the source logical router is deployed. Contrail Networking uses the routing policy terms to leak routes from a source logical router to all destination logical routers. If an incoming route matches the routing policy terms for a QFX Series device, that route is leaked from the source logical router to all destination logical routers deployed on the physical device.
If you select Virtual Network as the Export Source, you must select the virtual networks that are connected to the source logical router. Contrail Networking automatically creates a routing policy where the
route-filter
value is assigned according to the subnets of the selected virtual networks. If an incoming route matches the routing policy terms of this routing policy, the source logical router can leak routes to all the destination logical routers.
If the source logical router and all destination logical routers
are deployed on the same QFX Series device in a fabric, Contrail Networking
uses rib-groups
to leak routes from source
logical routers to all destination logical routers. rib-groups
import all routing policies as import-policy
and all routing instances as import-rib
.
If source logical router and destination logical routers are
deployed on different QFX Series devices in a fabric, Contrail Networking
uses vrf-export
routing policies on source
logical router and vrf-import
routing policies
on destination logical routers.
The logical router interconnect feature is not supported by MX Series devices.
The logical router interconnect feature does not support IPv6 routes.
See Also
Creating Logical Router Interconnect
Contrail Networking Release 2005 supports interconnection between logical routers deployed in the same fabric. Logical router interconnect is supported by logical routers deployed on QFX Series devices that exist in the same fabric. Before configuring logical router interconnect, you must create a fabric, deploy logical routers on the fabric devices, and create a routing policy for the fabric device, where the logical router is deployed.
- Create a Fabric and Deploy Logical Routers on the Fabric Devices
- Create a Routing Policy for QFX Series Devices
- Creating Logical Router Interconnect
Create a Fabric and Deploy Logical Routers on the Fabric Devices
Follow the procedure described in the Create a Fabric topic to create a fabric.
Follow the procedure described in the Create Logical Routers topic to create logical routers on fabric devices.
The logical router interconnect feature is supported by logical routers that are deployed on QFX Series devices.
Create a Routing Policy for QFX Series Devices
Create a routing policy that is used by the source logical router to leak routes to all the destination logical routers. You must ensure that the routing policy terms are supported by the QFX Series device of the logical router.
Field |
Guidelines |
||||
---|---|---|---|---|---|
Name |
Enter a name for the routing policy in the Name field. |
||||
Type |
Select Physical Device or vRouter. You can create a routing policy for the type of device you select. Select Physical Device to create a routing policy for a QFX Series device. |
||||
Term(s) |
|||||
From |
Select the matching conditions to be satisfied by the incoming routes. |
||||
Click Add Route filter. The Route Filter and Type fields are displayed. |
|||||
Route Filter |
Enter an IP prefix address as a route filter in the Route Filter field. |
||||
Type |
Select one or more types of prefix. If an incoming route satisfies the prefix match condition, the route is processed. |
||||
Then |
Select the actions to be performed on the matching routes. The supported actions and the values are:
|
You must assign Route Filter as a match condition in a routing policy, if you want to use the routing policy as an export source in logical router interconnect.
You don’t need to assign a value to the Community field. Contrail automatically scans the route target value of a source logical router and assigns the route target community member to the routing policy.
Creating Logical Router Interconnect
Follow these steps in the Contrail Command UI to enable logical router interconnect between logical routers deployed in the same fabric.
Field |
Action |
---|---|
Name |
Enter a name for the logical router interconnect. |
Description |
Enter a description for the logical router Interconnect. |
Select fabric |
Select a fabric to create logical router Interconnect among the logical routers deployed on the QFX Series devices in the fabric. |
Source |
|
Select logical router |
Select a logical router from the list to assign the logical router as a source logical router. |
Export Source |
Select Routing Policy to leak routes using a routing policy. Select Virtual Network to leak routes using the list of tenant virtual networks connected to the source logical router. |
Routing Policy |
If you select Routing Policy as Export Source, select the routing policy for the source logical router from the list. |
Available Virtual Networks |
If you select Virtual Network as Export Source, the Available Virtual Networks list displays the list of virtual networks connected to the source logical router. |
Selected Virtual Networks |
The Selected Virtual Networks list displays the virtual networks you can use to leak routes from source logical router to all the destination logical routers. |
Destination |
|
Select logical router |
Select a logical router from the list to assign the it as a destination logical router. |
Extend to Physical Router |
Select the QFX Series device from the Extend to Physical Router list, where the destination logical routers are deployed. The destination logical routers extends the leaked routes to this QFX Series device. |
Add |
Click Add to assign more destination logical routers (Optional). |
You cannot leak routes from destination logical routers to source logical router. Contrail Networking Release 2005 supports only unidirectional interconnection between source logical router and destination logical routers.
You cannot assign a primary logical router as a source logical router and assign a public logical router as a destination logical router.
You cannot assign a public logical router as a source logical router and assign a primary logical router as a destination logical router.
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.