Shares routing data between transport and service segments by configuring BGP, OSPF, or EIGRP processes. This task details the steps for creating address families and applying route-maps to ensure seamless traffic flow across your network's logical boundaries.
Use this task to configure route redistribution between the global VRF and service VPNs using the CLI.
Follow these steps to configure route redistribution between global VRF and service VPNs:
Procedure
-
Enter the global configuration mode, and create a BGP routing process.
You can use the router eigrp, or router ospf to configure a routing process for a specific routing protocol. This example shows the syntax for BGP routing protocol. To know about the command syntax for various protocols, see the Cisco IOS XE SD-WAN Qualified Command Reference Guide.
Device# config-transaction Device(config)# router bgp autonomous-system-number -
Configure an IPv4 address family for service VPNs. This example shows the command syntax for the BGP and EIGRP protocols.
-
BGP protocol:
Device(config-router-af)# address-family ipv4 [unicast][vrf vrf-name] -
EIGRP protocol:
Device(config-router-af)# address-family ipv4 vrf vrf-number
-
-
Redistribute routes between the global VRF and service VPNs. Here, we're showing the syntaxes for the BGP, OSPF, and EIGRP protocols. .
-
Redistribute routes from service VPNs to the global VRF.
-
BGP protocol:
Device(config-router-af)# redistribute vrf vrf-name src_protocol [src_protocol_id] [route-map route-map-name] -
OSPF protocol:
Device(config-router-af)# redistribute vrf vrf-name src_protocol [src_protocol_id] [match {internal|external 1|external 2}] [metric {metric-value}] [subnets] [route-map route-map-name] -
EIGRP protocol:
Device(config-router-af)# redistribute vrf vrf-name src_protocol [src_protocol_id] [metric bandwidth-metric delay-metric reliability-metric effective-bandwidth-metric mtu-bytes] [route-map route-map-name]
-
-
Redistribute routes from the global VRF to service VPNs.
-
BGP protocol:
Device(config-router-af)# redistribute vrf global src_protocol [src_protocol_id] [route-map route-map-name] -
OSPF protocol:
Device(config-router-af)# redistribute vrf global src_protocol [src_protocol_id] [match {internal|external 1|external 2}] [subnets] [route-map route-map-name] -
EIGRP protocol:
Device(config-router-af)# redistribute vrf global src_protocol [src_protocol_id] [metric bandwidth-metric delay-metric reliability-metric effective-bandwidth-metric mtu-bytes]
-
The following is a sample configuration for configuring route redistribution between a global VRF and service VPN. In this example, VRF 103 and VRF 104 are the service VPNs. The example shows that BGP routes are redistributed from the global VRF to VRF 103, VRF 104.
config-transaction router bgp 100 address-family ipv4 vrf 103 redistribute vrf global bgp 100 route-map test2 ! address-family ipv4 vrf 104 redistribute vrf global bgp 100 route-map test2 !The following is a sample configuration for configuring the OSPF internal and external routes that are redistributed from the global VRF 65535 to the service VRF.
In this case, all OSPF routes are redistributed into the service VRF by using both the internal and external keywords.
config-transaction router ospf 1 redistribute vrf global ospf 65535 match internal external 1 external 2 subnets route-map ospf-route-mapThe following is a sample configuration for configuring the OSPF internal and external routes that are redistributed from service VPNs to the global VRF.
config-transaction router ospf 101 redistribute vrf 101 ospf 101 match internal external 1 external 2 metric 1 subnets route-map ospf-route-mapThe following is a sample configuration for configuring the BGP routes that are redistribution from a service VPN to the global VRF.
config-transaction router bgp 50000 address-family ipv4 unicast redistribute vrf 102 bgp 50000 route-map BGP-route-mapThe following is a sample configuration for configuring the BGP routes that are redistribution from the global VRF to a service VPN.
config-transaction router bgp 50000 address-family ipv4 vrf 102 redistribute vrf global bgp 50000The following is a sample configuration for configuring route redistribution of BGP, connected, OSPF, and static protocols from the global VRF to VRF 1 when configuring under EIGRP routing process.
config-transaction router eigrp 101 address-family ipv4 vrf 1 redistribute vrf global bgp 50000 metric 1000000 10 255 1 1500 redistribute vrf global connected metric 1000000 10 255 1 1500 redistribute vrf global ospf 65535 match internal external 1 external 2 metric 1000000 10 255 1 1500 redistribute vrf global static metric 1000000 10 255 1 1500 -
You have successfully configured route redistribution between the global VRF and service VPNs using the CLI.
What to do next
Verify the route redistribution.