130
Parameters
None
Description
Use bestroute med-confederation to enable the comparison of the MED for paths from confederation
peers during best route selection.
Use undo bestroute med-confederation to disable the comparison.
The comparison is not enabled by default.
The system only compares MED values for paths from peers within the confederation. Paths from external
ASs are advertised throughout the confederation without MED comparison.
Examples
# In BGP view, enable the comparison of the MED for paths from peers within the confederation.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute med-confederation
# In BGP-VPN instance view, enable the comparison of the MED for paths from peers within the
confederation. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] bestroute med-confederation
bgp
Syntax
bgp as-number
undo bgp [ as-number ]
View
System view
Default level
2: System level
Parameters
as-number: Specifies the local AS number from 1 to 4294967295.
Description
Use bgp to enable BGP and enter the BGP view.
Use undo bgp to disable BGP.
By default, BGP is not enabled.
Examples
# Enable BGP and set local AS number to 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp]