36-11
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 36 Configuring VRF-lite Configuring Multicast VRFs
Configuring Multicast VRFs
To configure multicast within a VRF table, perform this task:
For more information about configuring a multicast within a Multi-VRF CE, see the
Cisco IOS IP Multicast Configuration Guide, Release 12.4.
Use the no ip vrf vrf-name global configuration command to delete a VRF and to remove all interfaces
from it. Use the no ip vrf forwarding interface configuration command to remove an interface from the
VRF.
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# ip routing Enables IP routing.
Step 3 Switch(config)# ip vrf vrf-name Names the VRF and enters VRF configuration mode.
Step 4 Switch(config-vrf)# ip
multicast-routing vrf vrf-name (Optional) Enables global multicast routing for VRF table.
Step 5 Switch(config-vrf)# rd
route-distinguisher Creates a VRF table by specifying a route distinguisher.
Enter either an AS number and an arbitrary number
(xxx:y) or an IP address and arbitrary number
(A.B.C.D:y).
Step 6 Switch(config-vrf)# route-target
{export | import | both}
route-target-ext-community
Creates a list of import, export, or import and export route
target communities for the specified VRF. Enter either an
AS system number and an arbitrary number (xxx:y) or an
IP address and an arbitrary number (A.B.C.D:y).
The route-target-ext-community value should be the same
as the route-distinguisher value entered in Step 4.
Step 7 Switch(config-vrf)# import map
route-map (Optional) Associates a route map with the VRF.
Step 8 Switch(config-vrf)# interface
interface-id Enters interface configuration mode and specifies the
Layer 3 interface to be associated with the VRF. The
interface can be a routed port or a SVI.
Step 9 Switch(config-if)# ip vrf forwarding
vrf-name Associates the VRF with the Layer 3 interface.
Step 10 Switch(config-if)# ip address
ip-address mask Configures IP address for the Layer 3 interface.
Step 11 Switch(config-if)# ip pim
[sparse-dense mode | dense-mode |
sparse-mode]
Enables PIM on the VRF-associated Layer 3 interface.
Step 12 Switch(config-if)# end Returns to privileged EXEC mode.
Step 13 Switch# show ip vrf [brief | detail |
interfaces] [vrf-name]Verifies the configuration. Display information about the
configured VRFs.
Step 14 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.