Cisco | BGP - Pemilihan Jalur Terbaik - MED
Router R1
router bgp 20
neighbor 10.10.10.2 remote-as 20
neighbor 11.11.11.2 remote-as 20
network 1.1.1.1 mask 255.255.255.255
exit
Router R2
router bgp 20
neighbor 10.10.10.1 remote-as 20
neighbor 10.10.10.1 next-hop-self #supaya network di R4 dikenali oleh R1
neighbor 12.12.12.2 remote-as 40
neighbor 14.14.14.2 remote-as 20
exit
Router R3
router bgp 20
neighbor 11.11.11.1 remote-as 20
neighbor 11.11.11.1 next-hop-self #supaya network di R4 dikenali oleh R1
neighbor 13.13.13.2 remote-as 40
neighbor 14.14.14.1 remote-as 20
exit
Router R4
router bgp 40
neighbor 12.12.12.1 remote-as 20
neighbor 13.13.13.1 remote-as 20
network 8.8.8.8 mask 255.255.255.255
exit
Sekarang kita pindahkan jalur.
Dari R1 menuju ip 8.8.8.8 di R4 melalui R2,
karena nilai MED-nya dari R1 menuju 8.8.8.8 lebih kecil.
Dari R1 menuju ip 4.4.4.4 di R4 melalui R3
, karena nilai MED-nya dari R1
menuju 4.4.4.4 lebih kecil.
Kita perlu konfig cukup di router R4.
access-list 1 permit 8.8.8.8 0.0.0.0
access-list 2 permit 4.4.4.4 0.0.0.0
!
route-map setMED-R3 permit 10
match ip address 1
set metric 200
!
route-map setMED-R3 permit 20
match ip address 2
set metric 100
!
route-map setMED-R2 permit 10
match ip address 1
set metric 100
!
route-map setMED-R2 permit 20
match ip address 2
set metric 200
exi
router bgp 40
neighbor 12.12.12.1 route-map setMED-R2 out
neighbor 13.13.13.1 route-map setMED-R3 out
exit
Posting Komentar untuk "Cisco | BGP - Pemilihan Jalur Terbaik - MED"