Mpls VPN Ospf Pe and Ce Support: Finding Feature Information
Mpls VPN Ospf Pe and Ce Support: Finding Feature Information
The MPLS VPN OSPF PE and CE Support feature allows service providers to configure Open Shortest Path
First (OSPF) between provider edge (PE) and customer edge (CE) devices in a Multiprotocol Label Switching
(MPLS) virtual private network ( VPN). This feature increases flexibility when devices exchange routing
information among sites because a separate router ID for each interface or subinterface is configured on a
PE device attached to multiple CE devices within a VPN. An MPLS VPN consists of a set of sites that are
interconnected by means of an MPLS provider core network. At each customer site, one or more CE devices
attach to one or more PE devices.
Note The Cisco implementation of OSPF in an MPLS VPN PE-CE environment is compliant with RFC 4576.
SUMMARY STEPS
1. enable
2. configure terminal
3. router ospf process-id [vrf vpn-name]
4. network ip-address wildcard-mask area area-id
5. address-family ipv4 [multicast | unicast | vrf vrf-name]
6. redistribute protocol | [process-id] | {level-1 | level-1-2 | level-2} [as-number] [metric metric-value]
[metric-type type-value] [match {internal | external 1 | external 2}] [tag tag-value] [route-map map-tag]
[subnets]
7. exit-address-family
8. end
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router ospf process-id [vrf vpn-name] Enables OSPF routing and enters router configuration mode.
• The process-id argument identifies the OSPF process.
Example:
• The vrf vpn-name keyword and argument identify a virtual
Device(config)# router ospf 1 vrf grc
private network (VPN). Create a separate OSPF process for each
virtual routing and forwarding (VRF) instance that will receive
VPN routes.
Step 4 network ip-address wildcard-mask area area-id Defines the interfaces on which OSPF runs and to defines the area ID
for those interfaces.
Example: • The ip-address argument identifies the IP address.
Device(config-router)# network 10.0.0.1
0.0.0.3 area 20 • The wildcard-mask argument identifies the IP-address-type mask
that includes “don’t care” bits.
• The area-id argument identifies the area that is to be associated
with the OSPF address range. It can be specified as either a
decimal value or an IP address. To associate areas with IP
subnets, specify a subnet address as the value of the area-id
argument.
Step 5 address-family ipv4 [multicast | unicast | vrf Specifies the IPv4 address family type and enters address family
vrf-name] configuration mode.
• The multicast keyword specifies IPv4 multicast address prefixes.
Example:
• The unicast keyword specifies IPv4 unicast address prefixes.
Device(config-router)# address-family
ipv4 vrf vpn1 • The vrf vrf-name keyword and argument specify the name of
the VRF to associate with subsequent IPv4 address family
configuration mode commands.
Step 6 redistribute protocol | [process-id] | {level-1 | Redistributes routes from one routing domain into another routing
level-1-2 | level-2} [as-number] [metric domain.
metric-value] [metric-type type-value] [match You may need to include several protocols to ensure that all interior
{internal | external 1 | external 2}] [tag Border Gateway Protocol (IBGP) routes are distributed into the VRF.
tag-value] [route-map map-tag] [subnets]
Example:
Device(config-router-af)# redistribute
rip metric 1 subnets
Example:
Device(config-router-af)#
exit-address-family
Example:
Device(config-router)# end
SUMMARY STEPS
1. enable
2. ping [protocol] {host-name | system-address}
3. trace [protocol] [destination]
4. show ip route [ip-address [mask] [longer-prefixes]] | protocol [process-id]] | [list [access-list-name |
access-list-number]
DETAILED STEPS
Step 1 enable
Enables privileged EXEC mode.
Step 4 show ip route [ip-address [mask] [longer-prefixes]] | protocol [process-id]] | [list [access-list-name | access-list-number]
Displays the current state of the routing table. Use the ip-address argument to verify that CE1 has a route to CE2. Verify
the routes learned by CE1. Make sure that the route for CE2 is listed.
Verifying That the Local and Remote CE Devices Are in the PE Routing Table
SUMMARY STEPS
1. enable
2. show ip route vrf vrf-name [prefix]
3. show ip cef vrf vrf-name [ip-prefix]
DETAILED STEPS
Step 1 enable
Enables privileged EXEC mode.
Additional References
Related Documents
MPLS and MPLS applications commands Cisco IOS Multiprotocol Label Switching Command
Reference
Standard/RFC Title
RFC 4576 Using a Link State Advertisement (LSA) Options Bit
to Prevent Looping in BGP/MPLS IP Virtual Private
Networks (VPNs)
Technical Assistance
Description Link
The Cisco Support and Documentation website http://www.cisco.com/cisco/web/support/index.html
provides online resources to download documentation,
software, and tools. Use these resources to install and
configure the software and to troubleshoot and resolve
technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support and
Documentation website requires a Cisco.com user ID
and password.