Configuring Vrfs - Cisco Catalyst 9500 series Configuration Manual

Cisco ios xe everest 16.6.x
Hide thumbs Also See for Catalyst 9500 series:
Table of Contents

Advertisement

Configuring IP Unicast Routing

Configuring VRFs

For complete syntax and usage information for the commands, see the switch command reference for this
release and the Cisco IOS Switching Services Command Reference.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
Command or Action
configure terminal
Example:
Device# configure terminal
ip routing
Example:
Device(config)# ip routing
ip vrf vrf-name
Example:
Device(config)# ip vrf vpn1
rd route-distinguisher
Example:
Device(config-vrf)# rd 100:2
route-target {export | import | both}
route-target-ext-community
Example:
Device(config-vrf)# route-target
both 100:2
import map route-map
Example:
Device(config-vrf)# import map
importmap1
interface interface-id
Example:
Device(config-vrf)# interface
gigabitethernet 1/0/1
ip vrf forwarding vrf-name
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
Purpose
Enters the global configuration mode.
Enables IP routing.
Names the VRF, and enter VRF configuration mode.
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)
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 should be the same as
the route-distinguisher entered in Step 4.
(Optional) Associates a route map with the VRF.
Specifies the Layer 3 interface to be associated with
the VRF, and enter interface configuration mode.
The interface can be a routed port or SVI.
Associates the VRF with the Layer 3 interface.
Configuring VRFs
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents