The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Routing Information Protocol (RIP) commands that begin with D.
To generate a default route into the Routing Information Protocol (RIP), use the default-information originate command. To disable this feature, use the no form of this command.
default-information originate [always] [route-map map-name]
no default-information originate
Disabled
Router address-family configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This example shows how to originate a default route (0.0.0.0/0) to all routes that pass the Condition route map:
switch(config)# router rip Enterprise
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# default-information originate route-map Condition
switch(config-router-af)#
To set default metric values for the Routing Information Protocol (RIP), use the default-metric command in router address-family configuration mode. To return to the default state, use the no form of this command.
default-metric value
no default-metric [value]
value |
Default metric value. The range is from 1 to 15. |
value: 1
Router address-family configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the default-metric command with the redistribute command to use the same metric value for all redistributed routes. A default metric helps to solve the problem of redistributing routes with incompatible metrics. Whenever external metrics do not convert to RIP metrics, you can use a default metric to provide a reasonable substitute to the external metric and enable the redistribution to proceed.
This example shows how to advertise Open Shortest Path First (OSPF) routes using RIP and assign the OSPF-derived routes with a RIP metric of 10:
switch(config)# router rip Enterprise
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# default-metric 10
switch(config-router-af)# redistribute ospf 109 route-map FilterOSPF
switch(config-router-af)#
To define the administrative distance assigned to routes discovered by the Routing Information Protocol (RIP), use the distance command. To remove the distance and restore the system to its default condition, use the no form of this command.
distance admin-distance
no distance admin-distance
admin-distance |
Administrative distance to be assigned to RIP routes. The range is from 1 to 255. |
admin-distance: 120
Router address-family configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the distance command to change the preference of RIP routes over other protocol routes. Numerically, an administrative distance is an integer from 1 to 255. In general, a higher value indicates a lower trust rating. An administrative distance of 255 means that the routing information source cannot be trusted at all and should be ignored.
This example shows how to set the administrative distance for RIP:
switch(config)# router rip Enterprise
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# distance 85
switch(config-router-af)#