R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

295
Usage guidelines
This command enables BGP to compare the MEDs of routes received from confederation peers. However,
if a route from a confederation peer has an AS number that does not belong to the confederation, BGP
does not compare the route with other routes. For example, a confederation has three AS numbers
65006, 65007, and 65009. BGP receives three routes from different confederation peers. The AS_PATH
attributes of these routes are 65006 65009, 65007 65009, and 65008 65009, and the MED values of
them are 2, 3, and 1. Because the third route's AS_PATH attribute contains AS number 65008, which
does not belong to the confederation, BGP does not compare it with other routes. As a result, the first
route becomes the optimal route.
Examples
# In BGP IPv4 unicast address family view, enable MED comparison for routes received from
confederation peers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] bestroute med-confederation
# In BGP-VPN IPv4 unicast address family view, enable MED comparison for routes received from
confederation peers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] bestroute med-confederation
# In BGP IPv6 unicast address family view, enable MED comparison for routes received from
confederation peers.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv6 unicast
[Sysname-bgp-ipv6] bestroute med-confederation
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
Predefined user roles
network-admin