API Guide

bestpath med
Changes the best path MED attributes during MED comparison for path selection.
Syntax
bestpath med {confed | missing-as-worst}
Parameters
confed Compare MED among BGP confederation paths.
missing-as-worst Treat missing MED as the least preferred path.
Default Disabled
Command Mode ROUTER-BGP
Usage
Information
Before you apply this command, use the always-compare-med command. The no version of this
command resets the MED comparison influence.
NOTE: To configure these settings for a nondefault VRF instance, you must first enter the ROUTER-
CONFIG-VRF sub mode using the following commands:
1. Enter the ROUTER BGP mode using the router bgp as-number command.
2. From the ROUTER BGP mode, enter the ROUTER BGP VRF mode using the vrf vrf-name
command.
Example
OS10(conf-router-bgp-2)# bestpath med confed
Supported
Releases
10.3.0E or later
bestpath router-id
Ignores comparing router-id information for external paths during best-path selection.
Syntax
bestpath router-id {ignore}
Parameters ignore Enter to ignore AS path for best-path computation.
Default Enabled
Command Mode ROUTER-BGP
Usage
Information
If you do not receive the same router ID for multiple paths, select the path that you received first. If you
received the same router ID for multiple paths, ignore the path information. The no version of this
command resets the value to the default.
NOTE: To configure these settings for a nondefault VRF instance, first enter the ROUTER-CONFIG-
VRF sub mode using the following commands:
1. Enter the ROUTER BGP mode using the router bgp as-number command.
2. From the ROUTER BGP mode, enter ROUTER BGP VRF mode using the vrf vrf-name
command.
Example
OS10(conf-router-bgp-2)# bestpath router-id ignore
Supported
Releases
10.3.0E or later
clear ip bgp
Resets BGP IPv4 or IPv6 neighbor sessions.
Syntax
clear ip bgp [vrf vrf-name] {ipv4address | ipv6address | *} [ ipv4 | ipv6
| soft in]
Layer 3 621