Could you tell me what is the differences between the following Cisco XR commands: distance vs distance ospf/bgp ? I know the basics regarding administrative distance, that sets the priority for the protocol. If administrative distance smaller - higher prio. There are also some default adm distance values for protocols like- static route: 1, ospf: 90 etc... It could be also changed manually from 1-255 value.
That's clear for me. But I don't understand the differences between these commands:
From cisco spec:
To define an administrative distance, use the distance command in the appropriate mode.
To define Open Shortest Path First (OSPF) route administrative distances based on route type, use the distance ospf command