DIGITAL GIGAswitch/Router User Reference Manual
133
BGP Configuration Examples
Figure 14. Sample BGP Configuration (MED Attribute)
Routers GSR4 and GSR6 inform router C1 about network 172.16.200.0/24 through
External BGP (EBGP). Router GSR6 announced the route with a MED of 10, whereas
router GSR4 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 GSR6,
which has a MED of 10.
Router GSR4 has the following CLI configuration:
Router GSR6 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 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
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
GSR4
GSR6