Information Technology Reference
In-Depth Information
Example 9-10
Configuration of Router A
interface loopback 0
ip address 1.1.1.1 255.255.255.255
!
router bgp 100
neighbor 1.2.1.1 remote-as 100
neighbor 1.2.1.1 update-source loopback 0
neighbor 2.1.1.1 remote-as 200
neighbor 2.1.1.1 ebgp-multihop
neighbor 2.1.1.1 update-source loopback 0
neighbor 2.1.1.1 route-map setmed out
!
route-map setmed permit 10
set metric 200
The configuration of Router B from Figure 9-7 is shown in Example 9-11. There are no
additional commands in Router B; therefore, advertised routes have a default metric of 0.
Example 9-11
Configuration of Router B
interface loopback 0
ip address 1.2.1.1 255.255.255.255
!
router bgp 100
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source loopback 0
neighbor 2.1.1.1 remote-as 200
neighbor 2.1.1.1 ebgp-multihop
neighbor 2.1.1.1 update-source loopback 0
The configuration of Router C from Figure 9-7 is shown in Example 9-12.
Example 9-12
Configuration of Router C
interface loopback 0
ip address 2.1.1.1 255.255.255.255
!
router bgp 200
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 ebgp-multihop
neighbor 1.1.1.1 update-source loopback 0
neighbor 1.2.1.1.remote-as 100
neighbor 1.2.1.1 ebgp-multihop
neighbor 1.2.1.1 update-source loopback 0
Cisco added two BGP configuration commands that might influence MED best path selection.
The first,
bgp deterministic-med
, ensures the comparison of MED values when choosing
Search WWH ::
Custom Search