6-6
Default Level
2: System level
Parameters
as-number
: Specifies the local AS number from 1 to 4294967295.
Description
Use the
bgp
command to enable BGP and enter the BGP view.
Use the
undo bgp
command 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]
compare-different-as-med (BGP/BGP-VPN instance view)
Syntax
compare-different-as-med
undo compare-different-as-med
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the
compare-different-as-med
command to enable the comparison of the MED for paths from
peers in different ASs.
Use the
undo compare-different-as-med
command to disable the comparison.
The comparison is disabled by default.
If several paths to one destination are available, the path with the smallest MED is selected.
Do not use this command unless associated ASs adopt the same IGP protocol and routing selection
method.
Examples
# In BGP view, enable the comparison of the MED for paths from peers in different ASs.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] compare-different-as-med
# In BGP-VPN instance view, enable the comparison of the MED for paths from peers in different ASs
(The VPN has been created).
<Sysname> system-view