Procedure
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Device# configure terminal
Step 1
Enables IP routing mode.ip routing
Example:
Device(config)# ip routing
Step 2
Names the VRF, and enter VRF configuration
mode.
ip vrf vrf-name
Example:
Device(config)# ip vrf vpn1
Step 3
Creates a VRF table by specifying a route
distinguisher. Enter either an AS number and an
rd route-distinguisher
Example:
Device(config-vrf)# rd 100:2
Step 4
arbitrary number (xxx:y) or an IP address and an
arbitrary number (A.B.C.D:y)
Creates a list of import, export, or import and
export route target communities for the specified
route-target {export | import | both}
route-target-ext-community
Step 5
VRF. Enter either an AS system number and an
Example:
Device(config-vrf)# route-target
import 100:2
arbitrary number (xxx:y) or an IP address and an
arbitrary number (A.B.C.D:y). The
route-target-ext-community should be the same
as the route-distinguisher entered in Step 4.
(Optional) Associates a route map with the VRF.
import map route-map
Example:
Device(config-vrf)# import map
importmap1
Step 6
(Optional) Enables global multicast routing for
VRF table.
ip multicast-routing vrf vrf-name
distributed
Example:
Device(config-vrf)# ip
Step 7
multicast-routing vrf vpn1 distributed
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
171
Configuring IP Unicast Routing
Configuring Multicast VRFs