Cisco | IP Prefix-List, distriute to OSPF - Route-Map
Berikut konfigursi masing-masing 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.0.1 255.255.255.252
exit
int gi0/2
no shut
ip add 192.168.200.1 255.255.255.0
ip add 192.168.200.130 255.255.255.128 secondary
ip add 192.168.200.65 255.255.255.192 secondary
ip add 192.168.200.33 255.255.255.224 secondary
ip add 192.168.200.17 255.255.255.240 secondary
ip add 192.168.200.9 255.255.255.248 secondary
ip add 192.168.200.254 255.255.255.252 secondary
exit
int gi0/3
descr " External NW 172.31.1.0/24"
no shut
ip add 172.31.1.1 255.255.255.192
ip add 172.31.1.65 255.255.255.192 secondary
ip add 172.31.1.129 255.255.255.192 secondary
ip add 172.31.1.193 255.255.255.192 secondary
exit
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 10.0.0.1 0.0.0.0 area 0
network 192.168.200.0 0.0.0.255 area 100
network 192.168.200.128 0.0.0.127 area 100
network 192.168.200.64 0.0.0.63 area 100
network 192.168.200.32 0.0.0.31 area 100
network 192.168.200.16 0.0.0.15 area 100
network 192.168.200.8 0.0.0.7 area 100
network 192.168.200.252 0.0.0.3 area 100
redistribute eigrp 10 subnets
exit
router eigrp 10
network 172.31.1.1 0.0.0.0
network 172.31.1.65 0.0.0.0
network 172.31.1.129 0.0.0.0
network 172.31.1.193 0.0.0.0
no auto
exit
interface GigabitEthernet0/2
ip address 192.168.200.65 255.255.255.192 secondary
ip address 192.168.200.33 255.255.255.224 secondary
ip address 192.168.200.17 255.255.255.240 secondary
ip address 192.168.200.9 255.255.255.248 secondary
ip address 192.168.200.253 255.255.255.252 secondary
ip address 192.168.200.254 255.255.255.252 secondary
ip address 192.168.200.129 255.255.255.128 secondary
ip address 192.168.200.1 255.255.255.0
exit
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.0.2 255.255.255.252
exit
int gi0/1
descr "link-to-R2"
no shut
no ip add
ip add 10.0.1.1 255.255.255.252
exit
router ospf 2
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 1
network 10.0.1.1 0.0.0.0 area 1
network 10.0.0.2 0.0.0.0 area 0
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
no ip add
ip add 10.0.1.2 255.255.255.252
exit
router ospf 3
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 1
network 10.0.1.2 0.0.0.0 area 1
exit
VERIFKASI
Router R2
SEKANRIO 1
Lalu ketik di R2
ip prefix-list PL1 permit 192.168.200.0/24 le 27
router ospf 2
distribute-list prefix PL1 in
artinya akan menampilkan trafik network dari 192.168.200.0/24 s/d prefix /27 192.168.200.0/27
Maka di R3 juga ikut dari policy R2
SEKANRIO 2
Lalu buat skenario berikutnya di R2, sebelumnya prefix-list td cb dibuang
ip prefix-list PL1 permit 172.31.1.64/26
ip prefix-list PL1 permit 172.31.1.0/26
ip prefix-list PL1 permit permit 192.168.200.128/25
router ospf 2
distribute-list prefix PL1 in
VERFIKASI
SEKANRIO 3
artinya akan menampilkan trafik pd network 192.168.200.0/24 mulai dari prefix 192.168.200.0/27 ketasnya.
ip prefix-list PL1 permit 192.168.200.0/24 ge 27
router ospf 2
distribute-list prefix PL1 in
VERIKASI
SKENARIO 4
ip prefix-list PL1 permit 192.168.200.0/16 ge 25 le 27
router ospf 2
distribute-list prefix PL1 in
VERIKASI
ROUTE-MAP
Kali ini membahas prefix-list dan ROUTE-MAP, tanpa melibatkan routing ospf
SKENARIO-1
Konfig di R2
ip prefix-list PL1 permit 192.168.200.0/16 ge 26 le 28
route-map RM1 permit 10
match ip address prefix-list PL1
exit
router ospf 2
distribute-list route-map RM1 in
VERIFIKASI
#sh ip route
Coba perhatikan di R3, ada perbedaan ga,?
Posting Komentar untuk "Cisco | IP Prefix-List, distriute to OSPF - Route-Map"