User Manual

BGP Configuration Examples
226 Enterasys X-Pedition User Reference Manual
Figure 18 shows a sample BGP configuration where the MED attribute has been used.
Figure 18. Sample BGP Configuration (MED Attribute)
Routers X-Pedition4 and X-Pedition6 inform router C1 about network 172.16.200.0/24 through
External BGP (EBGP). Router X-Pedition6 announced the route with a MED of 10, whereas router
X-Pedition4 announces the route with a MED of 20. Of the two EBGP routes, router C1 chooses
the one with a smaller MED. Thus router C1 prefers the route from router X-Pedition6, which has a
MED of 10.
Router X-Pedition4 has the following CLI configuration:
Router X-Pedition6 has the following CLI configuration:
bgp create peer-group pg752to751 type external autonomous-system 64751
bgp add peer-host 10.200.12.15 group pg752to751
#
# Set the MED to be announced to peer group pg752to751
#
bgp set peer-group pg752to751 metric-out 20
bgp set peer-group pg752to751 med
bgp create peer-group pg752to751 type external autonomous-system 64751
bgp add peer-host 10.200.12.15 group pg752to751
bgp set peer-group pg752to751 metric-out 10
bgp set peer-group pg752to751 med
Physical Link
Legend:
Peering Relationship
Information Flow
C1
AS 64752
N1
10.200.12.15/24
10.200.12.4/24
10.200.12.0/24
10.200.12.6/24
AS 64751
172.16.200.4/24
172.16.200.6/24
X-Ped
X-Pe