Disable Injection of Default Routes on a Controller

About this task

By default, a DvR Controller injects default routes into the DvR domain and all the Leaf nodes in that domain learn these routes with the next hop as the Controller that advertised them.

You can however disable default route injection for the GRT or a specific VRF on a Controller, to override this behavior.

Procedure

  1. Enter either Global Configuration mode or VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Disable default route injection for the GRT or a specific VRF, on the Controller.

    On the GRT:

    dvr controller inject-default-route-disable

    The default or the no operator enables injection of default routes for the GRT into the domain.

    On a VRF instance:

    dvr inject-default-route-disable

    The default or the no operator enables injection of default routes for a specific VRF into the domain.

  3. Verify the configuration.

    On the GRT:

    show dvr

    On a VRF instance:

    show dvr l3vsn

Example

Disable injection of default routes for the GRT on a Controller.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#dvr controller inject-default-route-disable
Switch:1(config)#show dvr

==================================================================
                    DVR Summary Info 
==================================================================
Domain ID                      : 5
Domain ISID                    : 16678219
Backbone ISID                  : 16678216
Role                           : Controller
My SYS ID                      : 00:bb:00:00:81:21
Operational State              : Up
GW MAC                         : 00:00:5e:00:01:25
InjectDefaultRouteDisable(GRT) : Enabled
VRRP on DVR I-SIDs             : Disabled
VRRP Priority                  : 100
VRRP Election                  :

Disable injection of default routes for a specific VRF on a Controller.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#router vrf vrf3
Switch:1(router-vrf)#dvr inject-default-route-disable
Switch:1(router-vrf)#show dvr l3vsn

======================================================================================
                                        DVR L3VSN
======================================================================================
VRF ID            L3VSN ISID        VRF NAME             INJECT-DEFAULT-ROUTE-DISABLE
--------------------------------------------------------------------------------------
1                 50                green                Disabled            
7                 1000003           vrf3                 Enabled             

2 out of 2 Total Num of DVR L3VSN displayed
---------------------------------------------------------------------------------------