< Free Open Study > |
3-3 bgp bestpath med confedSyntax Description: This command has no arguments. Purpose: If multiple BGP routes to the same destination exist, BGP selects the best path based on the route attributes in the following order:
This command allows the comparison of MEDs from BGP routers in a confederation. Cisco IOS Software Release: 12.0 Configuration Example: BGP MED Comparison in a ConfederationIn Figure 3-3, Router B is learning about network 150.150.150.0/24 from Routers A and D. Figure 3-3. Using MEDs with a BGP Confederation
Router A interface ethernet0 ip address 150.150.150.1 255.255.255.0 ! interface Serial0 ip address 193.16.0.2 255.255.255.252 ! router bgp 65530 bgp confederation identifier 1 bgp confederation peers 65531 network 150.150.150.0 mask 255.255.255.0 neighbor 193.16.0.1 remote-as 65531 ! ___________________________________________________________________________ Router B interface Ethernet1/0 ip address 172.16.0.1 255.255.255.252 ! interface Ethernet1/2 ip address 172.16.0.17 255.255.255.252 ! interface Serial2/0 ip address 193.16.0.1 255.255.255.252 clockrate 64000 ! router bgp 65531 bgp confederation identifier 1 bgp confederation peers 65530 65532 neighbor 172.16.0.2 remote-as 65531 neighbor 172.16.0.18 remote-as 65532 neighbor 193.16.0.2 remote-as 65530 ___________________________________________________________________________ Router D interface Ethernet1/0 ip address 172.16.0.14 255.255.255.252 ! interface Ethernet1/2 ip address 172.16.0.18 255.255.255.252 ! interface Ethernet1/3 ip address 150.150.150.2 255.255.255.0 ! interface Serial2/0 ip address 193.16.0.9 255.255.255.252 clockrate 64000 ! router bgp 65532 bgp confederation identifier 1 bgp confederation peers 65531 network 150.150.150.0 mask 255.255.255.0 neighbor 172.16.0.13 remote-as 65532 neighbor 172.16.0.17 remote-as 65531 Router B is receiving an advertisement for network 150.150.150.0/24 from Routers A and D: rtrB# show ip bgp BGP table version is 6, local router ID is 172.16.88.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 150.150.150.0/24 172.16.0.18 0 100 0 (65532) i * 193.16.0.2 0 100 0 (65530) i The best-path algorithm has selected the route from Router D as the best. In order to demonstrate the comparison of MED values in a confederation, set the MED for routes from Router D to 20: Router D router bgp 65532 neighbor 172.16.0.17 route-map setmed out ! route-map setmed permit 10 set metric 20 At this point, the MED values are not used in the best-path determination. Verify that the new MED value has been configured. rtrB# show ip bgp BGP table version is 6, local router ID is 172.16.88.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 150.150.150.0/24 172.16.0.18 20 100 0 (65532) i * 193.16.0.2 0 100 0 (65530) i Now modify the BGP configuration on Router B so that the MEDs from the confederation will be compared when determining the best path: Router B router bgp 2 bgp bestpath med confed VerificationVerify that the best-path algorithm has selected the route from Router A as the best due to a lower MED value: rtrB# show ip bgp BGP table version is 6, local router ID is 172.16.88.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * 150.150.150.0/24 172.16.0.18 20 100 0 (65532) i *> 193.16.0.2 0 100 0 (65530) i Troubleshooting
|
< Free Open Study > |