R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference
215
bgp
Use bgp to enable BGP and enter the BGP view.
Use undo bgp to disable BGP.
Syntax
bgp as-number
undo bgp [ as-number ]
Default
BGP is not enabled.
Views
System view
Default command level
2: System level
Parameters
as-number: Specifies the local AS number from 1 to 4294967295.
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)
Use compare-different-as-med to enable the comparison of the MED for paths from peers in different
ASs.
Use undo compare-different-as-med to disable the comparison.
Syntax
compare-different-as-med
undo compare-different-as-med
Default
The comparison is disabled.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Usage guidelines
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.










