Cisco | Policy Based Routing
Konfig semua router
hostname R1
int lo0
ip add 1.1.1.1 255.255.255.255
exit
int gi0/0
descr "link-to-R2"
no shut
ip add 10.0.1.1 255.255.255.252
exit
ip route 0.0.0.0 0.0.0.0 10.0.1.2
------------
hostname R2
int lo0
ip add 2.2.2.2 255.255.255.255
exit
int gi0/0
descr "link-to-R2"
no shut
ip add 10.0.1.2 255.255.255.252
exit
int gi0/1
descr "link-to-R3"
no shut
ip add 10.0.2.2 255.255.255.252
exit
int gi0/2
descr "link-to-R4"
no shut
ip add 10.0.3.2 255.255.255.252
exit
ip route 10.100.100.0 255.255.255.0 10.0.2.1 10 name Next_Hop_R3 1
ip route 10.100.100.0 255.255.255.0 10.0.3.1 11 name Next_Hop_R4 2
router ospf 2
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 1
network 10.0.1.2 0.0.0.0 area 0
network 10.0.2.2 0.0.0.0 area 1
network 10.0.3.2 0.0.0.0 area 1
exit
---------------------------
hostname R3
int lo0
ip add 3.3.3.3 255.255.255.255
exit
int gi0/0
descr "link-to-R2"
no shut
ip add 10.0.2.1 255.255.255.252
exit
int gi0/1
descr "link-to-Porduction"
no shut
ip add 10.100.100.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 10.0.2.2
---------------
hostname R4
int lo0
ip add 4.4.4.4 255.255.255.255
exit
int gi0/0
descr "link-to-R2"
no shut
ip add 10.0.3.1 255.255.255.252
exit
int gi0/1
descr "link-to-Porduction"
no shut
ip add 10.100.100.2 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 10.0.3.2
-------------------------
TAMBAHAN (R3 DAN R4)
R3
R3
interface gi0/1
glbp 1 ip 10.100.100.254
glbp 1 preempt
glbp 1 priority 110
glbp 1 load-balancing round-robin
glbp 1 authentication md5 key-string cisco
R4
interface gi0/1
glbp 1 ip 10.100.100.254
glbp 1 preempt
glbp 1 load-balancing round-robin
glbp 1 authentication md5 key-string cisco
Lalu Verifkasi di R1
Lakukan ping, dan trace dari R1 (10.0.1.1) menuju 10.100.100.100 lewat dari mana?.
Nampak bahwa dari R1 menuju ke 10.100.100.100 lewat R3.Sekarng kt iningkan dia leat R4. berikut commadnya
access-list 1 permit host 10.0.1.1
route-map PBRmatch ip address 1
set ip next-hop 10.0.3.1
exit
interface gi0/0
decription ## link to R1##
ip policy route-map PBR
VERIFIKASI DI R1
Nampak bahwa dari 10.0.1.1 menuju 10.100.100.100.254 melewati R4
Verifikasi di R2 , cek packet PBR
SKENARIO-2.
bagimana caranya IP loopback R2 (2.2.2.2) menuju 10.100.100.100 melewati R4. Secara default ip lo2 melewati R3.
Begini stepnya.
Konfig di R2
access-list 100 permit ip host 2.2.2.2 host 10.100.100.100
route-map PBR2
match ip address 100
exit
ip local policy route-map PBR2
exit
Posting Komentar untuk "Cisco | Policy Based Routing"