distance (bgp-router-config)
Configures administrative distance parameters. The distance parameter is a rating of the trustworthiness of a route. The higher the distance, lower is the trust rating. The distance can be set for each type of route indicating its trust rating.
Supported in the following platforms:
Service Platforms — NX9500, NX9600
Syntax
distance [<IP/M> <1-255> <BGP-ACL-NAME>|bgp <1-255> <1-255> <1-255>]
Parameters
distance [<IP/M> <1-255> <BGP-ACL-NAME>|bgp <1-255> <1-255> <1-255>]
distance <IP/M> <1-255> <BGP-ACL-NAME> Configures the default administrative distance, specified by the <1-255> parameter, when the route‘s source IP address matches the specified IP prefix <IP/M> – Specify the IP source prefix and prefix length. <1-255> – Specify the distance from 1 - 255. <BGP-ACL-NAME> – Optional. Specify the BGP access list name. bgp <1-255> <1-255> <1-255> Configures the default administrative distance for different route types <1-255> – Configures the default administrative distance for routes external to this AS. Specify a value from 1 - 255. <1-255> – Configures the default administrative distance for routes internal to this AS. Specify a value from 1 - 255. <1-255> – Configures the default administrative distance for local routes. Specify a value from 1 - 255.
Examples
nx9500-6C8809 (config-profile testNX9000-router-bgp)#distance bgp 200 100 200
nx9500-6C8809 (config-profile testNX9000-router-bgp)#show context
router bgp
bgp enable
asn 1
aggregate-address 116.117.118.0/24 as-set summary-only
distance bgp 200 100 200
bgp neighbor 192.168.13.99
remote-as 199
maximum-prefix 9999 80 restart 50
bgp-route-limit num-routes 10
nx9500-6C8809 (config-profile testNX9000-router-bgp)#