Cisco | Policy-Base-Routing (PBR)
Berikut Konfigurasinya
hostname R1
int lo0
ip add 1.1.1.1 255.255.255.255
exit
int gi0/0
descr "link-to-R2"
ip add 10.0.1.1 255.255.255.252
exit
int gi0/1
descr "link-to-Network "
ip add 192.168.0.254 255.255.255.0
exit
router ospf 1
redistribute static subnets
network 1.1.1.1 0.0.0.0 area 0
network 10.0.1.1 0.0.0.0 area 0
network 192.168.0.0 0.0.0.255 area 100
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
ip route 10.100.100.0 255.255.255.0 10.0.3.1 11
router ospf 1
redistribute connected subnets
redistribute static subnets
network 10.0.1.2 0.0.0.0 area 0
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)KONFIG GLBP
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
SKENARION-1
ip access-list extended 100
permit ip host 192.168.0.1 host 10.100.100.100
permit ip host 192.168.0.2 10.100.100.100 255.255.255.0
exit
route-map PBR1
match ip address 100
set ip next-hop 10.0.3.1
exi
interface gi0/0
ip policy route-map PBR1
exi
VERIFIKASI
IP host 192.168.0.1 tujuan host 10.100.100.100
IP host 192.168.0.2 dgn tujuan network 10.100.100.0/24
akan dilewatkan dari R4, yt ip p2p dari R2 10.0.3.1
ip access-list extended 101
permit ip host 192.168.0.10 host 10.100.100.100
permit ip host 192.168.0.20 host 10.100.100.100
exit
route-map PBR2
match ip address 101
set ip next-hop 10.0.2.1
exi
interface gi0/0
ip policy route-map PBR2
exi
Arti command diatas :
IP host 192.168.0.10 tujuan host 10.100.100.100
IP host 192.168.0.20 dgn tujuan network 10.100.100.0/24
akan dilewatkan dari R3, yt ip p2p dari R2 10.0.2.1
VERIFIKASI
Posting Komentar untuk "Cisco | Policy-Base-Routing (PBR)"