learn-default

Configures the device to learn default RIP routes, either globally or at the interface level.

Syntax

learn-default
ip rip learn-default
no learn-default device/slot/port
no ip rip learn-default device/slot/port

Command Default

By default, the device does not learn default RIP routes.

Modes

RIP router configuration mode or interface configuration mode.

Usage Guidelines

The no form of the command disables learning of default RIP routes.

The configurations at the global level and interface level are independent. Disabling or enabling one will not affect the other. When global level configuration is enabled, default routes are learned from all the interfaces. If global "learn-default " is not enabled but the interface-level "learn-default" is enabled, default routes are allowed from that rip interface. If "learn default" is not enabled for an interface, then the learned default routes for that interface are discarded.

Examples

The following example enables learning of default RIP routes globally.

device# configure terminal
device(config)# router rip
device(config-rip-router)# learn-default
The following command output shows RIP default routes are learned globally.
device(config)# show ip rip
  RIP Summary
  Default port 520
      Administrative distance is 120
      Updates every 30 seconds, expire after 180
      Holddown lasts 180 seconds, garbage collect after 120
      Last broadcast  28, Next Update 30
      Need trigger update  0, Next trigger broadcast 4
      Minimum update  interval 25, Max update Offset 5
      Split horizon is on; poison reverse is off
      Import metric 1 
      Default routes are accepted
      Prefix List, Inbound : Not set
      Prefix List, Outbound : Not set
      Route-map, Inbound : Not set
      Route-map, Outbound : Not set
      Redistribute: 
  No Neighbors are configured in RIP Neighbor Filter Table

The following example enables learning of default RIP routes on Ethernet interface 1/1/6.

device# configure terminal
device(config)# interface ethernet 1/1/6
device(config-if-e10000-1/1/6)# ip rip learn-default
The following command output shows that RIP default routes are learned for the interface.
device(config)# show ip rip interface ethernet 1/1/16
Interface e 1/1/16
 RIP Mode : Version2 Running: TRUE 
 Route summarization disabled
 Split horizon is on; poison reverse is off
 Default routes are accepted
 Metric-offset, Inbound 1
 Metric-offset, Outbound 0
 Prefix List, Inbound : Not set
      Prefix List, Outbound : Not set
 Route-map, Inbound : Not set
 Route-map, Outbound : Not set
 RIP Sent/Receive packet statistics:
    Sent : Request 0 Response 0
    Received : Total 0 Request 0 Response 0 UnRecognised 0
 RIP Error packet statistics:
    Rejected 0  Version 0 RespFormat 0 AddrFamily 0
    Metric 0 ReqFormat 0