distance bgp
Use this command to set BGP administrative distances. The administrative distance rates the trustworthiness of a routing information source. A higher distance value means a lower trust rating. For example, an administrative distance of 255 means that the routing information source cannot be trusted and should be ignored.
Use the no form of this command to restore the default value (110).
Command Syntax
distance <1-255>
distance <1-255> A.B.C.D/M (WORD|)
no distance <1-255>
no distance <1-255> A.B.C.D/M (WORD|)
Parameters
<1-255>
Distance for BGP routes
A.B.C.D/M
Distance for routes to prefixes whose nexthop matches this address.
WORD
Name of access list to apply to route updates.
Command Mode
Router BGP mode
Defaults
None
Applicability
This command was introduced in OcNOS version 6.0.0.
Examples
#configure terminal
(config)#router bgp 100
(config-router)#distance 100 10.10.10.10/30
Last modified date: 07-13-2023