cef adjacency route override rib
To enable the CEF prefer Routing Information Base (RIB) prefixes over Adjacency Information Base (AIB) prefixes in the Global configuration mode. To enable the CEF prefer AIB prefixes over RIB prefixes, use the no form of this command.
cef adjacency route override rib
no cef adjacency route override rib
Syntax Description
| route |
Enables adjacency route configuration . |
| override |
Sets override options for the adjacency routes. |
| rib |
Sets options for adjacency routes to override the RIB routes. |
Command Default
By default, CEF prefers RIB prefixes over AIB prefixes.
Command Modes
Global configuration
Command History
| Release | Modification |
|---|---|
| Release 6.0 |
This command was introduced. |
Usage Guidelines
CEF may prefer the L2 adjacency for forwarding over the RIB (routing) entry under the following conditions:
-
When there is no local ARP entry (yet).
ARP learning may result in the router creating a forwarding entry.
-
A forwarding entry of /32 (or /128 for IPv6) RIB routes are overridden when there is a covering connected or attached route.
If an interface has a larger subnet, and you want to redirect a /32 out of that subnet of a different interface via a static route.
This can be seen in scenarios of EVPN and or HSRP, or in bridge domains with a BVI and multiple EFP’s.
To deviate from the behavior of preferring a L2 adjacency for forwarding over a route entry, use the cef adjacency route override rib command.
Task ID
| Task ID | Operation |
|---|---|
| cef |
read, write |
Examples
The following example shows how to override the CEF adjacency route:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router# cef adjacency route override rib

Feedback