Apply OSPF Accept Policy Changes

Apply OSPF accept policy changes to enable the configuration changes in the policy to take effect in an OSPF Accept context (and to prevent the device from attempting to apply the changes one by one after each configuration change).

About this task

Important

Important

Changing OSPF Accept contexts is a process-oriented operation that can affect system performance and network accessibility while you perform the procedures. If you want to change the default preferences for an OSPF Accept or a prefix-list configuration (as opposed to the default preference), do so before enabling the protocols.

Note

Note

The route policies treat permit and deny rules differently for inbound and outbound traffic.
  • For an in-policy (RIP, BGP) or an accept policy (OSPF) using a route-map, if a particular route is not explicitly denied in the accept policy or in-policy with the route-map, then the route is implicitly allowed.

  • For an out-policy (RIP, BGP) or a redistribute policy (RIP, OSPF, BGP) using a route-map, even if a particular route is not explicitly allowed in the redistribution policy or out-policy with the route-map, then the route is implicitly denied.

  • In order to permit or deny only explicit routes, configure a policy with additional sequences, where, the last sequence permits all routes that are not explicitly permitted or denied.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Apply an OSPF accept policy change:

    ip ospf apply accept [vrf WORD<1-16>]

  3. Display information about the configured OSPF entries:

    show ip ospf accept [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

Apply the OSPF accept policy and confirm the configuration:

Switch:1>enable
Switch:1#ip ospf apply accept
Switch:1#show ip ospf accept
================================================================================
                           Ospf Accept - GlobalRouter
================================================================================
ADV_RTR         MET_TYPE ENABLE POLICY
--------------------------------------------------------------------------------
192.0.2.11      type1    true   test1

Variable Definitions

Use the data in the following table to use the ip ospf apply accept adv-rtr command.

Variable

Value

adv-rtr

Commits entered changes. Issue this command after you modify a policy configuration that affects an OSPF accept policy.

vrf WORD<1–16>

Specifies the name of the VRF.