Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
View
System view
Parameters
as-number: Specifies the local AS number from 1 to 65535.
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]
5.1.7 compare-different-as-med
Syntax
compare-different-as-med
undo compare-different-as-med
View
BGP view
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 there are several paths for one destination 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.
Chapter 5 BGP Configuration Commands
5-6