Configure Vrfs - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Chapter 41
Configuring VRF-lite

Configure VRFs

To configure one or more VRFs, perform this task:
Command
Switch# configure terminal
Step 1
Switch(config)# ipv6 routing
Step 2
Switch(config)# vrf definition
Step 3
vrf-name
Switch(config-vrf)# address-family
Step 4
ipv4 | ipv6
Switch(config-vrf)# rd
Step 5
route-distinguisher
Switch(config-vrf)# route-target
Step 6
{
export
route-target-ext-community
Switch(config-vrf)# import map
Step 7
route-map
Switch(config-vrf)# interface
Step 8
interface-id
Switch(config-if)# ip vrf forwarding
Step 9
vrf-name
Switch(config-if)# end
Step 10
Switch# show ip vrf [brief | detail
Step 11
| interfaces] [vrf-name]
Switch# copy running-config
Step 12
startup-config
This example shows how to configure VRFs:
Switch(config)#
Switch(config-vrf)#
Switch(config-vrf)#
Switch(config-vrf-af)#
Switch(config-vrf)#
Switch(config-vrf)#
Switch(config-if)# vrf forwarding red
Switch(config-if)# ipv6 address 5000::72B/64
OL_28731-01
|
|
}
import
both
vrf definition red
rd 100:1
address family ipv6
route-target both 200:1
exit-address-family
interface Ethernet0/1
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
Purpose
Enters global configuration mode.
Enables IPv6 routing.
Names the VRF and enters VRF configuration mode.
(Optional) IPv4 by default. Configuration MUST for ipv6.
(Optional) Creates a VRF table by specifying a route
distinguisher. Enter either an Autonomous System number
and an arbitrary number (xxx:y) or an IP address and
arbitrary number (A.B.C.D:y).
(Optional) 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).
This command is effective only if BGP is running.
Note
(Optional) Associates a route map with the VRF.
Enters interface configuration mode and specify the Layer
3 interface to be associated with the VRF. The interface
can be a routed port or SVI.
Associates the VRF with the Layer 3 interface.
Returns to privileged EXEC mode.
Verifies the configuration. Displays information about the
configured VRFs.
(Optional) Saves your entries in the configuration file.
Configuring VRF-lite for IPv6
41-23

Advertisement

Table of Contents
loading

Table of Contents