BGP Attribute Local Preference
hapus dulu konfigurasi BGP attribute as-path di R2
untuk IP Address masih sama dengan konfigurasi sebelumnya
konfigurasi EIGRP dan BGP di R1
router eigrp 10
network 1.1.1.1 0.0.0.0
network 12.12.12.0 0.0.0.255
!
router bgp 100
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
!
konfigurasi EIGRP dn BGP Attribute Local Preference di Router 2
router eigrp 10
network 2.2.2.2 0.0.0.0
network 12.12.12.0 0.0.0.255
network 23.23.23.0 0.0.0.255
network 25.25.25.0 0.0.0.255
!
router bgp 100
bgp log-neighbor-changes
network 22.22.22.22 mask 255.255.255.255
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 route-reflector-client
neighbor 1.1.1.1 next-hop-self
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 update-source Loopback0
neighbor 5.5.5.5 route-reflector-client
neighbor 5.5.5.5 next-hop-self
neighbor 5.5.5.5 route-map local_preference in
neighbor 23.23.23.2 remote-as 200
neighbor 23.23.23.2 next-hop-self
!
Konfigurasi AS-Path di Route Map AS
route-map local_preference permit 10
set local-preference 200
Konfigurasi EIGRP dan BGP di Router 3
router eigrp 10
network 3.3.3.3 0.0.0.0
network 23.23.23.0 0.0.0.255
network 34.34.34.0 0.0.0.255
network 36.36.36.0 0.0.0.255
!
router bgp 200
bgp log-neighbor-changes
network 33.33.33.33 mask 255.255.255.255
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 route-reflector-client
neighbor 4.4.4.4 next-hop-self
neighbor 6.6.6.6 remote-as 200
neighbor 6.6.6.6 update-source Loopback0
neighbor 6.6.6.6 route-reflector-client
neighbor 6.6.6.6 next-hop-self
neighbor 23.23.23.1 remote-as 100
neighbor 23.23.23.1 next-hop-self
!
Konfigurasi EIGRP dan BGP di Router 4
router eigrp 10
network 4.4.4.4 0.0.0.0
network 34.34.34.0 0.0.0.255
!
router bgp 200
bgp log-neighbor-changes
network 44.44.44.44 mask 255.255.255.255
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
!
Konfigurasi EIGRP dan BGP di Router 5
router eigrp 10
network 5.5.5.5 0.0.0.0
network 25.25.25.0 0.0.0.255
network 56.56.56.0 0.0.0.255
!
router bgp 100
bgp log-neighbor-changes
network 55.55.55.55 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 next-hop-self
neighbor 56.56.56.2 remote-as 200
neighbor 56.56.56.2 next-hop-self
!
Konfigurasi EIGRP dan BGP di Router 6
router eigrp 10
network 6.6.6.6 0.0.0.0
network 36.36.36.0 0.0.0.255
network 56.56.56.0 0.0.0.255
!
router bgp 200
bgp log-neighbor-changes
network 66.66.66.66 mask 255.255.255.255
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 56.56.56.1 remote-as 100
neighbor 56.56.56.1 next-hop-self
!
Verifikasi Routing BGP di R2
R2(config-router)#do sh ip bgp
BGP table version is 7, local router ID is 22.22.22.22
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*>i 11.11.11.11/32 1.1.1.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*>i 33.33.33.33/32 5.5.5.5 0 200 0 200 i
* 23.23.23.2 0 0 200 i
*>i 44.44.44.44/32 5.5.5.5 0 200 0 200 i
* 23.23.23.2 0 200 i
*>i 55.55.55.55/32 5.5.5.5 0 200 0 i
*>i 66.66.66.66/32 5.5.5.5 0 200 0 200 i
* 23.23.23.2 0 200 i
R2(config-router)#
Sebelum konfigurasi local-preference di R2 ketika di trace dari R1 ke R4
R1#trace 44.44.44.44
Type escape sequence to abort.
Tracing the route to 44.44.44.44
VRF info: (vrf in name/id, vrf out name/id)
1 12.12.12.2 7 msec 2 msec 4 msec
2 23.23.23.2 5 msec 1 msec 1 msec
3 34.34.34.2 5 msec 1 msec 2 msec
R1#
Setelah konfigurasi local-preference di R2 ketika di trace dari R1 ke R4
R1#trace 44.44.44.44
Type escape sequence to abort.
Tracing the route to 44.44.44.44
VRF info: (vrf in name/id, vrf out name/id)
1 12.12.12.2 8 msec 6 msec 5 msec
2 25.25.25.2 5 msec 11 msec 9 msec
3 56.56.56.2 9 msec 7 msec 9 msec
4 36.36.36.1 9 msec 9 msec 9 msec
5 34.34.34.2 10 msec 9 msec 9 msec
R1#
Selesei
Salam Ngoprek