Users Guide

Table Of Contents
OS10(conf-vrf)# ipv6 route-import 1:1
OS10(conf-vrf)# ipv6 route-export 2:2 route-map export_ospf
Example - Leak only IPv4 static routes
In the following example, a route map exports only the static routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_static
OS10(config-route-map)# match source-protocol static
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ip route-export 1:1 route-map export_static
OS10(conf-vrf)# ip route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ip route-import 1:1
OS10(conf-vrf)# ip route-export 2:2 route-map export_static
Example - Leak only IPv6 static routes
In the following example, a route map exports only the static routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_static
OS10(config-route-map)# match source-protocol static
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ipv6 route-export 1:1 route-map export_static
OS10(conf-vrf)# ipv6 route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ipv6 route-import 1:1
OS10(conf-vrf)# ipv6 route-export 2:2 route-map export_static
Example - Leak only IPv4 connected routes
In the following example, a route map exports only the connected routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_connected
OS10(config-route-map)# match source-protocol connected
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ip route-export 1:1 route-map export_connected
OS10(conf-vrf)# ip route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ip route-import 1:1
OS10(conf-vrf)# ip route-export 2:2 route-map export_connected
Example - Leak only IPv6 connected routes
In the following example, a route map exports only the connected routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_connected
OS10(config-route-map)# match source-protocol connected
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ipv6 route-export 1:1 route-map export_connected
OS10(conf-vrf)# ipv6 route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
OS10(conf-vrf)# ipv6 route-import 1:1
OS10(conf-vrf)# ipv6 route-export 2:2 route-map export_connected
Example - Leak only IPv4 iBGP routes
In the following example, a route map exports only the iBGP routes from vrf1 and is received by vrf2.
OS10(config)# route-map export_iBGP
OS10(config-route-map)# match source-protocol bgp ibgp
OS10(config)# ip vrf vrf1
OS10(conf-vrf)# ip route-export 1:1 route-map export_iBGP
OS10(conf-vrf)# ip route-import 2:2
OS10(conf-vrf)# exit
OS10(config)# ip vrf vrf2
740
Layer 3