Table Of Contents
OSPF Support for Multi-VRF on CE Routers
Information About OSPF Support for Multi-VRF on CE Routers
Benefits of OSPF Multi-VRF Support
How to Configure OSPF Support for Multi-VRF on CE Routers
Configuring the Multi-VRF Capability for OSPF Routing
Verifying the OSPF Multi-VRF Configuration
Configuration Examples for OSPF Support for Multi-VRF on CE Routers
Configuring the Multi-VRF Capability Example
Verifying the OSPF Multi-VRF Configuration Example
OSPF Support for Multi-VRF on CE Routers
The OSPF Support for Multi-VRF on CE Routers feature provides the capability of suppressing provider edge (PE) checks that are needed to prevent loops when the PE is performing a mutual redistribution of packets between the OSPF and BGP protocols. When VPN routing and forward (VRF) is used on a router that is not a PE (that is, one that is not running BGP), the checks can be turned off to allow for correct population of the VRF routing table with routes to IP prefixes.
OSPF multi-VRF allows you to split the router into multiple virtual routers, where each router contains its own set of interfaces, routing table, and forwarding table.
Feature Specifications for the OSPF Support for Multi-VRF on CE Routers Feature
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that are supported on specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
To access Cisco Feature Navigator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions found at this URL:
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Availability of Cisco IOS Software Images
Platform support for particular Cisco IOS software releases is dependent on the availability of the software images for those platforms. Software images for some platforms may be deferred, delayed, or changed without prior notice. For updated information about platform support and availability of software images for each Cisco IOS software release, refer to the online release notes or, if supported, Cisco Feature Navigator.
Contents
•
Information About OSPF Support for Multi-VRF on CE Routers
•
How to Configure OSPF Support for Multi-VRF on CE Routers
•
Configuration Examples for OSPF Support for Multi-VRF on CE Routers
Information About OSPF Support for Multi-VRF on CE Routers
Before you configure OSPF support for multi-VRF on CE routers, you should understand the following concepts:
•
Benefits of OSPF Multi-VRF Support
Benefits of OSPF Multi-VRF Support
The OSPF Support for Multi-VRF on CE Routers feature provides the capability of suppressing provider edge (PE) checks that are needed to prevent loops when the PE is performing a mutual redistribution of packets between the OSPF and BGP protocols. When VPN routing and forward (VRF) is used on a router that is not a PE (that is, one that is not running BGP), the checks can be turned off to allow for correct population of the VRF routing table with routes to IP prefixes.
OSPF multi-VRF allows you to split the router into multiple virtual routers, where each router contains its own set of interfaces, routing table, and forwarding table. OSPF multi-VRF gives you the ability to segment parts of your network and configure those segments to perform specific functions, yet still maintain correct routing information.
How to Configure OSPF Support for Multi-VRF on CE Routers
This section contains the following procedures:
•
Configuring the Multi-VRF Capability for OSPF Routing
•
Verifying the OSPF Multi-VRF Configuration
Configuring the Multi-VRF Capability for OSPF Routing
This section describes how to configure the multi-VRF for OSPF routing. This task assumes that you have already configured a VRF. For a complete VRF configuration example, see the "Configuring the Multi-VRF Capability Example" section.
Prerequisites
CEF must be running on the network.
SUMMARY STEPS
1.
enable
2.
show ip ospf [process-id]
3.
configure terminal
4.
router ospf process-id [vrf vpn-name]
5.
capability vrf-lite
DETAILED STEPS
Verifying the OSPF Multi-VRF Configuration
No specific debug or show commands are associated with this feature. You can verify the success of the OSPF multi-VRF configuration by using the show ip ospf [process-id] command to verify that the router is not connected to the VPN backbone.
This output from the show ip ospf process command indicates that the PE router is currently connected to the backbone.
Router# show ip ospf 12Routing Process "ospf 12" with ID 151.1.1.1 and Domain ID 0.0.0.12Supports only single TOS(TOS0) routesSupports opaque LSAConnected to MPLS VPN SuperbackboneSPF schedule delay 5 secs, Hold time between two SPFs 10 secsMinimum LSA interval 5 secs. Minimum LSA arrival 1 secsNumber of external LSA 0. Checksum Sum 0x0Number of opaque AS LSA 0. Checksum Sum 0x0Number of DCbitless external and opaque AS LSA 0Number of DoNotAge external and opaque AS LSA 0Number of areas in this router is 0. 0 normal 0 stub 0 nssaExternal flood list length 0When the OSPF VRF process is configured with the capability vrf-lite command under the router ospf command, the "Connected to MPLS VPN Superbackbone" line will not be present in the display.
Configuration Examples for OSPF Support for Multi-VRF on CE Routers
This section provides the following configuration examples:
•
Configuring the Multi-VRF Capability Example
•
Verifying the OSPF Multi-VRF Configuration Example
Configuring the Multi-VRF Capability Example
This example shows a basic OSPF network with a VRF named grc configured. The capability vrf-lite command is entered to suppress the PE checks.
!ip cefip vrf grcrd 1:1interface Serial2/0ip vrf forwarding grcip address 192.168.1.1 255.255.255.252!interface Serial3/0ip vrf forwarding grcip address 192.168.2.1 255.255.255.252...!router ospf 9000 vrf grclog-adjacency-changescapability vrf-literedistribute rip metric 1 subnetsnetwork 192.168.1.0 0.0.0.255 area 0!router ripaddress-family ipv4 vrf grcredistribute ospf 9000 vrf grcnetwork network 192.168.2.0no auto-summaryendRouter# show ip route vrf grcRouting Table: grcCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setO IA 192.168.192.0/24 [110/138] via 192.168.1.13, 00:06:08, Serial2/0[110/138] via 192.168.1.9, 00:06:08, Serial3/0O IA 192.168.242.0/24 [110/74] via 192.168.1.13, 00:06:08, Serial2/0O IA 192.168.193.0/24 [110/148] via 192.168.1.13, 00:06:08, Serial2/0[110/148] via 192.168.1.9, 00:06:08, Serial3/0O IA 192.168.128.0/24 [110/74] via 192.168.1.9, 00:06:08, Serial3/0O IA 192.168.129.0/24 [110/84] via 192.168.1.9, 00:06:08, Serial3/0O IA 192.168.130.0/24 [110/84] via 192.168.1.9, 00:06:08, Serial3/0172.16.0.0/24 is subnetted, 2 subnetsO E2 172.16.9.0 [110/5] via 192.168.1.13, 00:06:08, Serial2/0O E2 172.16.10.0 [110/5] via 192.168.1.13, 00:06:08, Serial2/0O IA 192.168.131.0/24 [110/94] via 192.168.1.9, 00:06:20, Serial3/0192.168.1.0/30 is subnetted, 4 subnetsC 192.168.1.8 is directly connected, Serial3/0C 192.168.1.12 is directly connected, Serial2/0O 192.168.1.0 [110/128] via 192.168.1.9, 00:06:20, Serial3/0O 192.168.1.4 [110/128] via 192.168.1.13, 00:06:20, Serial2/0Verifying the OSPF Multi-VRF Configuration Example
This example illustrates the output display from the show ip ospf process command after OSPF multi-VRF has been configured on the router.
Router# show ip ospf database external 172.16.0.0 selfOSPF Router with ID (10.0.0.1) (Process ID 100)Type-5 AS External Link StatesLS age: 175Options: (No TOS-capability, DC)LS Type: AS External LinkLink State ID: 172.16.0.0 (External Network Number )Advertising Router: 10.0.0.1LS Seq Number: 80000001Checksum: 0xEA9ELength: 36Network Mask: /8Metric Type: 2 (Larger than any link state path)MTID: 0Metric: 20Forward Address: 0.0.0.0External Route Tag: 0Additional References
For additional information related to OSPF support for multi-VRF on CE routers, refer to the following references:
Related Documents
Standards
Standards1 TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
—
1 Not all supported standards are listed.
MIBs
MIBs1 MIBs LinkNo new or modified MIBs are supported by this feature, and support for existing MIBs has not been modified by this feature.
To obtain lists of supported MIBs by platform and Cisco IOS release, and to download MIB modules, go to the Cisco MIB website on Cisco.com at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
1 Not all supported MIBs are listed.
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
http://tools.cisco.com/ITDIT/MIBS/servlet/index
If Cisco MIB Locator does not support the MIB information that you need, you can also obtain a list of supported MIBs and download MIBs from the Cisco MIBs page at the following URL:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
To access Cisco MIB Locator, you must have an account on Cisco.com. If you have forgotten or lost your account information, send a blank e-mail to cco-locksmith@cisco.com. An automatic check will verify that your e-mail address is registered with Cisco.com. If the check is successful, account details with a new random password will be e-mailed to you. Qualified users can establish an account on Cisco.com by following the directions found at this URL:
RFCs
RFCs1 TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
—
1 Not all supported RFCs are listed.
Technical Assistance
Command Reference
This section documents the new capability vrf-lite command. All other commands used with this feature are documented in the Cisco IOS Release 12.2 command reference publications.
capability vrf-lite
To suppress the Provider Edge (PE) specific checks on a router when the OSPF process is associated with the VRF, use the capability vrf-lite command in router configuration mode. To restore the checks, use the no form of this command.
capability vrf-lite
no capability vrf-lite
Syntax Description
This command has no arguments or keywords.
Defaults
Disabled. PE specific checks are performed if the process is associated with VRF command modes.
Command Modes
Router configuration
Command History
Usage Guidelines
This command works only if the OSPF process is associated with the VRF.
When the OSPF process is associated with the VRF, several checks are performed when link-state advertisements (LSAs) are received. PE checks are needed to prevent loops when the PE is performing a mutual redistribution between OSPF and BGP interfaces.
In some situations, performing PE checks might not be desirable. The concept of VRFs can be used on a router that is not a PE router (that is, a router that is not running BGP). With the capability vrf-lite command, the checks can be turned off to allow correct population of the VRF routing table with routes to IP prefixes.
Examples
This example shows a router configured with multi-VRF:router ospf 100 vrf grccapability vrf-liteGlossary
CE Router—Customer Edge router, an edge router in the C network, defined as a C router which attaches directly to a P router.
C Network—Customer (enterprise or service provider) network.
C Router—Customer router, a router in the C network.
LSA—link-state advertisement. Broadcast packet used by link-state protocols that contains information about neighbors and path costs. LSAs are used by the receiving routers to maintain their routing tables.
PE Router—Provider Edge router, an edge router in the P network, defined as a P router which attaches directly to a C router.
P Network—MPLS-capable service provider core network. P routers perform MPLS.
P Router—Provider router, a router in the P network.
