host1(config)#
ipv6 access-list everything-v6 permit any any
•
Configure an IPv4 access list to disallow the export of IPv4 prefixes to the global IPv4
RIB.
host1(config)#
access-list nothing-v4 deny ip any any
•
Configure a route map to permit global export of IPv6 VPN routes to the global IPv6
RIB.
host1(config)#
route-map export-only-v6
host1(config-route-map)#
match ip address nothing-v4
host1(config-route-map)#
match ipv6 address everything-v6
host1(config-route-map)#
set local-preference 444
host1(config-route-map)#
exit
host1(config)#
ip vrf foo
host1(config-route-vrf)#
global export map export-only-v6
If you need to export both IPv4 and IPv6 VPN routes from the IPv4/IPv6 VRF to the global
IPv4 BGP RIB and to the global IPv6 BGP RIB, then configure a route map that permits
both IPv4 and IPv6 prefixes.
Assigning an Interface to a VRF
You must assign an interface or subinterface to a VRF so that when the router receives
a packet at this interface, it routes the packet using the VRF’s forwarding table rather
the global forwarding table. You can assign the interface from outside the context of the
VRF or inside the context of the VRF.
To assign an interface to a VRF from outside the VRF context:
1.
Select the interface.
2.
Specify the VRF to associate with the interface.
host1:vr1(config)#
interface gigabitEthernet 1/0
host1:vr1(config-if)#
ip vrf forwarding vrfA
3.
Assign an IP address to the interface because forwarding the interface from the VR
to the VRF removes the existing IP configuration from the interface.
host1:vr1:vrfA(config-if)#
ip address 10.16.2.77 255.255.255.0
To assign an interface to a VRF from inside the VRF context:
1.
Select the interface.
2.
Enter the VRF context.
host1:vr1(config)#
virtual-router :vrfA
3.
Associate the interface.
host1:vr1:vrfA(config)#
interface gigabitEthernet 1/0
In this case, you do not have to reassign an IP address to the interface because you
did not use the
ip vrf forwarding
command.
ip vrf forwarding
Copyright © 2010, Juniper Networks, Inc.
434
JunosE 11.2.x BGP and MPLS Configuration Guide
Summary of Contents for JUNOSE 11.2.X BGP AND MPLS
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Page 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...