Apply OSPF Accept Policy Changes

Apply OSPF accept policy changes to allow 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.122      -        TRUE

Variable definitions

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

Table 1. Variable definitions

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.

Use the data in the following table to use the show ip ospf accept command output.

Table 2. Variable definitions

Variable

Value

ADV_RTR

Indicates the router advancing the packets.

MET_TYPE

Indicates the metric type for the routes to import into OSPF routing protocol, which passed the matching criteria configured in this route policy. Options include: local, internal, external, externaltype1, and externaltype2.

ENABLE

Indicates if the policy is enabled.

POLICY

Indicates the type of policy.