[c-nsp] [IOS XR] export to default-vrf
Catalin Petrescu
cpmarvin at gmail.com
Thu Nov 14 06:57:39 EST 2013
hi Oliver,
In this case it's a iBGP route but i've tested with connected static and
ospf and it's the same.
vrf RO_CASA
address-family ipv4 unicast
import route-target
1:1
!
export to default-vrf route-policy default_policy_pass_all
export route-target
1:1
!
RP/0/RSP1/CPU0:#sh route vrf TEST
.....
C 10.10.100.0/24 is directly connected, 21:18:10, BVI1
L 10.10.100.200/32 is directly connected, 21:18:10, BVI1
C 10.200.200.0/24 is directly connected, 00:01:40, TenGigE0/0/1/3.200
L 10.200.200.1/32 is directly connected, 00:01:40, TenGigE0/0/1/3.200
B 99.99.99.1/32 [200/10] via 11.11.11.11 (nexthop in vrf default),
21:15:11
L 192.168.1.1/32 is directly connected, 21:18:10, Loopback100
O 200.200.200.200/32 [110/2] via 10.200.200.200, 00:01:32,
TenGigE0/0/1/3.200
RP/0/RSP1/CPU0:# sh route 10.10.100.0
Thu Nov 14 06:54:56.034 EET
% Network not in table
RP/0/RSP1/CPU0:#sh route 200.200.200.200
Thu Nov 14 06:55:02.156 EET
% Network not in table
Thx,
Catalin
On Thu, Nov 14, 2013 at 11:07 AM, Oliver Boehmer (oboehmer) <
oboehmer at cisco.com> wrote:
>
> >Hi all,
> >
> >Did anyone get this to work on XR 4.3.2.
> >
> >vrf TEST
> > address-family ipv4 unicast
> > export to default-vrf route-policy default_policy_pass_all
> >
> >route-policy default_policy_pass_all
> > pass
> >end-policy
> >
> >[...]
> >RP/0/RSP1/CPU0:#sh route vrf TEST
> >....
> >B 99.99.99.1/32 [200/10] via 11.11.11.11 (nexthop in vrf default),
> >17:54:43
>
> is this an iBGP or an eBGP vrf route you are trying to export? Only
> external or locally originated routes are candidates to be exported from a
> VRF (anywhere, wether in global or into a different VRF), you need to do
> this on the originating PE. This rule is there to avoid loops, similar to
> standard BGP advertisement rule of only sending iBGP paths to external or
> RR-client peers.
>
> oli
>
>
More information about the cisco-nsp
mailing list