Prerequisites for Prefix Suppression Support for OSPFv3
Before you can use the mechanism to exclude IPv4 and IPv6 prefixes from LSAs, the OSPFv3 routing protocol must be configured.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This feature enables Open Shortest Path First version 3 (OSPFv3) to hide the IPv4 and IPv6 prefixes of connected networks from link-state advertisements (LSAs). When OSPFv3 is deployed in large networks, limiting the number of IPv4 and IPv6 prefixes that are carried in the OSPFv3 LSAs can speed up OSPFv3 convergence.
This feature can also be utilized to enhance the security of an OSPFv3 network by allowing the network administrator to prevent IP routing toward internal nodes.
Before you can use the mechanism to exclude IPv4 and IPv6 prefixes from LSAs, the OSPFv3 routing protocol must be configured.
Information About Prefix Suppression Support for OSPFv3
The OSPFv3 Prefix Suppression Support feature allows you to hide IPv4 and IPv6 prefixes that are configured on interfaces running OSPFv3.
In OSPFv3, addressing semantics have been removed from the OSPF protocol packets and the main LSA types, leaving a network-protocol-independent core. This means that Router-LSAs and network-LSAs no longer contain network addresses, but simply express topology information. The process of hiding prefixes is simpler in OSPFv3 and suppressed prefixes are simply removed from the intra-area-prefix-LSA. Prefixes are also propagated in OSPFv3 via link LSAs
The OSPFv3 Prefix Suppression feature provides a number of benefits.The exclusion of certain prefixes from adverstisements means that there is more memory available for LSA storage, bandwidth and buffers for LSA flooding, and CPU cycles for origination and flooding of LSAs and for SPF computation. Prefixes are also filtered from link LSAs. A device only filters locally configured prefixes, not prefixes learnt via link LSAs. In addition, security has been improved by reducing the possiblity of remote attack with the hiding of transit-only networks.
You can reduce OSPFv3 convergence time by configuring the OSPFv3 process on a device to prevent the advertisement of all IPv4 and IPv6 prefixes by using the prefix-suppression command in router configuration mode or address-family configuration mode.
Note |
Prefixes that are associated with loopbacks, secondary IP addresses, and passive interfaces are not suppressed by the router mode or the address-family configuration commands because typical network designs require prefixes to remain reachable. |
You can explicitly configure an OSPFv3 interface not to advertise its IP network to its neighbors by using the ipv6 ospf prefix-suppression command or the ospfv3 prefix-suppression command in interface configuration mode.
Note |
If you have globally suppressed IPv4 and IPv6 prefixes from connected IP networks by configuring the prefix-suppression router configuration command, the interface configuration command takes precedence over the router configuration command. |
How to Configure Prefix Suppression Support for OSPFv3
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
router ospfv3 process-id [vrf vpn-name ] Example:
|
Configures an OSPFv3 routing process and enters router configuration mode. |
||
Step 4 |
prefix-suppression Example:
|
Prevents OSPFv3 from advertising all IPv4 and IPv6 prefixes, except prefixes that are associated with loopbacks, secondary IP addresses, and passive interfaces. |
||
Step 5 |
end Example:
|
Returns to privileged EXEC mode. |
||
Step 6 |
show ospfv3 Example:
|
Displays general information about OSPFv3 routing processes.
|
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
router ospfv3 process-id [vrf vpn-name ] Example:
|
Configures an OSPFv3 routing process and enters router configuration mode. |
||
Step 4 |
address-family ipv6 unicast Example:
|
Enters IPv6 address family configuration mode for OSPFv3. |
||
Step 5 |
prefix-suppression Example:
|
Prevents OSPFv3 from advertising all IPv4 and IPv6 prefixes, except prefixes that are associated with loopbacks, secondary IP addresses, and passive interfaces. |
||
Step 6 |
end Example:
|
Returns to privileged EXEC mode. |
||
Step 7 |
show ospfv3 Example:
|
Displays general information about OSPFv3 routing processes.
|
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
interface type number Example:
|
Configures an interface type and enters interface configuration mode. |
||
Step 4 |
Do one of the following:
Example:
Example:
|
Prevents OSPFv3 from advertising IPv4 and IPv6 prefixes that belong to a specific interface, except those that are associated with secondary IP addresses.
|
||
Step 5 |
end Example:
|
Returns to privileged EXEC mode. |
||
Step 6 |
show ospfv3 interface Example:
|
Displays OSPFv3-related interface information.
|
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode.
|
Step 2 |
debug ospfv3 lsa-generation Example:
|
Displays informations about each OSPFv3 LSA that is generated. |
Step 3 |
debug condition interface interface-type interface-number [dlci dlci ] [vc {vci | vpi | vci }] Example:
|
Limits output for some debug commands on the basis of the interface or virtual circuit. |
Step 4 |
show debugging Example:
|
Displays information about the types of debugging that are enabled for your device. |
Step 5 |
show logging [slot slot-number | summary ] Example:
|
Displays the state of syslog and the contents of the standard system logging buffer. |
Configuration Examples for Prefix Suppression Support for OSPFv3
The following example shows how to configure prefix suppression support for OSPFv3 in router configuration mode:
router ospfv3 1
prefix-suppression
!
address-family ipv6 unicast
router-id 0.0.0.6
exit-address-family
The following example shows how to configure prefix suppression support for OSPFv3 in address-family configuration mode:
router ospfv3 1
!
address-family ipv6 unicast
router-id 10.0.0.6
prefix-suppression
exit-address-family
The following example shows how to configure prefix suppression support for OSPFv3 in interface configuration mode:
interface Ethernet0/0
ip address 10.0.0.1 255.255.255.0
ipv6 address 2001:201::201/64
ipv6 enable
ospfv3 prefix-suppression
ospfv3 1 ipv4 area 0
ospfv3 1 ipv6 area 0
end
Related Topic |
Document Title |
---|---|
Configuring OSPF |
“Configuring OSPF” |
OSPF commands |
|
Cisco IOS commands |
Description |
Link |
---|---|
The Cisco Support and Documentation website 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. |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
Prefix Suppression Support for OSPFv3 |
Cisco IOS XE Release 3.8S |
This feature enables Open Shortest Path First version 3 (OSPFv3) to hide the IPv4 and IPv6 prefixes of connected networks from link-state advertisements (LSAs). This feature can also be used to enhance the security of an OSPFv3 network by allowing the network administrator to prevent IP routing toward internal nodes. The following commands were introduced or modified:
|
Feature Name |
Releases |
Feature Information |
---|---|---|
Prefix Suppression Support for OSPFv3 |
Cisco IOS XE Release 17.4 |
This feature was introduced. |