34-9
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 34 Configuring MPLS, MPLS VPN, MPLS OAM, and EoMPLS
Configuring MPLS VPNs
Defining VPNs
Note
Before defining VPNs, enable MPLS on the switch (see
Enabling MPLS, page 34-8
).
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 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.
(Optional) Repeat Steps
3
to
5
to create additional VPN routing instances.
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
ip address ip address
Add the VRF route to the VRF routing table.
Step 12
end
Return to privileged EXEC mode.
Step 13
show ip vrf
Display the defined VRFs and interfaces.
Step 14
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 15
copy running-config startup-config
(Optional) Save your entries in the configuration file.