30-8
Catalyst 3750 Metro Switch Software Configuration Guide
78-15870-01
Chapter 30 Configuring MPLS and EoMPLS
Configuring MPLS VPNs
Defining VPNs
Beginning in privileged EXEC mode, follow these steps to define VPN routing instances on the PE
router:
Use the no ip vrf vrf-name global configuration command to delete a VRF and remove all interfaces
from it. Use the no ip vrf forwarding interface configuration command to remove an interface from a
VRF.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
ip routing Enable IP routing (required only if routing is disabled).
Step 3
ip vrf vrf-name Enter VRF configuration mode, and define the VPN routing instance by
assigning a VRF name.
Step 4
rd route-distinguisher Create 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 5
route-target {export | import | both}
route-target-ext-community
Create 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.
Step 6
import map route-map (Optional) Associate the specified import route map with the VRF.
Step 7
export map route-map (Optional) Associate the specified export route map with the VRF.
Step 8
exit Return to global configuration mode.
Step 9
interface interface-id Enter interface configuration mode, and specify the Layer 3 ES or VLAN
interface to be associated with the VRF.
Step 10
ip vrf forwarding vrf-name Associate the Layer 3 interface with the VRF.
Step 11
end Return to privileged EXEC mode.
Step 12
show ip vrf Display the defined VRFs and interfaces.
Step 13
show ip route vrf
show ip cef vrf vrf-name
Display the IP routing table for a VRF.
Display the CEF forwarding table associated with a VRF.
Step 14
copy running-config startup-config (Optional) Save your entries in the configuration file.