Assalamualaikum Wr.wb
sudah lama nampaknya saya tidak menulis lagii...berasa ada yang kurang dari hidup saya anjayy wkwk...gak gak...gini nihh untuk artikel kali ini kita akan belajar salah satu ilmu yg ada di ospf yaitu passive-interface...
oke,mulai dari buat apa si passive-interface di ospf ?...jadi default nya router yang menjalankan routing ospf maka setiap interface yang network nya di advertise ke ospf akan mengirim atau menerima paket ospf nya.. nah disini kita akan asumsikan bahwa ada salah satu interface yang mengarah ke router client agar tidak menerima ospf paket nya..hal itu biar apa? nanti dahh sekrang kita lab kan duluu skuuyyy...
topologi.
seperti biasa kita setting ip address terlebih dahulu di setiap perangkat..kemudian untuk routing nya kita pasang ospf..
Konfigurasi R1.
R1(config)#int fa0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
konfigurasi R2.
R2(config)#int fa0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config)#int fa0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config)#int fa0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
konfigurasi R3.
R_client(config)#int fa0/0
R_client(config-if)#ip add 192.168.10.1 255.255.255.0
R_client(config-if)#no sh
R_client(config)#int fa0/1
R_client(config-if)#ip add 23.23.23.3 255.255.255.0
R_client(config-if)#int lo0
R_client(config-if)#ip add 3.3.3.3 255.255.255.255
R_client(config-if)#ip add 192.168.10.1 255.255.255.0
R_client(config-if)#no sh
R_client(config)#int fa0/1
R_client(config-if)#ip add 23.23.23.3 255.255.255.0
R_client(config-if)#int lo0
R_client(config-if)#ip add 3.3.3.3 255.255.255.255
seseudah kita setting ip address pada setiap perangkat selanjutnya kita konfigurasikan routing ospf nya...disini kita menggunakan multi area berarti kita menggunakan lebih dari 1 area...
konfigurasi routing ospf R1.
R1(config-if)#router ospf 1
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 12.12.12.0 0.0.0.255 area 0
R1(config-router)# ex
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 12.12.12.0 0.0.0.255 area 0
R1(config-router)# ex
konfigurasi routing ospf R2.
R2(config-if)#router ospf 1
R2(config-router)#net 12.12.12.0 0.0.0.255 area 0
R2(config-router)#net 23.23.23.0 0.0.0.255 area 1
R2(config-router)#net 2.2.2.2 0.0.0.0 area 0
R2(config-router)#ex
R2(config-router)#net 12.12.12.0 0.0.0.255 area 0
R2(config-router)#net 23.23.23.0 0.0.0.255 area 1
R2(config-router)#net 2.2.2.2 0.0.0.0 area 0
R2(config-router)#ex
konfigurasi routing ospf R_client
R_client(config-if)#router ospf 1
R_client(config-router)#net 3.3.3.3 0.0.0.0 area 1
R_client(config-router)#net 23.23.23.0 0.0.0.255 area 1
R_client(config-router)#net 192.168.10.0 0.0.0.255 area 1
R_client(config-router)#net 3.3.3.3 0.0.0.0 area 1
R_client(config-router)#net 23.23.23.0 0.0.0.255 area 1
R_client(config-router)#net 192.168.10.0 0.0.0.255 area 1
setelah itu kita routing table nya..pastikan semua router memiliki informasi table routing yang lengkap..
R1(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 12.12.12.2, 01:19:45, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/21] via 12.12.12.2, 01:18:47, FastEthernet0/0
O IA 192.168.10.0/24 [110/30] via 12.12.12.2, 01:07:58, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/20] via 12.12.12.2, 01:19:55, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1(config-router)#
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 12.12.12.2, 01:19:45, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/21] via 12.12.12.2, 01:18:47, FastEthernet0/0
O IA 192.168.10.0/24 [110/30] via 12.12.12.2, 01:07:58, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/20] via 12.12.12.2, 01:19:55, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1(config-router)#
table route R2
R2(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 01:33:11, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 01:31:56, FastEthernet0/1
O 192.168.10.0/24 [110/20] via 23.23.23.3, 01:21:07, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R2(config-router)#
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 12.12.12.1, 01:33:11, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/11] via 23.23.23.3, 01:31:56, FastEthernet0/1
O 192.168.10.0/24 [110/20] via 23.23.23.3, 01:21:07, FastEthernet0/1
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R2(config-router)#
table route R_client
R_client(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/21] via 23.23.23.2, 01:33:45, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/11] via 23.23.23.2, 01:33:45, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/20] via 23.23.23.2, 01:33:47, FastEthernet0/1
R_client(config-router)#
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/21] via 23.23.23.2, 01:33:45, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/11] via 23.23.23.2, 01:33:45, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/20] via 23.23.23.2, 01:33:47, FastEthernet0/1
R_client(config-router)#
Note : flag "O & O IA".
O = Network tersebut ada dalam satu area yang sama.
O IA = Network tersebut di dapatkan dari area yang berbeda.
Nah jika ingin melihat paket apa saja yang dikirimkan ketika menjalankan routing ospf bisa di lihat/capture menggunakan wireshark..
nah bisa dilihat hasil dari wireshrak..tapi disini kita tidak bahas ya..next artikel kita bahas paket apa aja yang di kirimkan ketika menjalankan routing ospf...
oke sekarang kita waktunya setting passive interface..di sini kita ingin router client tidak menerima paket ospf tersebut caranya gmna? berikut konfigurasi yang harus kita tambahkan..
konfigurasi passive-interface
R_client(config)#router ospf 1
R_client(config-router)#passive-interface fa0/1
R_client(config-router)#passive-interface fa0/1
jadi pada pasive interface..interface tersebut tidak akan menerima informasi routing update dalam bentuk paket ospf..jadi ini berguna pada jaringan berskala besar karena nantinya perangkat seperti pc ataupun server tidak akan menerima paket ospf yang memakan resource juga...
Note : - passiver-interface : kita akan mengaktifkan salah satu interface menjadi passive yang nantinya interface tersebut tidak bisa menerima atau mengirim paket ospf.
- fa0/1 : passive-interface terpasang di int fa0/1.
setelah itu kita cek pada R_client pastikan dia tidak menerima informasi routing table dari router lain..
R_client(config-router)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
R_client(config-router)#
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
C 192.168.10.0/24 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
R_client(config-router)#
terlihat di routing table R_client hanya mempunyai network milik nya saja...berarti router tersebut tidak menerima paket yang dikirimkan oleh router lain...selain itu coba cek juga di selain R_client apakah masih ada hasil advertise dari R_client..
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 12.12.12.2, 00:45:37, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/20] via 12.12.12.2, 00:45:37, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1#
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 12.12.12.2, 00:45:37, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/20] via 12.12.12.2, 00:45:37, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
R1#
nah di R1 dia juga tidak menerima network yang di advertise dari R_client berarti,R_client tidak mengirimkan routing informasi nya ke router lain..nah untuk artikel kali ini sampai di sini dulu semoga bermanfaat...terimakasih