Professional Documents
Culture Documents
8
Teori Dasar EIGRP ............................................................................................. 10
OSPF ................................................................................................ 67
Teori Dasar OSPF ........................................................................................... 68
BGP................................................................................................. 177
Lab 1. iBGP Peering ........................................................................................178
Teori Dasar
EIGRP merupakan distance vector protocol dan cisco roprietary.
Menggunakan algoritma DUAL (Diffusing Update Algorithm).
Berikut ini ciri-ciri routing protocol EIGRP :
• Advanced distance vector/hybrid routing protocol
• Multicast or unicast for exchange information use port 88
• Administrative distance 90
• Classless routing protocol support VLSM/CIDR.
• Support IPv6
• Rich metric (bandwidth, delay, load and reliability)
• Very fast convergence
• Equal and Unequal Load balancing
• 100% loop-free
Dinamakan advanced distance vector atau hybrid routing protocol
karena EIGRP tidak seperti RIP yang:
• No neighbor discovery
• Periodic updates
• Vulnerable to loops
• Simple metric (hop count)
Cisco menambahkan fitur-fitur dari link state pada EIGRP sehingga
dapat mengatasi masalah-masalah RIP. Pada router yang menjalankan
EIGRP akan mempunyai 3 database(tabel):
EIGRP neighbor table
• List semua directly connected neighbor
• Next-hop router
• Interface
EIGRP topology table
• List semua route yang dipelajari dari semua EIGRP neighbor
• Destination
• Metric
EIGRP Packets
1) Hello Packet
• Untuk discover dan recovery neighbor serta membentuk adjency.
• Jika penerima membalas dengan hello packet maka terjadi
adjency. Jika penerima tidak mengirim hello packet dalam X
waktu (hold time), maka adjency akan didrop.
• Setelah adjency terbentuk, akan melakukan exchange routing
information yang akan disimpan di topology table. Best path
dari topology table akan disave di routing table.
• Reliable
2) Update Packet
• Berisi informasi routing
• Dapat dikirim secara unicast atau multicast
• Reliable
3) Query Packet
• Dikirim jika suatu router EIGRP kehilangan informasi tentang
suatu network, maka query akan dikirim ke neighbor untuk
mendapat informasi tentang neighbor yang hilang tadi.
4) Reply Packet
• Response dari query packet
5) ACK Packet
• Dikirim sebagai pemberitahuan bahwa telah menerima update
packet.
• Dikirim secara unicast.
6) No Auto-Summary
Digunakan untuk menyertakan subnetmask dalam advertise
network.
R1
R1(config)#int gigabitEthernet 1/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int loopback 0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#no shutdown
R1(config)#router eigrp 10
R1(config-router)#network 1.1.1.1 0.0.0.0
R1(config-router)#network 12.12.12.1 0.0.0.0
R1(config-router)#no auto-summary
R2
R2(config)#interface gigabitEthernet 1/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
!
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int loopback 0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config)#router eigrp 10
R2(config-router)#network 2.0.0.0
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#network 23.23.23.2 0.0.0.0
R2(config-router)#no auto-summary
Cek routing tabel pada Router 1. Pastikan ping ke router lain berhasil.
R1
R1#sh ip route
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
D 2.2.2.2 [90/130816] via 12.12.12.2, 00:07:04, GigabitEthernet1/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156416] via 12.12.12.2, 00:02:20, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 00:07:04, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/13/28 ms
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/32/40 ms
R1
R1(config)#access-list 1 deny 2.2.2.2
R1(config)#access-list 1 permit any
!
R1(config)#router eigrp 10
R1(config-router)#distribute-list 1 in gigabitEthernet 1/0
R1(config-router)#exit
Kemudian cek pada routing tabelnya. Pastikan IP 2.2.2.2 sudah tidak lagi
terdapat dalam routing tabelnya.
R1
R1#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156416] via 12.12.12.2, 01:18:53, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 01:23:38, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Cara kedua : filter network menggunakan access list pada R2 dengan
distribute OUT. Kita hapus terlebih dahulu konfigurasi distribute IN.
R1
R1(config)#router eigrp 10
R1(config-router)#no distribute-list 1 in GigabitEthernet 1/0
Pastikan ip loopback 2.2.2.2 sudah muncul lagi dalam tabel routing R1.
Cek lagi routing tabelnya, maka IP loopback 2.2.2.2 sudah tidak ada
R1
R1#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156416] via 12.12.12.2, 01:36:09, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 01:40:53, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R1
R1(config)#interface gigabitEthernet 1/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
!
R1(config)#router eigrp 10
R1(config-router)#network 12.12.12.1 0.0.0.0
R1(config-router)#no auto-summary
R2
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
!
R2(config)#int gigabitEthernet 1/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
!
R2(config)#router eigrp 10
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#network 23.23.23.2 0.0.0.0
R2(config-router)#no auto-summary
R1
R1#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156416] via 12.12.12.2, 02:33:14, GigabitEthernet1/0
D 3.3.3.16/28 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.32/29 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.96/27 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.148/30 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
D 3.3.3.192/28 [90/156416] via 12.12.12.2, 00:04:50, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 02:37:58, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 02:40:44, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 02:35:40, FastEthernet0/0
D 3.3.3.16/28 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.96/27 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
D 3.3.3.192/28 [90/156160] via 23.23.23.3, 00:07:16, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Kita cek tabel routing. Pastikan network 3.3.3.x dengan prefix antara 24
sampai 28 sudah tidak ada. Yang ada hanyalah prefix antara 29 sampai
30.
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 02:54:54, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 02:49:50, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:21:26, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:21:26, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R2
R2(config)#router eigrp 10
R2(config-router)#no distribute-list prefix EIGRP_IN in
Pastikan Network 3.3.3.x yang memiliki prefix 28 sampai 30 di blok dan tidak
ada di dalam routing tabel R1 dan R2.
R1
R1#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D 3.3.3.3/32 [90/156416] via 12.12.12.2, 00:16:58, GigabitEthernet1/0
D 3.3.3.96/27 [90/156416] via 12.12.12.2, 00:08:33, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 00:16:58, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Cek kembali routing table pada R2, pastikan semua loopback R3 masuk semua.
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/130816] via 12.12.12.1, 00:51:20, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156160] via 23.23.23.3, 00:51:20, FastEthernet0/0
D 3.3.3.16/28 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.32/29 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.96/27 [90/156160] via 23.23.23.3, 00:42:54, FastEthernet0/0
D 3.3.3.148/30 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
D 3.3.3.192/28 [90/156160] via 23.23.23.3, 00:03:18, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Kita mulai filter route yang genap.
R2
R2(config)#access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#router eigrp 10
R2(config-router)#distribute-list 1 in fastEthernet 0/0
Kita cek tabel routingnya.
Cara filtering lain adalah dengan merubah nilai AD suatu route menjadi 255
(unreachable). Misalnya kita menginginkan agar IP Loopback R3 tidak lagi
dimunculkan dalam routing table R2 dan R1, yaitu dengan diset nilai
administrative distancenya menjadi 255.
Yup ip loopback R1 (1.1.1.1) sudah tidak terdapat lagi dalam routing tabel
Router R3.
R1
R1#sh ip route 2.2.2.2
% Network not in table
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
Pada EIGRP hanya ada MD5 authentication, tidak ada clear text authentication
R1
R1(config)#key chain EIGRP
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string CCNP
R1(config-keychain-key)#exit
!
R1(config)#int gigabitEthernet 1/0
R1(config-if)#ip authentication mode eigrp 10 md5
R1(config-if)#ip authentication key-chain eigrp 10 EIGRP
R2
R2(config)#key chain EIGRP
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string CCNP
R1(config-keychain-key)#exit
!
R2(config)#int gigabitEthernet 1/0
R2(config-if)#ip authentication mode eigrp 10 md5
R2(config-if)#ip authentication key-chain eigrp 10 EIGRP
Verifikasi :
R1
R1#debug eigrp packets
EIGRP Packets debugging is on
(UPDATE, REQUEST, QUERY, REPLY, HELLO, IPXSAP, PROBE, ACK, STUB,
SIAQUERY, SIAREPLY)
R1#
*Jul 8 10:06:56.543: EIGRP: Sending HELLO on GigabitEthernet1/0
*Jul 8 10:06:56.543: AS 10, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
*Jul 8 10:06:56.723: EIGRP: Sending HELLO on Loopback0
*Jul 8 10:06:56.723: AS 10, Flags 0x0, Seq 0/0 idbQ 0/0 iidbQ un/rely 0/0
Dengan summarization, maka beberapa route akan dijadikan satu, untuk itu
kita perlu membuat beberapa ip yang nantinya akan di summarize, pada lab
sebelumnya pada R3 kita sudah membuat beberapa ip loopback sekarang
tinggal kita summarize saja.
Kondisi Awal :
R1
R1#sh ip route
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
D 2.2.2.2 [90/130816] via 12.12.12.2, 00:00:17, GigabitEthernet1/0
3.0.0.0/8 is variably subnetted, 6 subnets, 5 masks
D 3.3.3.3/32 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
D 3.3.3.16/28 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
D 3.3.3.32/29 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
D 3.3.3.96/27 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
D 3.3.3.148/30 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
D 3.3.3.192/28 [90/156416] via 12.12.12.2, 00:00:16, GigabitEthernet1/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 00:00:17, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
R1
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/36 ms
R1#ping 3.3.3.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.17, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/39/44 ms
R1#ping 3.3.3.33
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.33, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/22/28 ms
Secara default, EIGRP melakukan upate secara multicast (224.0.0.10), pada lab
kali ini kita akan merubahnya menjadi unicast update.
R1
R1#debug ip packet detail
IP packet debugging is on (detailed)
*Mar 1 00:30:36.883: IP: s=12.12.12.2 (GigabitEthernet1/0), d=224.0.0.10,
len 60, rcvd 2, proto=88
*Mar 1 00:30:37.331: IP: s=12.12.12.1 (local), d=224.0.0.10
(FastEthernet1/0), len 60, sending broad/multicast, proto=88
R2
R2(config)#router eigrp 10
R2(config-router)#neighbor 12.12.12.1 GigabitEthernet 1/0
Selanjutnya cek kembali dan pastikan updatenya sudah berubah dari 224.0.0.10
menjadi ke ip neighbornya.
Atau kalau kita capture menggunakan Wireshark hasilnya seperti ini Before.
After
Default route juga bisa didistribusikan melalui EIGRP sehingga masing- masing
router tidak perlu membuat konfigurasi default route satu satu secara
manual.
R3
R3(config)#interface fastEthernet 0/0
R3(config-if)#no ip summary-address eigrp 10 3.3.3.3 255.255.255.0
R3(config-if)#ip summary-address eigrp 10 0.0.0.0 0.0.0.0
R3(config-if)#exit
R3
R3#sh ip route
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
D* 0.0.0.0/0 is a summary, 00:16:28, Null0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/156160] via 23.23.23.2, 00:35:25, FastEthernet0/0
3.0.0.0/8 is variably subnetted, 11 subnets, 5 masks
C 3.3.3.3/32 is directly connected, Loopback0
C 3.3.3.16/28 is directly connected, Loopback1
C 3.3.3.32/29 is directly connected, Loopback2
C 3.3.3.96/27 is directly connected, Loopback3
C 3.3.3.148/30 is directly connected, Loopback4
C 3.3.3.192/28 is directly connected, Loopback5
12.0.0.0/24 is subnetted, 1 subnets
D 12.12.12.0 [90/30720] via 23.23.23.2, 00:35:25, FastEthernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, FastEthernet0/0
R2
R2#show ip route 3.3.3.3
% Network not in table
R2#show ip route 3.3.3.17
% Network not in table
R2#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/23/32 ms
R2#ping 3.3.3.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.17, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/17/24 ms
R3
R3(config)#int fastEthernet 0/0
R3(config-if)#no ip summary-address eigrp 10 0.0.0.0 0.0.0.0
R1
R1(config)#int loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config)#int loopback 1
R1(config-if)#ip add 100.100.100.100 255.255.255.255
Advertise ke RIP
R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 100.100.100.100
R1(config-router)#network 1.1.1.1
R1(config-router)#no auto-summary
R1(config-router)#exit
Cek di R3
R3
R3#show ip route eigrp
12.0.0.0/24 is subnetted, 1 subnets
D 12.12.12.0 [90/28416] via 23.23.23.2, 00:31:40, FastEthernet0/0
R1
router eigrp 10
redistribute rip metric ?
<1-4294967295> Bandwidth metric in Kbits per second
R1
R1(config)#router eigrp 10
R1(config-router)#redistribute rip metric 1 1 1 1 1
Secara metric berbeda namun secara fungsi dan jalannya routing tidak akan ada
bedanya karena sifatnya eksternal route. Yang penting metricnya harus diisi,
berapapun nilainya tidak ada pengaruhnya.
R3
R3#sh ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D EX 1.1.1.1 [170/2560005376] via 23.23.23.2, 00:06:47, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/156160] via 23.23.23.2, 01:22:00, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
D 12.12.12.0 [90/30720] via 23.23.23.2, 01:22:00, FastEthernet0/0
100.0.0.0/32 is subnetted, 1 subnets
D EX 100.100.100.100
[170/2560005376] via 23.23.23.2, 00:06:47, FastEthernet0/0
R3
R3#ping 100.100.100.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/41/64 ms
R3#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/32/76 ms
R3
R3#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/56 ms
R1
R1#sh ip route 3.3.3.3
Routing entry for 3.3.3.3/32
Known via "eigrp 10", distance 90, metric 130816, type internal
Redistributing via eigrp 10
Last update from 13.13.13.3 on GigabitEthernet1/0, 00:00:15 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:00:15 ago, via GigabitEthernet1/0
Route metric is 130816, traffic share count is 1
Total delay is 5010 microseconds, minimum bandwidth is 1000000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
Terlihat diatas bahwasanya delaynya menjadi semakin besar. Sekarang kita cek
apakah routenya sudah berpindah melalui Fastethernet atau tidak.
R1
R1#sh ip route 3.3.3.3
Routing entry for 3.3.3.3/32
Known via "eigrp 10", distance 90, metric 156416, type internal
Redistributing via eigrp 10
Last update from 12.12.12.2 on FastEthernet0/0, 00:14:03 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 12.12.12.2, 00:14:03 ago, via FastEthernet0/0
Route metric is 156416, traffic share count is 1
Total delay is 5110 microseconds, minimum bandwidth is 100000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
R1
R1#traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 8 msec 36 msec 20 msec
2 23.23.23.3 32 msec 32 msec 28 msec
Selain nilai delay, bisa juga merubah nilai bandwidthnya, misalkan bandwidth
int G1/0nya diset 10Mbps saja, sehingga lebih rendah dibanding Fastethernet
(100Mbps).
R1
R1(config)#interface gigabitEthernet 1/0
R1(config-if)#no delay 1000000
R1
R1(config)#interface gigabitEthernet 1/0
R1(config-if)#bandwidth 10
R1
R1#sh ip eigrp topology 3.3.3.3 255.255.255.255
IP-EIGRP (AS 10): Topology entry for 3.3.3.3/32
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 156416
Routing Descriptor Blocks:
12.12.12.2 (FastEthernet0/0), from 12.12.12.2, Send flag is 0x0
Composite metric is (156416/130816), Route is Internal
Vector metric:
Minimum bandwidth is 100000 Kbit
Total delay is 5110 microseconds
Reliability is 255/255
Load is 1/255
Minimum MTU is 1500
Hop count is 2
13.13.13.3 (GigabitEthernet1/0), from 13.13.13.3, Send flag is 0x0
R1
R1# sh ip route eigrp
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/156160] via 12.12.12.2, 00:09:17, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156416] via 12.12.12.2, 00:09:17, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.23.23.0 [90/28416] via 12.12.12.2, 00:09:17, FastEthernet0/0
R1
R1#traceroute 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
1 12.12.12.2 24 msec 16 msec 24 msec
2 23.23.23.3 32 msec 36 msec 28 msec
R2
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int f0/1
R2(config-if)#ip add 24.24.24.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int lo0
R3
R3(config)#int f0/0
R3(config-if)#ip add 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#int f0/1
R3(config-if)#ip add 34.34.34.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#int lo0
R3(config-if)#ip add
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config)#router eigrp 1
R3(config-router)#network 0.0.0.0
R3(config-router)#no auto-summary
R4
R4(config)#int f0/0
R4(config-if)#ip add 24.24.24.4 255.255.255.0
R4(config-if)#no shutdown
R4(config)#int f0/1
R4(config-if)#ip add 34.34.34.4 255.255.255.0
R4(config-if)#no shutdown
R4(config)#int lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config)#router eigrp 1
R4(config-router)#network 0.0.0.0
R4(config-router)#no auto-summary
Seperti yang terlihat diatas, 2 jalur digunakan secara bersamaan untuk menuju
ke loopback0 R4 (Equal Cost Load Balancing) yakni via R2 (12.12.12.2) dan R3
(13.13.13.3)
R1
R1#sh ip route 4.4.4.4 255.255.255.255
Routing entry for 4.4.4.4/32
Known via "eigrp 1", distance 90, metric 158720, type internal
Redistributing via eigrp 1
Last update from 12.12.12.2 on FastEthernet0/0, 00:05:50 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:05:50 ago, via FastEthernet0/1
Route metric is 158720, traffic share count is 1
Total delay is 5200 microseconds, minimum bandwidth is 100000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
12.12.12.2, from 12.12.12.2, 00:05:50 ago, via FastEthernet0/0
Route metric is 158720, traffic share count is 1
Total delay is 5200 microseconds, minimum bandwidth is 100000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
Pada link yang unequal, maka load balancing tidak aktif dan hanya
akan menggunakan satu link. Masih memakai topologi sebelumnya.
Sebelumnya ubah bandwidth interface fa0/0 menjadi 1000Kbit agar
tidak equal dengan fa0/1.
R1
R1(config)#int f0/0
R1(config-if)#bandwidth 1000
R1(config-if)#exit
Cek pada routing tabelnya dan didapati hanya satu jalur yang dilewati yakni
melalui R3.
R1
R1#sh ip route eigrp
34.0.0.0/24 is subnetted, 1 subnets
D 34.34.34.0 [90/30720] via 13.13.13.3, 00:01:42, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/161280] via 13.13.13.3, 00:01:42, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/156160] via 13.13.13.3, 00:13:30, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/158720] via 13.13.13.3, 00:01:42, FastEthernet0/1
24.0.0.0/24 is subnetted, 1 subnets
D 24.24.24.0 [90/33280] via 13.13.13.3, 00:01:42, FastEthernet0/1
R1
R1#sh ip eigrp topology 4.4.4.4/32
IP-EIGRP (AS 1): Topology entry for 4.4.4.4/32
State is Passive, Query origin flag is 1, 1 Successor(s), FD is 158720
Routing Descriptor Blocks:
13.13.13.3 (FastEthernet0/1), from 13.13.13.3, Send flag is 0x0
Composite metric is (158720/156160), Route is Internal
Vector metric:
Minimum bandwidth is 100000 Kbit
Total delay is 5200 microseconds
Reliability is 255/255
Load is 1/255
Minimum MTU is 1500
Hop count is 2
12.12.12.2 (FastEthernet0/0), from 12.12.12.2, Send flag is 0x0
Composite metric is (2693120/156160), Route is Internal
Vector metric:
Minimum bandwidth is 1000 Kbit
Total delay is 5200 microseconds
Reliability is 255/255
Load is 1/255
Minimum MTU is 1500
Hop count is 2
Perhatikan nilai metric nya, untuk mencari nilai varience yang akan kita
masukkan, maka 2693120 dibagi 158720 = 16,9 maka nilai varience yang diset
adalah 17 (pembulatan harus keatas untuk nilai berapapun)
R1
R1(config)#router eigrp 1
R1(config-router)#variance 17
Hasil akhir
R1
R1#sh ip route eigrp
34.0.0.0/24 is subnetted, 1 subnets
D 34.34.34.0 [90/30720] via 13.13.13.3, 00:00:55, FastEthernet0/1
2.0.0.0/32 is subnetted, 1 subnets
R1
R1#sh ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "eigrp 1", distance 90, metric 158720, type internal
Redistributing via eigrp 1
Last update from 12.12.12.2 on FastEthernet0/0, 00:02:10 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:02:10 ago, via FastEthernet0/1
Route metric is 158720, traffic share count is 120
Total delay is 5200 microseconds, minimum bandwidth is 100000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
12.12.12.2, from 12.12.12.2, 00:02:10 ago, via FastEthernet0/0
Route metric is 2693120, traffic share count is 7
Total delay is 5200 microseconds, minimum bandwidth is 1000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
R2
R2(config)#int loopback0
R2(config-if)#ip add 2.2.0.2 255.255.255.0
R2(config)#int loopback1
R2(config-if)#ip add 2.2.1.2 255.255.255.0
R2(config)#int loopback2
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config)#int loopback3
R2(config-if)#ip add 2.2.3.2 255.255.255.0
R2(config)#int gigabitEthernet 1/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ip summary-address eigrp 1 2.2.0.0 255.255.252.0 5
R2(config)#router eigrp 1
R3
R3(config)#int fastEthernet 0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#router eigrp 1
R3(config-router)#network 23.23.23.3 0.0.0.0
R3(config-router)#no auto-summary
R3
R3#sh ip route
2.0.0.0/22 is subnetted, 1 subnets
D 2.2.0.0 [90/2560002816] via 23.23.23.2, 00:01:19, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
D 12.12.12.0 [90/28416] via 23.23.23.2, 00:01:19, FastEthernet0/0
Defaultnya connected dan summary kalau kita tidak mendefine manual option
stubnya.
R2
R2(config)#router eigrp 1
R2(config-router)#no eigrp stub
R2(config-router)#eigrp stub connected
R2(config-router)#exit
R3
R3#sh ip route
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
D 12.12.12.0 [90/28416] via 23.23.23.2, 00:01:19, FastEthernet0/0
R3
R3#sh ip route
2.0.0.0/22 is subnetted, 1 subnets
D 2.2.0.0 [90/2560002816] via 23.23.23.2, 00:00:58, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
R3
R3#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D EX 1.1.1.1 [170/28416] via 23.23.23.2, 00:01:01, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
Pada routing table, hanya ada network hasil redistribute static aja.
R3
R3#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
D EX 1.1.1.1 [170/28416] via 23.23.23.2, 00:00:49, FastEthernet0/0
2.0.0.0/24 is subnetted, 4 subnets
D EX 2.2.0.0 [170/2560002816] via 23.23.23.2, 00:00:49, FastEthernet0/0
D EX 2.2.1.0 [170/2560002816] via 23.23.23.2, 00:00:49, FastEthernet0/0
D EX 2.2.2.0 [170/2560002816] via 23.23.23.2, 00:00:49, FastEthernet0/0
D EX 2.2.3.0 [170/2560002816] via 23.23.23.2, 00:00:49, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
Receive-only yaitu router yang menjadi stub tidak akan mengadvertise network
apapun hanya menerima saja. Lanjutan lab sebelumnya. Hapus dulu
perintah eigrp stub sebelumnya.
R2
R2(config)#router eigrp 1
R2(config-router)#no eigrp stub redistributed
R2(config-router)#eigrp stub receive-only
R3
R3#sh ip route
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
R2
R2#sh ip route
1.0.0.0/32 is subnetted, 1 subnets
S 1.1.1.1 [1/0] via 12.12.12.1
2.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 2.2.0.0/24 is directly connected, Loopback0
D 2.2.0.0/22 is a summary, 00:24:01, Null0
C 2.2.1.0/24 is directly connected, Loopback1
C 2.2.2.0/24 is directly connected, Loopback2
C 2.2.3.0/24 is directly connected, Loopback3
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, GigabitEthernet1/0
Pada router dengan IOS Version diatas 15.x ada fitur baru yaitu named config
eigrp. Atau bahasa simple nya mengkonfigurasi eigrp dengan metode nama.
Berikut konfigurasinya
R1
R1(config)#int e0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#exit
!
R1(config)#router eigrp R1
R1(config-router)#address-family ipv4 unicast autonomous-system 123
R1(config-router-af)#network 1.1.1.1 0.0.0.0
R1(config-router-af)#network 12.12.12.1 0.0.0.0
R2
R2(config)#interface e0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#exit
R2(config)#interface e0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
!
R2(config)#router eigrp R2
R2(config-router)#address-family ipv4 unicast autonomous-system 123
R3
R3(config)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#exit
R3(config)#int e0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router eigrp R3
R3(config-router)#address-family ipv4 unicast autonomous-system 123
R3(config-router-af)#network 3.3.3.3 0.0.0.0
R3(config-router-af)#network 23.23.23.3 0.0.0.0
R2
R2#sh ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/1024640] via 12.12.12.1, 00:08:46, Ethernet0/0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/1024640] via 23.23.23.3, 00:02:46, Ethernet0/1
R3
R3(config)#do sh ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/1536640] via 23.23.23.2, 00:04:09, Ethernet0/0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/1024640] via 23.23.23.2, 00:04:09, Ethernet0/0
Cek ping
R3
R3(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3(config)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R3(config)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/5 ms
R2
R2(config)#int loopback0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config)#int e0/0
R2(config-if)#ip add 24.24.24.2 255.255.255.0
R2(config-if)#no shutdown
R2(config)#ip route 0.0.0.0 0.0.0.0 24.24.24.4
R3
R3(config)#int loopback0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#ex
R3(config)#int e0/0
R4
R4(config)#int e0/0
R4(config-if)#ip add 14.14.14.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#int e0/1
R4(config-if)#ip add 24.24.24.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#int e0/2
R4(config-if)#ip add 34.34.34.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
Untuk EIGRP OTP ini hanya bisa dilakukan pada versi IOS 15.x keatas yang support
EIGRP Named Configuration. Untuk konfigurasi EIGRP OTP ada dua options :
• Setiap router konek satu sama lain (full-mesh)
• Satu router dijadikan pusat remote-neighbor (mirip seperti BGP Route-reflector)
Untuk lab ini kita akan menggunakan yang Opsi kedua yaitu menjadikan R1
menjadi routereflector. Coba ping dulu ke ip neighbor pastikan berhasil.
R1
R1#ping 24.24.24.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 24.24.24.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 34.34.34.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 34.34.34.3, timeout is 2 seconds:
!!!!!
R2
R2(config)#router eigrp IDN
R2(config-router)#address-family ipv4 unicast autonomous-system 123
R2(config-router-af)#neighbor 14.14.14.1 Ethernet0/0 remote 2 lisp-encap
123
R2(config-router-af)#network 2.2.2.2 0.0.0.0
R2(config-router-af)#network 24.24.24.2 0.0.0.0
R2(config-router-af)#exit-address-family
R3
R3(config)#router eigrp IDN
R3(config-router)#address-family ipv4 unicast autonomous-system 123
R3(config-router-af)#neighbor 14.14.14.1 Ethernet0/0 remote 2 lisp-encap
123
R3(config-router-af)#network 3.3.3.3 0.0.0.0
R3(config-router-af)#network 34.34.34.3 0.0.0.0
R3(config-router-af)#exit-address-family
R2
R2#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
Nah Gaesss Pada lab kali ini topologi area nya adalah : Area 0 – Area 1 – Area
2 – Area 3. Dimana Area 2 dan Area 3 tidak tersambung langsung ke Area 0,
padahal syarat utamanya adalah semua area selain area 0 harus tersambung
ke Area 0. Untuk itu ada beberapa solusi yang kesemuanya adalah hanya
bersifat sementara, tidak boleh dijadikan permanen, yaitu :
1. Virtual link
2. GRE Tunnel
Dan kita akan mulai dari Virtual Link, dalam hal ini akan ada pembuatan 2
virtual link, yakni dari Area 2 ke Area 0, kemudian dari Area 3 ke Area 0
R1
R1#config terminal
!
R1(config)#interface lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
!
R1(config-if)#int f0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
!
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#network 12.12.12.1 0.0.0.0 area 1
R1(config-router)#exit
R3
R3#config terminal
R3(config)#interface loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#exit
!
R3(config)#int g1/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
!
R2
R2(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/2] via 12.12.12.1, 00:06:08, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.2/32 is directly connected, FastEthernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, GigabitEthernet1/0
L 23.23.23.2/32 is directly connected, GigabitEthernet1/0
Jadi apabila ingin menggunakan area lain selain area 0, maka tersebut harus
terhubung dengan area 0, apabila nih dimana kondisi area tersebut memang
tidak memungkinkan untuk terhubung langsung dengan area 0 maka harus
menggunakan yang nama nya metode (vitual link) jadi sebelum di konfigurasi
virtual link maka table routing tidak lengkap, R1 tidak mendapat routing
information pada R3.
R1
R1(config)#router ospf 1
R1(config-router)#area 1 virtual-link 2.2.2.2
R1(config-router)#exit
R2
R2(config)#router ospf 2
R2(config-router)#area 1 virtual-link 1.1.1.1
R2(config-router)#exit
R1(config)#
*Jul 8 01:21:39.007: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on OSPF_VL0
from LOADING to FULL, Loading Done
R1(config)#
R2(config)#
*Jul 8 01:21:38.751: %OSPF-5-ADJCHG: Process 2, Nbr 1.1.1.1 on OSPF_VL0
from LOADING to FULL, Loading Done
R2(config)#
Kita lihat network area 2 yakni 23.23.23.0 sudah masuk ke dalam routing
tabel, namun network area 3 tampaknya belum muncul.
R2
R2(config)#router ospf 2
R2(config-router)#area 2 virtual-link 3.3.3.3
R2(config-router)#exit
R1
R1(config)#do sh ip route
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/2] via 12.12.12.2, 01:27:47, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 00:00:16, FastEthernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.1/32 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 00:12:48, FastEthernet0/0
Kita bisa melihat pada R1 sudah mengenali semua network pada Area1, Area 2
dan Area 3.
R2
R2(config)#do sh ip ro
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 12.12.12.1, 00:15:58, 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 IA 3.3.3.3 [110/2] via 23.23.23.3, 00:03:37, GigabitEthernet1/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.2/32 is directly connected, FastEthernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, GigabitEthernet1/0
L 23.23.23.2/32 is directly connected, GigabitEthernet1/0
R2
R2(config)#do sh ip ospf database
R1
R1(config)#router ospf 1
R1(config-router)#no area 1 virtual-link 2.2.2.2
R1(config-router)#exit
R2
R2(config)#router ospf 2
R2(config-router)#no area 1 virtual-link 1.1.1.1
R2(config-router)#no area 2 virtual-link 3.3.3.3
R2(config-router)#exit
R3
R3(config)#router ospf 3
R3(config-router)#no area 2 virtual-link 2.2.2.2
R3(config-router)#exit
R1
R1(config)#int tunnel 1
R1(config-if)#ip add 102.102.102.1 255.255.255.0
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#tunnel destination 12.12.12.2
R1(config-if)#exit
!
R1(config)#router ospf 1
R1(config-router)#net 102.102.102.1 0.0.0.0 area 0
R1(config-router)#exit
R2
R2(config)#int tunnel 1
R2(config-if)#ip add 102.102.102.2 255.255.255.0
R2(config-if)#tunnel source 12.12.12.2
R2(config-if)#tunnel destination 12.12.12.1
R2(config-if)#exit
R2(config)#router ospf 2
R2(config-router)#network 102.102.102.2 0.0.0.0 area 0
R2(config-router)#exit
R1
R1(config)#do sh ip route
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/2] via 12.12.12.2, 01:08:05, FastEthernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.1/32 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/1001] via 102.102.102.2, 00:02:15, Tunnel1
102.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 102.102.102.0/24 is directly connected, Tunnel1
L 102.102.102.1/32 is directly connected, Tunnel1
Network Area 2 sudah masuk ke dalam routing table, namun Area 3 masih
belum nih temen-temen, kita harus membuat tunnel lagi pada R2 dan R3.
R3
R3(config)#int tunnel 2
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#tunnel destination 23.23.23.2
R3(config-if)#ip add 203.203.203.3 255.255.255.0
R3(config-if)#exit
!
R3(config)#router ospf 3
R3(config-router)#network 203.203.203.3 0.0.0.0 area 0
R3(config-router)#exit
Cek kembali :
R1
R1(config)#do sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 12.12.12.2, 01:30:02, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/2001] via 102.102.102.2, 00:07:33, Tunnel1
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/1001] via 102.102.102.2, 00:24:12, Tunnel1
O 203.203.203.0/24 [110/2000] via 102.102.102.2, 00:17:43, Tunnel1
R2
R2(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 102.102.102.1, 00:23:33, Tunnel1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/1001] via 203.203.203.3, 00:06:59, Tunnel2
Test Ping :
R1
R1(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1(config)#do ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/21/24 ms
R1(config)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/88 ms
Pada Lab kali ini kita akan membuat beberapa area berbeda serta route lain
selain ospf yakni EIGRP. Tujuannya untuk dapat mengetahui LSA tipe berapa
saja yang ada dan digunakan oleh OSPF.
R1
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
!
R1(config-if)#int lo1
R1(config-if)#ip add 100.100.100.1 255.255.255.255
!
R1(config-if)#int lo2
R1(config-if)#ip add 100.100.100.2 255.255.255.255
!
R1(config-if)#int lo3
R1(config-if)#ip add 100.100.100.3 255.255.255.255
!
R1(config-if)#int lo4
R3
R3(config)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
!
R3(config-if)#int g1/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no sh
!
R3(config)#router ospf 3
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 3.3.3.3 0.0.0.0 area 1
R3(config-router)#network 23.23.23.3 0.0.0.0 area 1
• Stub artinya ujung, merupakan router atau area yang paling ujung atau
sisi paling akhir dan tidak memiliki cabang lain serta tidak memiliki jalan
lain untuk menuju jaringan dengan segmen lain.
• Semua external route LSA tipe 4 dan tipe 5 (network dari routing lain yang
diresdribute ke dalam OSPF) tidak dimasukkan dalam routing tabel
• Hal ini akan mengurangi kinerja CPU dan memori router, mengurangi
jumlah routing tabel
R2
R2(config)#router ospf 2
R2(config-router)#area 1 stub
R2(config-router)#exit
*Jul 8 16:44:41.562: %OSPF-5-ADJCHG: Process 2, Nbr 3.3.3.3 on
GigabitEthernet1/0 from FULL to DOWN, Neighbor Down: Adjacency forced
to reset
R2(config)#
R3
R3(config)#do sh ip route ospf
O*IA 0.0.0.0/0 [110/2] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:01:52, GigabitEthernet1/0
Muncul Gateway Default Route (0.0.0.0/0) sebagai ganti utk menuju network2
External route.
Bila sebelumnya terdapat routing berikut
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:16:25, GigabitEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:16:25, GigabitEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:16:25, GigabitEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:16:25, GigabitEthernet1/0
Nah sekarang sudah di hapus nih dan tidak ada lagi terdapat dalam routing
table nya.
• Lebih sadis dari Stub Area, karena kini benar – benar totally stub
• Bukan hanya Exernal Route saja, bahkan internal route dari OSPF area lain
juga tidak dimasukkan dalam routing table
• Konfigurasi hanya dilakukan pada router ABR saja, tidak di semua router
dalam stub area
• Router R2 merupakan ABR (Area Border Router) yang menghubungkan
area 0 dan stub area 1
R2
R2(config)#router ospf 2
R2(config-router)#no area 1 stub
R2(config-router)#area 1 stub no-summary
R2(config-router)#exit
R3
R3(config)#do sh ip route ospf
O*IA 0.0.0.0/0 [110/2] via 23.23.23.2, 00:36:51, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:36:51, GigabitEthernet1/0
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:16:30, GigabitEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:16:30, GigabitEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:16:30, GigabitEthernet1/0
Maka pada OSPF Tottaly Stub Area tidak lagi terdapat dalam routing tablenya,.
Dalam OSPF database, semua LSA Type 3 kecuali default route dihapus,
sehingga yang sebelumnya link berikut masih ada, sekarang sudah tidak lagi
terdapat dalam OSPF Database nya.
12.12.12.0 2.2.2.2 442 0x8000000B 0x00AF58
100.100.100.1 2.2.2.2 442 0x8000000A 0x0045B8
100.100.100.2 2.2.2.2 442 0x8000000A 0x003BC1
100.100.100.3 2.2.2.2 442 0x8000000A 0x0031CA
• Seperti stub area tapi masih bisa nego-nego sedikit alias bisa digoyang
• Kalau pada stub dan totally stub area, maka External route benar-benar
tidak diterima ataupun dikirimkan, nah bila diinginkan pada area stub
masih bisa mengirim external route maka solusinya menggunakan NSSA.
• Namun External Route ini tidak sebagai LSA Type 5, melainkan dalam
bentuk LSA Type 7, karena memang LSA Type 3,4,5 benar – benar dibatasi
pada stub area jadi alternatifnya diakali menggunakan LSA Type 7
• Dan bila diinginkan Internal Route OSPF dari area lain masih bisa
diterima, maka solusinya juga menggunakan NSSA.
R3
R3(config)#int lo1
R3(config-if)#ip add 33.33.33.1 255.255.255.255
!
R3(config-if)#int lo2
R3(config-if)#ip add 33.33.33.2 255.255.255.255
!
R3(config-if)#int lo3
R3(config-if)#ip add 33.33.33.3 255.255.255.255
!
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 33.33.33.0
R3(config-router)#no auto-summary
R2
R2(config)#router ospf 2
R2(config-router)#no area 1 stub
R2(config-router)#area 1 nssa
R2(config-router)#exit
R3
R3(config-router)#no area 1 stub
R3(config-router)#area 1 nssa
R3(config-router)#exit
R3
R3(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:00:28, GigabitEthernet1/0
Jos mantab... Internal Area dari OSPF Area 100 bisa diterima dengan baik di
stub router R3,.
R3
R3(config)#do ping 100.100.100.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R3(config)#
Maka kita perlu menambahkan konfigurasi berikut cukup pada router ABR nya
saja yakni dalam hal ini router R2.
R2
R2(config)#router ospf 2
R2(config-router)#area 1 nssa default-information-originate
R2(config-router)#exit
R3
R3(config)#do sh ip route ospf
O*N2 0.0.0.0/0 [110/1] via 23.23.23.2, 00:09:06, GigabitEthernet1/0
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:23:13, GigabitEthernet1/0
Nah sekarang sudah muncul kan untuk default route (0.0.0.0/0) , sekarang kita
akan coba tes ping kembali,.
R3
R3#ping 100.100.100.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/29/52 ms
!
R3#ping 100.100.100.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/28 ms
!
R3#ping 100.100.100.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/27/36 ms
!
R3#ping 100.100.100.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.7, timeout is 2 seconds:
kalau kemudian diinginkan internal route OSPF area lain tidak ditampilkan
dalam database, namun masih bisa tetap mengirimkan External Route RIP nya,
maka tambahkan nosummary pada router ABR R2
R2
R2(config)#router ospf 2
R2(config-router)#area 1 nssa no-summary
R2(config-router)#exit
R2(config)#
maka pada R3 sudah tidak lagi terdapat routing inter area dan digantikan
dengan default route saja
R3
R3(config)#do sh ip route ospf
Gateway of last resort is 23.23.23.2 to network 0.0.0.0
O*IA 0.0.0.0/0 [110/2] via 23.23.23.2, 00:01:54, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:40:26, GigabitEthernet1/0
R3
R3(config)#do ping 100.100.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/32 ms
R3(config)#do ping 100.100.100.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/32/36 ms
R3(config)#do ping 100.100.100.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/33/40 ms
R3(config)#do ping 100.100.100.4
Dan pastikan juga route external RIP dari R3 masih bisa di terima R1
R1
R1(config)#do sh ip route ospf
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/2] via 12.12.12.2, 07:15:08, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 01:07:45, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 01:07:45, FastEthernet0/0
33.0.0.0/32 is subnetted, 3 subnets
O E2 33.33.33.1 [110/20] via 12.12.12.2, 01:07:44, FastEthernet0/0
O E2 33.33.33.2 [110/20] via 12.12.12.2, 01:07:44, FastEthernet0/0
O E2 33.33.33.3 [110/20] via 12.12.12.2, 01:07:44, FastEthernet0/0
Tes ping ke semua network 33.33.33.1-3/32,.
R1
R1(config)#do ping 33.33.33.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.1, timeout is 2 seconds:
• Routing yang berasal dari routing protocol lain diberikan label dalam tabel
routing dengan label “OE2” yang berarti merupakan hasil redistribute
dengan menggunakan metric type 2.
• Redistribute pada OSPF ada 2 macam, yaitu redistribute metric type 1 dan
redistribute metric type 2
R2
R2(config)#router ospf 2
R2(config-router)#no area 1 nssa no-summary
R2(config-router)#no area 1 nssa
R2(config-router)#exit
R3
R3(config)#router ospf 3
R3(config-router)#no area 1 nssa
R3(config-router)#exit
R1
R1(config)#do sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/2] via 12.12.12.2, 09:49:43, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 00:02:37, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 00:02:37, FastEthernet0/0
33.0.0.0/32 is subnetted, 3 subnets
O E2 33.33.33.1 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0
O E2 33.33.33.2 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0
O E2 33.33.33.3 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0
R2
R2(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 23.23.23.3, 00:20:56, GigabitEthernet1/0
33.0.0.0/32 is subnetted, 3 subnets
O E2 33.33.33.1 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0
O E2 33.33.33.2 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0
O E2 33.33.33.3 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0
O IA 100.100.100.2 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0
O IA 100.100.100.3 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0
O E2 100.100.100.4 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0
O E2 100.100.100.5 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0
O E2 100.100.100.6 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0
O E2 100.100.100.7 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0
R1
R1(config)#do sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/2] via 12.12.12.2, 10:49:50, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 01:02:44, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 01:02:44, FastEthernet0/0
33.0.0.0/32 is subnetted, 3 subnets
O E1 33.33.33.1 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0
O E1 33.33.33.2 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0
O E1 33.33.33.3 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0
Terlihat bahwa code Route nya berubah menjadi E1 dan nilai Metric nya
berubah dan berbeda pada setiap Router.
R2
R2(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 12.12.12.1, 03:17:26, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 23.23.23.3, 03:16:50, GigabitEthernet1/0
33.0.0.0/32 is subnetted, 3 subnets
O E1 33.33.33.1 [110/21] via 23.23.23.3, 00:04:47, GigabitEthernet1/0
O E1 33.33.33.2 [110/21] via 23.23.23.3, 00:04:47, GigabitEthernet1/0
O E1 33.33.33.3 [110/21] via 23.23.23.3, 00:04:47, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/2] via 12.12.12.1, 03:17:26, FastEthernet0/0
O IA 100.100.100.2 [110/2] via 12.12.12.1, 03:17:26, FastEthernet0/0
O IA 100.100.100.3 [110/2] via 12.12.12.1, 03:17:26, FastEthernet0/0
O E2 100.100.100.4 [110/20] via 12.12.12.1, 03:17:26, FastEthernet0/0
O E2 100.100.100.5 [110/20] via 12.12.12.1, 03:17:26, FastEthernet0/0
O E2 100.100.100.6 [110/20] via 12.12.12.1, 03:17:26, FastEthernet0/0
O E2 100.100.100.7 [110/20] via 12.12.12.1, 03:17:26, FastEthernet0/0
Konfigurasikan Filtering Distribute List Agar yang Boleh Lewat Hanya IP Genap
Saja,.
R2
R2(config)#access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#router ospf 2
R2(config-router)#distribute-list 1 in
R2(config-router)#exit
Cek kembali
Nah yang paling penting nih dan diperhatikan ospf databasenya yang tidak
berubah meski sudah di filter, hal tersebut dikarenakan pada OSPF semua
router dlam satu area memiliki database yang sama dan coba kalian cek di
router lain ya gaesss.
R1
R1(config)#do sh ip ospf database
R3
R3(config)#do sh ip ospf database
OSPF Router with ID (3.3.3.3) (Process ID 3)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 812 0x80000024 0x003422 2
3.3.3.3 3.3.3.3 634 0x80000021 0x002D1E 2
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
23.23.23.3 3.3.3.3 634 0x80000013 0x008E31
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 812 0x80000008 0x002503
12.12.12.0 2.2.2.2 812 0x80000008 0x009771
100.100.100.2 2.2.2.2 812 0x80000008 0x0021DB
Semua router dalam satu area yang sama memiliki OSPF database nya yang
sama dan beriklut routing table dari R3,.
R3
R3(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 03:34:02, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 03:34:02, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 03:34:02, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 5 subnets
O IA 100.100.100.2 [110/3] via 23.23.23.2, 03:34:02, GigabitEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 03:33:52, GigabitEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 03:33:52, GigabitEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 03:33:52, GigabitEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 03:33:52, GigabitEthernet1/0
R1
R1(config)#do sh run | section ospf
R1(config)#router ospf 1
R1(config)# router-id 1.1.1.1
R1(config)# redistribute eigrp 10 subnets
R1(config)# network 1.1.1.1 0.0.0.0 area 0
R1(config)#network 12.12.12.1 0.0.0.0 area 0
R1(config)#network 100.100.100.1 0.0.0.0 area 100
R1(config)#network 100.100.100.2 0.0.0.0 area 100
R1(config)#network 100.100.100.3 0.0.0.0 area 100
Hapus terlebih dahulu untuk konfigurasi access-list distribute list pada R2
R2
R2(config)#no access-list 1 permit 0.0.0.0 255.255.255.254
R2(config)#router ospf 2
R2(config-router)#no distribute-list 1 in
R2(config-router)#exit
R3
R3(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 04:10:36, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 04:10:36, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 04:10:36, GigabitEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:04:13, GigabitEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 04:10:36, GigabitEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:04:13, GigabitEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 04:10:26, GigabitEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 04:10:26, GigabitEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 04:10:26, GigabitEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 04:10:26, GigabitEthernet1/0
Konfigurasikan summarization di R1,.
R1
R1(config)#router ospf 1
R1(config-router)#area 100 range 100.100.100.0 255.255.255.248
R1(config-router)#exit
Cek lagi R3
R3
R3(config)#do sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 05:05:46, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 05:05:46, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 05:05:46, GigabitEthernet1/0
100.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA 100.100.100.0/29 [110/3] via 23.23.23.2, 00:27:35, GigabitEthernet1/0
O E2 100.100.100.4/32
[110/20] via 23.23.23.2, 05:05:36, GigabitEthernet1/0
O E2 100.100.100.5/32
[110/20] via 23.23.23.2, 05:05:36, GigabitEthernet1/0
O E2 100.100.100.6/32
Nah sudah ter summary kan network 100.100.100.0 nya. Cek di R1.
R1
R1(config)#do sh ip ro
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 IA 2.2.2.2 [110/2] via 12.12.12.2, 00:29:19, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 00:29:19, FastEthernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, FastEthernet0/0
L 12.12.12.1/32 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 00:29:19, FastEthernet0/0
33.0.0.0/32 is subnetted, 3 subnets
O E1 33.33.33.1 [110/22] via 12.12.12.2, 00:29:19, FastEthernet0/0
O E1 33.33.33.2 [110/22] via 12.12.12.2, 00:29:19, FastEthernet0/0
O E1 33.33.33.3 [110/22] via 12.12.12.2, 00:29:19, FastEthernet0/0
100.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
O 100.100.100.0/29 is a summary, 00:29:19, Null0
C 100.100.100.1/32 is directly connected, Loopback1
C 100.100.100.2/32 is directly connected, Loopback2
C 100.100.100.3/32 is directly connected, Loopback3
C 100.100.100.4/32 is directly connected, Loopback4
C 100.100.100.5/32 is directly connected, Loopback5
C 100.100.100.6/32 is directly connected, Loopback6
C 100.100.100.7/32 is directly connected, Loopback7
Pada OSPF, discard route akan otomatis muncul bila summary route
dikonfigurasikan. Hal tersebut untuk menghindari terjadinya adanya forwarding
loop, bila ingin dihapuskan, maka konfigurasikan berikut.
R1
R1(config)#router ospf 1
R1(config-router)#no discard-route
R1(config-router)#exit
R3
R3(config)#do sh run | section rip
redistribute rip metric-type 1 subnets
router rip
version 2
network 33.0.0.0
no auto-summary
!
R3(config)#do sh run | section ospf
router ospf 3
router-id 3.3.3.3
redistribute rip metric-type 1 subnets
network 3.3.3.3 0.0.0.0 area 1
network 23.23.23.3 0.0.0.0 area 1
R3
R3(config)#router ospf 3
R3(config-router)#summary-address 33.33.33.0 255.255.255.240
R3(config-router)#exit
Cek kembali di R1
R1
R1(config)#do sh ip route ospf
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/2] via 12.12.12.2, 00:56:57, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/3] via 12.12.12.2, 00:56:57, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O IA 23.23.23.0 [110/2] via 12.12.12.2, 00:56:57, FastEthernet0/0
33.0.0.0/28 is subnetted, 1 subnets
O E1 33.33.33.0 [110/22] via 12.12.12.2, 00:01:13, FastEthernet0/0
R3
R3(config)#do sh ip route
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 06:58:11, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 06:58:11, GigabitEthernet1/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 06:58:11, GigabitEthernet1/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, GigabitEthernet1/0
L 23.23.23.3/32 is directly connected, GigabitEthernet1/0
33.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O 33.33.33.0/28 is a summary, 00:03:11, Null0
C 33.33.33.1/32 is directly connected, Loopback1
C 33.33.33.2/32 is directly connected, Loopback2
C 33.33.33.3/32 is directly connected, Loopback3
100.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA 100.100.100.0/29 [110/3] via 23.23.23.2, 02:20:00,
GigabitEthernet1/0
O E2 100.100.100.4/32
[110/20] via 23.23.23.2, 06:58:01, GigabitEthernet1/0
O E2 100.100.100.5/32
[110/20] via 23.23.23.2, 06:58:01, GigabitEthernet1/0
O E2 100.100.100.6/32
[110/20] via 23.23.23.2, 06:58:01, GigabitEthernet1/0
O E2 100.100.100.7/32
[110/20] via 23.23.23.2, 06:58:01, GigabitEthernet1/0
R3
R3(config)#router ospf 3
R3(config-router)#no discard-route
R3(config-router)#exit
R1
R1(config)#do ping 33.33.33.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/57/96 ms
R1(config)#do ping 33.33.33.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/22/24 ms
R1(config)#do ping 33.33.33.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/32 ms
Kali ini kita akan belajar untuk mendistribusikan default route ke semua
router. Pada R1 hapus routing eigrp 10 lalu jangan diadvertise ke OSPF
karena nantinya akan digunakan untuk pengetesan tes ping menuju route
yang tidak terdapat dalam routing tabelnya.
R1
R1(config)#no router eigrp 10
R1(config)#router ospf 10
R1(config-router)#no redistribute eigrp 10 subnets
R1(config-router)#no area 100 range 100.100.100.0 255.255.255.248
R1(config-router)#default-information originate always
R1(config-router)#exit
R1(config)#
R3
R3#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:10:50, GigabitEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:10:55, GigabitEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:10:55, GigabitEthernet1/0
100.0.0.0/29 is subnetted, 1 subnets
O IA 100.100.100.0 [110/3] via 23.23.23.2, 00:10:50, GigabitEthernet1/0
R3
R3#sh ip route 100.100.100.4
% Subnet not in table
R3
R3#ping 100.100.100.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/60/96 ms
Buat static route dari R2 menuju ke salah satu loopback R1, kemudian
redistribute kedalam OSPF
R2
R2(config)#ip route 100.100.100.4 255.255.255.255 12.12.12.1
R2(config)#route ospf 2
R2(config-router)#redistribute static subnets
R2(config-router)#exit
R3
R3#sh ip route ospf
O*E2 0.0.0.0/0 [110/1] via 23.23.23.2, 00:11:06, FastEthernet1/0
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:14:47, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:14:47, FastEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:14:47, FastEthernet1/0
100.0.0.0/32 is subnetted, 4 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:11:20, FastEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:11:20, FastEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:11:20, FastEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:02:08, FastEthernet1/0
R1
R1(config)#router ospf 1
R1(config-router)#no default-information originate always
R1(config-router)#exit
R2
R2(config)#no ip route 100.100.100.4 255.255.255.255 12.12.12.1
R2(config)#router ospf 2
R2(config-router)#no redistribute static subnets
R2(config-router)#exit
R1
R1(config)#router ospf 1
R1(config-router)#redistribute connected
% Only classful networks will be redistributed
Cek di R3 gaesss….
R3
R3#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 00:25:02, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 00:25:02, FastEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 00:25:02, FastEthernet1/0
100.0.0.0/32 is subnetted, 3 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 00:21:35, FastEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 00:21:35, FastEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 00:21:35, FastEthernet1/0
R1
R1(config)#router ospf 1
R1(config-router)#redistribute connected ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
nssa-only Limit redistributed routes to NSSA areas
route-map Route map reference
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF
<cr>
R1(config-router)#redistribute connected subnets
R1(config-router)#exit
R3
R3#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 01:47:44, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 01:47:44, FastEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 01:47:44, FastEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 01:44:17, FastEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 01:44:17, FastEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 01:44:17, FastEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 01:20:09, FastEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 01:20:09, FastEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 01:20:09, FastEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 01:20:09, FastEthernet1/0
R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 100.100.100.0
R1(config-router)#no auto-summary
R1(config-router)#exit
!
R1(config)#router ospf 1
R1(config-router)#no redistribute connected subnets
R1(config-router)#redistribute rip subnets
R1(config-router)#exit
Cek di R3…..
R3
R3#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 01:53:47, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 01:53:47, FastEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 01:53:47, FastEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 01:50:20, FastEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 01:50:20, FastEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 01:50:20, FastEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:00:05, FastEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:00:05, FastEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:00:05, FastEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:00:05, FastEthernet1/0
R1
R1(config)#no router rip
R1(config)#router eigrp 10
R1(config-router)#network 100.100.100.4 0.0.0.7
R1(config-router)#no auto-summary
R1(config-router)#exit
R1(config)#router ospf 1
R1(config-router)#redistribute eigrp 10 subnets
R1(config-router)#exit
Cek Di R3 Kembali,…
R3
R3#sh ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/3] via 23.23.23.2, 02:03:26, FastEthernet1/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/2] via 23.23.23.2, 02:03:26, FastEthernet1/0
12.0.0.0/24 is subnetted, 1 subnets
O IA 12.12.12.0 [110/2] via 23.23.23.2, 02:03:26, FastEthernet1/0
100.0.0.0/32 is subnetted, 7 subnets
O IA 100.100.100.1 [110/3] via 23.23.23.2, 01:59:59, FastEthernet1/0
O IA 100.100.100.2 [110/3] via 23.23.23.2, 01:59:59, FastEthernet1/0
O IA 100.100.100.3 [110/3] via 23.23.23.2, 01:59:59, FastEthernet1/0
O E2 100.100.100.4 [110/20] via 23.23.23.2, 00:03:28, FastEthernet1/0
O E2 100.100.100.5 [110/20] via 23.23.23.2, 00:03:28, FastEthernet1/0
O E2 100.100.100.6 [110/20] via 23.23.23.2, 00:03:28, FastEthernet1/0
O E2 100.100.100.7 [110/20] via 23.23.23.2, 00:03:28, FastEthernet1/0
R1
R1(config)#int fastEthernet 0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int gigabitEthernet 2/0
R1(config-if)#ip add 13.13.13.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 255.255.255.255 area 0
R1(config-router)#auto-cost reference-bandwidth 1000
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all routers
R3
R3(config)#int gIgabitEthernet 2/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int Gigabitethernet 3/0
R3(config-if)#ip add 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#exit
R3(config)#router ospf 3
R3(config-router)#network 0.0.0.0 255.255.255.255 area 0
R3(config-router)#auto-cost reference-bandwidth 1000
R1
R1#show ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "ospf 1", distance 110, metric 3, type intra area
Last update from 13.13.13.3 on GigabitEthernet2/0, 00:41:25 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 2.2.2.2, 00:41:25 ago, via GigabitEthernet2/0
Route metric is 3, traffic share count is 1
R1
R1(config)#int g2/0
R1(config-if)#shutdown
R1(config-if)#exit
R1
R1#show ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "ospf 1", distance 110, metric 11, type intra area
Last update from 12.12.12.2 on FastEthernet0/0, 00:02:57 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 2.2.2.2, 00:02:57 ago, via FastEthernet0/0
Route metric is 11, traffic share count is 1
R1
R1(config-if)#int g2/0
R1(config-if)#bandwidth 1000
R1
R1(config)#do sh ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via "ospf 1", distance 110, metric 11, type intra area
Last update from 12.12.12.2 on FastEthernet0/0, 00:01:25 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 2.2.2.2, 00:01:25 ago, via FastEthernet0/0
Route metric is 11, traffic share count is 1
R2
R2(config)#int f0/0
R2(config-if)#ip ospf authentication
R2(config-if)#ip ospf authentication-key CCNP
R2(config-if)#EXIT
R2(config)#
*Jul 22 00:57:32.551: %OSPF-5-ADJCHG: Process 2, Nbr 1.1.1.1 on
FastEthernet0/0 from LOADING to FULL, Loading Done
R1
R1#show ip ospf interface f0/0 | include authentication
Simple password authentication enabled
R2
R2#show ip ospf interface f0/0 | include authentication
Simple password authentication enabled
R2
R2(config)#int g2/0
R2(config-if)#ip ospf authentication message-digest
R2(config-if)#ip ospf message-digest-key 1 md5 CCNP
R3
R3(config)#int g3/0
R3(config-if)#ip ospf authentication message-digest
R3(config-if)#ip ospf message-digest-key 1 md5 CCNP
Verifikasi apakah di R2 dan R3 sudah aktif untuk authentication MD5
R2
R2#show ip ospf int g2/0 | include authentication
Message digest authentication enabled
R3
R3#show ip ospf int g3/0 | include authentication
Message digest authentication enabled
Oke Guysss pada lab kita kali ini adallah VRF (Virtual Routing and Forwarding)
teknologi yang memungkinkan kita membuat dua segment IP Address yang
sama di dua interface router yang berbeda tapi, di Routing table yang
berbeda. VRF yang dijalankan tanpa MPLS disebut dengan VRF Lite,.
Oke langsung aja nih gasskeuunnn Buat VRF dan Daftarkan Interface ke
dalam VRF nya masing masing, sama seperti daftarin vlan ke interface
switch,.
ISP
R5#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#hostname ISP
ISP(config)#ip vrf KIRI
ISP(config-vrf)#exit
ISP(config)#ip vrf KANAN
ISP(config-vrf)#exit
ISP(config)#int f0/0
ISP(config-if)#ip vrf forwarding KIRI
ISP(config-if)#ip add 192.168.1.2 255.255.255.0
ISP(config-if)#no shutdown
ISP(config-if)#exit
!
ISP(config)#int f0/1
R2
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#ip add 192.168.1.3 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R3
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int g1/0
R3(config-if)#ip add 192.168.2.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#int loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.255
R3(config-if)#exit
R3(config)#router ospf 1
R3(config-router)#network 192.168.2.0 0.0.0.255 area 0
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
R4
R4(config)#conf t
R4(config)#int g1/0
R4(config-if)#ip address 192.168.2.3 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#int loopback 0
R4(config-if)#ip address 4.4.4.4 255.255.255.255
R4(config-if)#exit
R4(config)#router ospf 1
R4(config-router)#network 192.168.2.0 0.0.0.255 area 0
R4(config-router)#network 4.4.4.4 0.0.0.0 area 0
R4(config-router)#exit
ISP
ISP(config)#router ospf 1 vrf KIRI
ISP(config-router)#network 192.168.1.0 0.0.0.255 area 0
ISP(config-router)#network 192.168.2.0 0.0.0.255 area 0
ISP(config-router)#
ISP(config-router)#router ospf 2 vrf KANAN
ISP(config-router)#network 192.168.1.0 0.0.0.255 area 0
ISP(config-router)#network 192.168.2.0 0.0.0.255 area 0
Verifikasi gaaesss….
ISP
ISP(config)#do sh vrf
Name Default RD Protocols Interfaces
KANAN <not set> ipv4 Fa0/1
Gi2/0
KIRI <not set> ipv4 Fa0/0
Gi1/0
ISP
ISP#sh ip route vrf KIRI
Routing Table: KIRI
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 192.168.1.1, 00:14:16, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/2] via 192.168.2.1, 00:14:16, GigabitEthernet1/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet0/0
L 192.168.1.2/32 is directly connected, FastEthernet0/0
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, GigabitEthernet1/0
L 192.168.2.2/32 is directly connected, GigabitEthernet1/0
R1
R1(config)#ipv6 unicast-routing
R2
R2(config)#ipv6 unicast-routing
Khusus pada Switch L3, modulnya ipv6 nya harus diload terlebih dahulu
Sample
SW(config)#sdm prefer dual-ipv4-ipv6 default
R1
R1(config)#int fastEthernet 0/0
R1(config-if)#ipv6 enable
R1(config)#no sh
R1(config-if)#exit
R1
R1#sh ipv6 int brief
FastEthernet0/0 [administratively down/down]
FE80::C801:4FF:FEFC:8
FastEthernet0/1 [administratively down/down]
unassigned
GigabitEthernet1/0 [administratively down/down]
Unassigned
Berikut penjelasan nilai link-local address yang didapat dari nilai mac-
address.
R2
R2#sh int f0/0
FastEthernet0/0 is administratively down, line protocol is down
Hardware is i82543 (Livengood), address is ca02.050c.0008 (bia
ca02.050c.0008)
R1
R1(config)#do show ipv6 int brief
FastEthernet0/0 [up/up]
FE80::C801:4FF:FEFC:8
12::1
R2
R2(config)#int f0/0
R2(config-if)#ipv6 address 12::2/126
R2(config-if)#no shutdown
R2(config-if)#exit
R2
R2(config)#do sh ipv6 int brief
FastEthernet0/0 [up/up]
FE80::C802:5FF:FE0C:8
12::2
R2
R2(config)#do ping 12::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/20 ms
R1
R1(config)#do sh ipv6 int brief
FastEthernet0/0 [up/up]
FE80::C801:4FF:FEFC:8
12::1
21::C801:4FF:FEFC:8
R2
R2(config)#interface f0/0
R2(config-if)#ipv6 address 21::/64 eui-64
R2
R2(config)#do sh ipv6 int brief
FastEthernet0/0 [up/up]
FE80::C802:5FF:FE0C:8
12::2
21::C802:5FF:FE0C:8
Cek ping
R1
R1(config)#do ping 21::C802:5FF:FE0C:8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 21::C802:5FF:FE0C:8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/26/52
ms
R2
R2(config)#do ping 21::C801:4FF:FEFC:8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 21::C801:4FF:FEFC:8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/20
ms
R2
R2(config)#int fastEthernet 0/0
R2(config-if)#ipv6 address 12::2/126
R2(config-if)#no shutdown
R2(config-if)#exit
!
R2(config)#int loopback0
R2(config-if)#ipv6 address 2::2/128
R2(config-if)#exit
R1
R1(config)#no ipv6 route 2::2/128 12::2
### Konfigurasikan static routing via interface ###
R1(config)#ipv6 route 2::2/128 f0/0
Ups.. gak bias, Kita harus menambahkan link-local addressnya jika ingin
menggunakan interface. Hapus konfigurasi sebelumnya dan tambahkan
link-local address.
R1
R1(config)#no ipv6 route 2::2/128 f0/0
R1(config)#ipv6 route 2::2/128 f0/0 FE80::C802:5FF:FE0C:8
R2
R2(config)#do sh ipv6 int f0/0 | i link-local
IPv6 is enabled, link-local address is FE80::C802:5FF:FE0C:8
No Virtual link-local address(es):
R2
R2(config)#do sh ipv6 route
IPv6 Routing Table - Default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, M - MIPv6, R - RIP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external
R2
R2(config)#ipv6 unicast-routing
R2(config)#int f0/0
R2(config-if)#ipv6 address 12::2/126
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ipv6 address 23::2/126
R2(config-if)#no shutdown
R2(config-if)#int lo0
R2(config-if)#ipv6 address 2::2/128
R3
R3(config)#ipv6 unicast-routing
R3(config)#int f0/0
R3(config-if)#ipv6 address 23::3/126
R3(config-if)#no shutdown
R3(config-if)#int lo0
R3(config-if)#ipv6 address 3::3/128
R2
R2(config)#interface f0/0
R2(config-if)#ipv6 rip IDN enable
R2(config-if)#exit
R2(config)#interface f0/1
R2(config-if)#ipv6 rip IDN enable
R2(config-if)#exit
R2(config)#interface lo0
R2(config-if)#ipv6 rip IDN enable
R2(config-if)#exit
R3
R3(config)#interface f0/0
R3(config-if)#ipv6 rip IDN enable
R3(config-if)#exit
R3(config)#interface lo0
R3(config-if)#ipv6 rip IDN enable
R3(config-if)#exit
R1
R1(config)#do sh ipv6 route rip
R 2::2/128 [120/2]
via FE80::C802:7FF:FE3B:8, FastEthernet0/0
R 3::3/128 [120/3]
via FE80::C802:7FF:FE3B:8, FastEthernet0/0
R 23::/126 [120/2]
via FE80::C802:7FF:FE3B:8, FastEthernet0/0
R1
R1#sh ipv6 protocols
IPv6 Routing Protocol is "connected"
IPv6 Routing Protocol is "rip IDN"
Interfaces:
Loopback0
FastEthernet0/0
Redistribution:
None
R1
R1#sh ipv6 rip IDN
RIP process "IDN", port 521, multicast-group FF02::9, pid 261
Administrative distance is 120. Maximum paths is 16
Updates every 30 seconds, expire after 180
Holddown lasts 0 seconds, garbage collect after 120
Split horizon is on; poison reverse is off
Default routes are not generated
Periodic updates 26, trigger updates 4
Interfaces:
Loopback0
FastEthernet0/0
Redistribution:
None
Konfigurasikan OSPFv3
R1
R1(config)#ipv6 router ospf 10
R1(config-rtr)#
*Jul 10 17:16:45.195: %OSPFv3-4-NORTRID: OSPFv3 process 10 could not
pick a router-id,
please configure manually
R1(config-rtr)#router
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit
!
R1(config)#interface f0/0
R1(config-if)#ipv6 ospf 10 area 0
R1(config-if)#exit
!
R1(config)#interface lo0
R1(config-if)#ipv6 ospf 10 area 0
R1(config-if)#exit
R2
R2(config)#ipv6 router ospf 10
R2(config-rtr)#
*Jul 10 17:21:07.707: %OSPFv3-4-NORTRID: OSPFv3 process 10 could not
pick a router-id,
please configure manually
R3
R3(config)#ipv6 router ospf 10
R3(config-rtr)#
*Jul 10 17:24:34.535: %OSPFv3-4-NORTRID: OSPFv3 process 10 could not
pick a router-id,
please configure manually
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#exit
R3(config)#interface f0/0
R3(config-if)#ipv6 ospf 10 area 0
*Jul 10 17:25:02.283: %OSPFv3-5-ADJCHG: Process 10, Nbr 2.2.2.2 on
FastEthernet0/0 from LOADING to FULL, Loading Done
R3(config-if)#interface lo0
R3(config-if)#ipv6 ospf 10 area 0
R3(config-if)#exit
R2
R2(config)#do sh ipv6 ospf database
OSPFv3 Router with ID (2.2.2.2) (Process ID 10)
Router Link States (Area 0)
ADV Router Age Seq# Fragment ID Link count Bits
1.1.1.1 668 0x80000004 0 1 None
2.2.2.2 476 0x80000006 0 2 None
3.3.3.3 465 0x80000003 0 1 None
Net Link States (Area 0)
ADV Router Age Seq# Link ID Rtr count
1.1.1.1 667 0x80000001 4 2
2.2.2.2 476 0x80000001 5 2
Link (Type-8) Link States (Area 0)
ADV Router Age Seq# Link ID Interface
2.2.2.2 631 0x80000001 5 Fa0/1
3.3.3.3 477 0x80000001 4 Fa0/1
1.1.1.1 864 0x80000001 4 Fa0/0
2.2.2.2 667 0x80000001 4 Fa0/0
Intra Area Prefix Link States (Area 0)
R1#ping 2::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/14/20 ms
Untuk cara redistributed baik di Ipv4 dan Ipv6 caranya hampir sama.
Berikut konfigurasinya :
R1
R1(config)#ipv6 unicast-routing
R1(config)#int f0/0
R1(config-if)#ipv6 address 12::1/126
R1(config-if)#no shutdown
R1(config-if)#int lo0
R1(config-if)#ipv6 address 1::1/128
R2
R2(config)#ipv6 unicast-routing
R2(config)#int f0/0
R2(config-if)#ipv6 address 12::2/126
R2(config-if)#no shutdown
R2(config-if)#int f0/1
R2(config-if)#ipv6 address 23::2/126
R2(config-if)#no shutdown
R2(config-if)#int lo0
R2(config-if)#ipv6 address 2::2/128
R3
R3(config)#ipv6 unicast-routing
R3(config)#int f0/0
R3(config-if)#ipv6 address 23::3/126
R3(config-if)#no shutdown
R3(config-if)#int lo0
R3(config-if)#ipv6 address 3::3/128
R2
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 10
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#exit
R2(config)#ipv6 router rip IDN
R2(config-rtr)#exit
R2(config)#interface f0/0
R2(config-if)#ipv6 ospf 10 area 0
R2(config-if)#interface f0/1
R2(config-if)#ipv6 rip IDN enable
R2(config)#int lo0
R2(config-if)#ipv6 ospf 10 area 0
R2(config-if)#exit
R3
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router rip IDN
R3(config-rtr)#exit
R3(config)#interface f0/0
R3(config-if)#ipv6 rip IDN enable
R3(config-if)#interface lo0
R3(config-if)#ipv6 rip IDN enable
R3(config-if)#exit
R3
R3(config)#do sh ipv6 route rip
IPv6 Routing Table - Default - 4 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, M - MIPv6, R - RIP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
R 1::1/128 [120/2]
via FE80::C802:4FF:FEF0:54, GigabitEthernet2/0
R3(config)#
R3
R3(config)#do ping 1::1 source 3::3
R1
R1(config)#ipv6 router eigrp 10
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#no shutdown--→ mengaktifkan routing eigrp
R1(config)#interface f0/0
R1(config-if)#ipv6 eigrp 10
R1(config-if)#interface lo0
R1(config-if)#ipv6 eigrp 10
R1(config-if)#exit
R1(config)#
*Jul 10 19:03:46.779: %DUAL-5-NBRCHANGE: IPv6-EIGRP(0) 10:
NeighborFE80::C802:7FF:FE3B:8 (FastEthernet0/0) is up: new adjacency
R2
R2(config)#ipv6 router eigrp 10
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#no shutdown
R2(config-rtr)#exit
R2(config)#interface f0/0
R2(config-if)#ipv6 eigrp 10
R2(config-if)#exit
R2(config)#
*Jul 10 19:03:46.803: %DUAL-5-NBRCHANGE: IPv6-EIGRP(0) 10:
Neighbor FE80::C801:7FF:FE2C:8 (FastEthernet0/0) is up: new adjacency
R2(config)#interface f0/1
R3
R3(config)#ipv6 router eigrp 10
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#no shutdown
R3(config-rtr)#exit
R3(config)#interface f0/0
R3(config-if)#ipv6 eigrp 10
R3(config-if)#interface lo0
R3(config-if)#ipv6 eigrp 10
R3(config-if)#exit
R1
R1(config)#do ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/39/48
ms
IPv6 dan IPv4 tidak compatible satu sama lain, maka agar IPv6 dan IPv4
bisa hidup berdampingan salah satunya kita bisa menggunakan tunneling.
Untuk lab kali ini kita akan menggunakan static point – to – point
tunneling, ada dua metode yang bisa kita gunakan :
- Manual Tunnel (IPv6IP)
- GRE Tunnel
Berikut konfigurasinya, kita konfigurasi dasar terlebih dahulu :
R1
R1(config)#int fastEthernet 0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int loopback0
R1(config-if)#ipv6 address 1::1/128
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 12.12.12.0
R1(config-router)#no auto-summary
R1(config-router)#exit
R2
R2(config)#int fastEthernet 0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#int fastEthernet 0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R3
R3(config)#int f0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int lo0
R3(config-if)#ipv6 address 3::3/128
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 23.23.23.0
R3(config-router)#no auto-summary
R3(config-router)#exit
Konfigurasi Tunnel
R1
R1(config)#int tunnel 0
R1(config-if)#ipv6 address 13::1/64
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#tunnel destination 23.23.23.3
R1(config-if)#tunnel mode ipv6ip
R1(config-if)#exit
R3
R3(config)#int tunnel 0
R3(config-if)#ipv6 address 13::2/64
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#tunnel destination 12.12.12.1
R3(config-if)#tunnel mode ipv6ip
R3(config-if)#exit
R3
R3#sh ipv6 interface brief
Loopback0 [up/up]
FE80::C803:5FF:FE4F:8
3::3
Tunnel0 [up/up]
FE80::1717:1703
13::2
R1
R1#sh int tunnel 0 | i protocol
Tunnel0 is up, line protocol is up
Tunnel protocol/transport IPv6/IP
0 unknown protocol drops
R3
R3#sh int tunnel 0 | i protocol
Tunnel0 is up, line protocol is up
Tunnel protocol/transport IPv6/IP
0 unknown protocol drops
R1
R1#sh ipv6 route
IPv6 Routing Table - Default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, M - MIPv6, R - RIP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
LC 1::1/128 [0/0]
via Loopback0, receive
S 3::3/128 [1/0]
via 13::2
C 13::/64 [0/0]
via Tunnel0, directly connected
L 13::1/128 [0/0]
via Tunnel0, receive
L FF00::/8 [0/0]
via Null0, receive
R3
R3#sh ipv6 route
IPv6 Routing Table - Default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, M - MIPv6, R - RIP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S 1::1/128 [1/0]
Cek ping
R1
R1#ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/33/40
ms
R3
R3#ping 1::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/40/40
ms
R3
R3(config)#int tunnel 0
R3(config-if)#no tunnel mode ipv6ip
R3(config-if)#exit
R3
R3(config)#do show int tunnel0 | i protocol
Tunnel0 is up, line protocol is up
Tunnel protocol/transport GRE/IP
0 unknown protocol drops
Nah kali ini Selain menggunakan static point-to-point kita juga bisa
menggunakan Dynamic Multipoint Nih Gaeeesss, tunneling ituuu.
Kelemahan dari dynamic multipoint ini kita tidak bisa menggunakan
protocol routing IGP seperti : OSPF, RIP, EIGRP.
Ada dua metode yang akan kita bahas yaitu :
- 6to4
- ISATAP (Intra Site Automatic Tunnel Addressing Protocol)
Hapus konfigurasi tunnel dan static routing bekas lab sebelumnya yaaaaa
R1 dan R3
R1(config)#no interface tunnel 0
R1(config)#no ipv6 route 3::3/128 13::2
R3(config)#no interface tunnel 0
R3(config)#no ipv6 route 1::1/128 13::1
R1
R1(config)#interface tunnel 0
R1(config-if)#tunnel mode ipv6ip 6to4
R1(config-if)#ipv6 address 2002:C0C:C01::1/64
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#exit
R1(config)#ipv6 route 2002::/16 tun0
R3
R3(config)#int tunnel 0
R3(config-if)#tunnel mode ipv6ip 6to4
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#ipv6 address 2002:1717:1703::3/64
R3(config-if)#exit
R3(config)#ipv6 route 2002::/16 tunnel 0
R3
R3(config)#do sh int tunnel0 | i protocol
Tunnel0 is up, line protocol is up
Tunnel protocol/transport IPv6 6to4
0 unknown protocol drops
R3(config)#
R3
R3(config)#do ping 1::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/47/56 ms
R1
R1(config)#interface tunnel 13
R1(config-if)#tunnel mode ipv6ip isatap
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#ipv6 address 13::/64 eui-64
R1(config-if)#exit
R3
R3(config)#interface tunnel 31
R3(config-if)#tunnel mode ipv6ip isatap
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#ipv6 address 13::/64 eui-64
R3(config-if)#exit
R3
R3(config)#do show ipv6 int brief
Tunnel31 [up/up]
FE80::5EFE:1717:1703
13::5EFE:1717:1703
R1
R1(config)#do ping 13::5EFE:1717:1703 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13::5EFE:1717:1703, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/60 ms
R1
R1(config)#do show int tunnel 13 | i protocol
Tunnel13 is up, line protocol is up
Tunnel protocol/transport IPv6 ISATAP
0 unknown protocol drops
R3
R3(config)#do show int tunnel 31 | i protocol
Tunnel31 is up, line protocol is up
Tunnel protocol/transport IPv6 ISATAP
0 unknown protocol drops
R1
R1(config)#do ping 3::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/37/72 ms
R1
R1(config)#interface tunnel 13
R1(config-if)#tunnel mode ipv6ip auto-tunnel
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#exit
R3
R3(config)#interface tunnel 31
R3(config-if)#tunnel mode ipv6ip auto-tunnel
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#exit
R1
R1(config)#do show ipv6 int brief
Tunnel13 [up/up]
FE80::C0C:C01
::12.12.12.1
R3
R3(config)#do show ipv6 int brief
Tunnel31 [up/up]
FE80::1717:1703
::23.23.23.3
R1
R1(config)#do ping ::23.23.23.3
Sending 5, 100-byte ICMP Echos to ::23.23.23.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/28/52 ms
R3
R3(config)#do show int tunnel 31 | i protocol
Tunnel31 is up, line protocol is up
Tunnel protocol/transport IPv6 auto-tunnel
0 unknown protocol drops
R3
R3(config)#ipv6 route 1::1/128 ::12.12.12.1
R3(config)#do ping 1::1
Sending 5, 100-byte ICMP Echos to 1::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/40/48 ms
Untuk peering BGP, kita bisa menggunakan IP Loopback untuk iBGP dan
Internal Physical untuk eBGP. Kita akan melakukan peering dari IP Inteface
physical untuk membuat eBGP. Router R1 dan R2 harus dalam 1 AS number
yang sama yakni AS 12.
R1
R1(config)#int f0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R2
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
Tunggulah beberapa saat hingga muncul seperti ini
*Jul 18 13:59:08.511: %BGP-5-ADJCHANGE: neighbor 12.12.12.1 Up
Verifikasi
R1
R1#sh ip bgp summary
BGP router identifier 12.12.12.1, local AS number 12
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
12.12.12.2 4 12 44 44 1 0 0 00:42:50 0
R2
R2(config)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config)#router bgp 12
R2(config-router)#network 2.2.2.2 mask 255.255.255.255
R1
R1#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/20 ms
R1
R1#sh ip bgp summary
BGP router identifier 12.12.12.1, local AS number 12
BGP table version is 3, main routing table version 3
2 network entries using 264 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 504 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 904 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
12.12.12.2 4 12 98 98 3 0 0 01:36:38 1
Sebelumnya pada bagian State/PfxRcd sudah muncul nilai 0, saat ini sudah
berganti muncul nilai 1, yang artinya kita menerima 1 route yang diadvertise
BGP oleh router lain.
Selanjutnya kita cek, apakah route tersebut sudah muncul dalam routing
tabelnya.
R1
R1#sh ip route bgp
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [200/0] via 12.12.12.2, 00:10:15
R2
R2#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/20 ms
R1
R1(config)#router eigrp 10
R1(config-router)#network 1.1.1.1 0.0.0.0
R1(config-router)#network 12.12.12.1 0.0.0.0
R1(config-router)#no auto-summary
R2
R2(config)#router eigrp 10
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#no auto-summary
R2
R2(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/24 ms
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 1.1.1.1 remote-as 12
R2(config-router)#neighbor 1.1.1.1 update-source loopback 0
R2
R2(config)#int lo22
R2(config-if)#ip add 22.22.22.22 255.255.255.255
R2(config-if)#exit
R2(config)#router bgp 12
R2(config-router)#network 22.22.22.22 mask 255.255.255.255
Kita pastikan route tersebut sudah diadvertise sehingga nilai state/ PfxRcd nya
menjadi 1
R1
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
Kita akan belajar konfigurasi e-BGP Peersnya, yaitu antara R2 dan R3. Kali ini
kita akan menggunakan ip physical sebagai bgp peersnya. Tambahkan satu
router dan konfigurasi IP addressnya dibawah.
Konfigurasi BGP
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 23.23.23.3 remote-as 3
R3
R3(config)#router bgp 3
R3(config-router)#neighbor 23.23.23.2 remote-as 12
R3(config-router)#network 3.3.3.3 mask 255.255.255.255
Ada beberapa cara yang bisa dilakukan, salah satunya adalah mengadvertise
network 23.23.23.0 ke BGP pada R2.
R2
R2(config)#router bgp 12
R2(config-router)#network 23.23.23.0 mask 255.255.255.0
Kita bisa melihat telah muncul route 23.23.23.0 serta pada route 3.3.3.3 sudah
muncul tanda > best yang dikarenakan next hopnya sudah reachable.
Kita coba lakukan tes ping kembali dari R3.
R3
R3#ping 11.11.11.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/44 ms
Ternyata hasilnya time out… sekarang gunakan source yang ipnya sudah
diketahui R3. Cek dulu IPnya R1 yang dikenali oleh R3 apa saja.
R3
R3#show ip route
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [20/0] via 23.23.23.2, 00:10:51
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [20/0] via 23.23.23.2, 00:10:51
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.23.23.0/24 is directly connected, FastEthernet0/0
L 23.23.23.3/32 is directly connected, FastEthernet0/0
Kita lakukan ping dengan menambahkan ping source. Cara yang sama bisa
dilakukan yaitu mengadvertise network 12.12.12.0 ke BGP pada R1.
R1
R1(config)#router bgp 12
R1(config-router)#network 12.12.12.0 mask 255.255.255.0
Kita hapus terlebih dahulu konfigurasi routing BGP dan EIGRP pada konfigurasi
sebelumnya.
R1,R2
R1(config)#no router bgp 12
R1(config)#no router eigrp 10
R3
R3(config)#no router bgp 3
Kita konfigurasi BGP Peer melalui Physical Interface dan advertise satu network
pada R3.
R1
R1(config)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 remote-as 12
R2(config-router)#neighbor 23.23.23.3 remote-as 3
R3
R3(config)#router bgp 3
R3(config-router)#neighbor 23.23.23.2 remote-as 12
R3(config-router)#network 3.3.3.3 mask 255.255.255.255
R1
R1(config)#do show ip bgp
BGP table version is 1, local router ID is 11.11.11.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i3.3.3.3/32 23.23.23.3 0 100 0 3 i
Jika kita perhatikan bahwasanya ip next hop sudah berubah dari R3 menjadi R2
sehingga kita bisa melakukan ping dari R1
R1
R1(config)#do sh ip route bgp
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [200/0] via 12.12.12.2, 00:05:17
Sudah muncul di routing table 1. Meski demikian tetap saja R3 tidak bisa di ping
dari R1, karena walaupun R1 mempunyai routing tabel ke R3, namun tidak
dengan R3 yang tidak memiliki route sama sekali terhadap R1.
Untuk itu, kita bisa melakukan advertise ke salah satu ip R1 ke BGP untuk
dijadikan sebagai source saat ping ke R3.
R1
R1(config)#router bgp 12
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
Konfigurasi BGP
R1
R1(config)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 password CCNPJOS
R2
R2(config)#router bgp 12
R2(config-router)#neighbor 12.12.12.1 password CCNPJOS
Pengecekan
R1
R1(config)#do sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
12.12.12.2 4 12 59 62 5 0 0 00:00:31
1
R1 dan R2
R1(config)#no router bgp 12
R2(config)#no router bgp 12
R3
R3(config)#no router bgp 3
R4
R4(config)#int f0/0
R4(config-if)#ip address 34.34.34.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#int lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config-if)#exit
Pengecekan :
R1
R1#sh ip bgp summary
BGP router identifier 11.11.11.11, local AS number 1234
BGP table version is 1, main routing table version 1
R2
R2#sh ip bgp summary
BGP router identifier 22.22.22.22, local AS number 1234
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
1.1.1.1 4 1234 10 10 1 0 0 00:08:58 0
Sebagai pengetesan, kita advertise suatu route di salah satu router dan kita
pastikan bisa ping dari semua router.
R4
R4(config)#interface Loopback44
R4(config-if)#ip address 44.44.44.44 255.255.255.255
R4(config)#router bgp 1234
R4(config-router)#network 44.44.44.44 mask 255.255.255.255
Kita cek pada setiap router mengenai route yang diadvertise oleh R4
R3
R3#sh ip bgp 44.44.44.44
BGP routing table entry for 44.44.44.44/32, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table, RIB-failure(17))
Flag: 0x820
Not advertised to any peer
Local
4.4.4.4 (metric 156160) from 1.1.1.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, internal, best
Originator: 44.44.44.44, Cluster list: 11.11.11.11
Origin adalah attribute yang digunakan untuk pemilihan jalur pada BGP.
Advertise network loopback 11 pada R1 ke dalam RIP, kita redistribute ke BGP
dan hapus R4 dari RR-Client R1 dan konfig EBGP pada R3 dan R4.
R1
R1#sh ip int br | i up
FastEthernet0/0 12.12.12.1 YES NVRAM up up
Loopback0 1.1.1.1 YES NVRAM up up
Loopback11 11.11.11.11 YES NVRAM up up
R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 11.11.11.11
R1(config-router)#no auto-summary
R1(config-router)#router bgp 1234
R1(config-router)#redistribute rip
R1(config-router)#no neighbor 4.4.4.4 remote-as 1234
R1(config-router)#exit
R3
R3(config)#router bgp 1234
R3(config-router)#neighbor 34.34.34.4 remote-as 4
R3(config-router)#neighbor 1.1.1.1 next-hop-self
R3(config-router)#exit
R4
R4(config)#no router bgp 1234
R4(config)#router bgp 4
R4(config-router)#neighbor 34.34.34.3 remote-as 1234
R4(config-router)#network 44.44.44.44 mask 255.255.255.255
Catatan :
i = route yang berasal dari BGP (eBGP/iBGP) yang diadvertise melalui perintah
network x.x.x mask y.y.y.y
e = route yang berasal dari protocol EGP (saat ini sudah tidak ada protocol tsb)
R1,R2,R3
R1(config)#no router bgp 1234
R2(config)#no router bgp 1234
R3(config)#no router bgp 1234
R3
R3(config)#default int f0/1
R4
R4(config)#default int f0/0
R4(config)#default int lo44
R4(config)#no int lo0
R4(config)#no router bgp 4
R4(config)#no router eigrp 10
R4
R4(config)#int g1/0
R4(config-if)#ip add 24.24.24.4 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#int lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.255
Kita konfigurasi BGP pada semua router. Disini R2 berperan sebagai route
reflector server
R1
R1(config)#router bgp 123
R1(config-router)#network 11.11.11.11 mask 255.255.255.255
R1(config-router)#neighbor 2.2.2.2 remote-as 123
R1(config-router)#neighbor 2.2.2.2 update-source Loopback0
R2
R2(config)#router bgp 123
R2(config-router)#neighbor 1.1.1.1 remote-as 123
R2(config-router)#neighbor 1.1.1.1 up lo0
R2(config-router)#neighbor 1.1.1.1 route-reflector-client
R2(config-router)#neighbor 1.1.1.1 next-hop-self
R2(config-router)#neighbor 3.3.3.3 remote-as 123
R2(config-router)#neighbor 3.3.3.3 update lo0
R2(config-router)#neighbor 3.3.3.3 route-reflector-client
R2(config-router)#neighbor 3.3.3.3 next-hop-self
R2(config-router)#neighbor 24.24.24.4 remote-as 4
R2(config-router)#network 22.22.22.22 mask 255.255.255.255
R4
R4(config)#router bgp 4
R4(config-router)#neighbor 24.24.24.2 remote-as 123
R4(config-router)#network 4.4.4.4 mask 255.255.255.255
R4(config-router)#exit
R1
R1#sh ip bgp
BGP table version is 6, local router ID is 11.11.11.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*>i33.33.33.33/32 3.3.3.3 0 100 0 i
R4
R4(config)#do show ip bgp
BGP table version is 5, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r
RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 11.11.11.11/32 24.24.24.2 0 123 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
*> 33.33.33.33/32 24.24.24.2 0 123 i
Marilah kita cek bgp route R3 dan R4, kemudian kita bandingkan hasilnya.
Pastikan network 11.11.11.11/32 sudah tidak ada.
R3
R3(config)#do sh ip bgp
BGP table version is 5, local router ID is 33.33.33.33
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*>i11.11.11.11/32 1.1.1.1 0 100 0 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
*> 33.33.33.33/32 0.0.0.0 0 32768 i
R4
R4(config)#do show ip bgp
BGP table version is 6, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Kita cek BGP route di R1 dan R4, lalu kita pastikan bahwa network
33.33.33.33/32 sudah tidak ada.
R1
R1(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*>i4.4.4.4/32 2.2.2.2 0 100 0 4 i
*> 11.11.11.11/32 0.0.0.0 0 32768 i
*>i22.22.22.22/32 2.2.2.2 0 100 0 i
R4
R4(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 22.22.22.22/32 24.24.24.2 0 0 123 i
Untuk topologi physicalnya masih sama tetapi untuk topologi logical menjadi
seperti diatas. Kita konfigurasikan BPG Confederation pada R1, R2, R3
R1
R1(config)#no router bgp 123
R1(config)#router bgp 12
R1(config-router)#bgp confederation identifier 123
R1(config-router)#network 11.11.11.11 mask 255.255.255.255
R1(config-router)#neighbor 12.12.12.2 remote-as 12
R1(config-router)#access list 2 permit host 11.11.11.11
R1(config)#route-map LOCAL-AS
R1(config-route-map)#match ip address 2
R1(config-route-map)#set community local-AS
R1(config-route-map)#router bgp 12
R1(config-router)#neighbor 12.12.12.2 route-map LOCAL
R1(config-router)#neighbor 12.12.12.2 route-map LOCAL-AS out
R1(config-router)#neighbor 12.12.12.2 send-community
R3
R3(config)#no router bgp 123
R3(config)#router bgp 3
R3(config-router)#bgp confederation identifier 123
R3(config-router)#bgp confederation peers 12
R3(config-router)#neighbor 23.23.23.2 remote-as 12
R3(config-router)#network 33.33.33.33 mask 255.255.255.255
Kita cek bgp route di R2 dan R3, pastikan network 11.11.11.11/32 sudah tidak
ada.
R2
R2#sh ip bgp
BGP table version is 5, local router ID is 22.22.22.22
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*>i11.11.11.11/32 12.12.12.1 0 100 0 i
*> 22.22.22.22/32 0.0.0.0 0 32768 i
*> 33.33.33.33/32 23.23.23.3 0 100 0 (3) i
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.4.4.4/32 23.23.23.2 0 100 0 (12) 4 i
*> 22.22.22.22/32 23.23.23.2 0 100 0 (12) i
*> 33.33.33.33/32 0.0.0.0 0 32768 i
Kesimpulannya :
• Internet : advertise prefix kemanapun gak ada
• No-advertise : jangan advertise network kemanapun
• No-export : jangan advertise network ke e BGP manapun
• Local AS : jangan advertise network ke luar SUB-AS ( Berlaku untuk BGP
Confederation )
R1-R4
R1(config)#no router eigrp 10
R2(config)#no router eigrp 10
R1(config)#no router bgp 12
R2(config)#no router bgp 12
R3(config)#no router eigrp 10
R3(config)#no router bgp 3
R4(config)#no router bgp 4
R2
R2(config)#router bgp 2
R2(config-router)#neighbor 12.12.12.1 remote-as 1
R2(config-router)#neighbor 23.23.23.3 remote-as 3
R2(config-router)#neighbor 24.24.24.4 remote-as 4
R3
R3(config)#router bgp 3
R3(config-router)#neighbor 23.23.23.2 remote-as 2
R2
R2(config)#ip bgp-community new-format
Berhasil,…
R4
R4(config)#int lo1
R4(config-if)#ip add 4.1.1.1 255.255.255.255
R4(config-if)#int lo2
R4(config-if)#ip add 4.2.1.1 255.255.255.255
R4(config-if)#int lo3
R4(config-if)#ip add 4.3.1.1 255.255.255.255
R4(config-if)#int lo4
R4(config-if)#ip add 4.4.1.1 255.255.255.255
R4(config-if)#int lo5
R4(config-if)#ip add 4.5.1.1 255.255.255.255
R4(config-if)#int lo6
R4(config-if)#ip add 4.6.1.1 255.255.255.255
R2
R2(config)#do show ip bgp 4.0.0.0/13
BGP routing table entry for 4.0.0.0/13, version 14
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to update-groups:
1 2
4, (aggregated by 4 4.4.4.4)
24.24.24.4 from 24.24.24.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
Community: 2:24
Konfigurasi Dasar
R1
R1(config)#int g1/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int g2/0
R1(config-if)#ip add 13.13.13.1 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int loopback 0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#router bgp 1
R1(config-router)#neighbor 12.12.12.2 remote-as 23
R1(config-router)#neighbor 13.13.13.3 remote-as 23
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R3
R3(config)#int g1/0
R3(config-if)#ip add 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#int f0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int g2/0
R3(config-if)#ip add 34.34.34.3 255.255.255.0
R3(config-if)#no shutdown
R3(config)#router bgp 23
R3(config-router)#neighbor 13.13.13.1 remote-as 1
R3(config-router)#neighbor 23.23.23.2 remote-as 23
R3(config-router)#neighbor 34.34.34.4 remote-as 4
R3(config-router)#neighbor 23.23.23.2 next-hop-self
R1
R1(config)#do sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 13.13.13.3 0 23 4 i
Oke. Saat ini linknya sudah berpindah melalui R3. Kemudian, kita tes kembali
dengan cara kita no shutdown pada port yang menuju ke R2.
R1
R1(config)#int g1/0
R1(config-if)#no sh
R1
R1#sh ip bgp
BGP table version is 5, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 4.4.4.4/32 12.12.12.2 0 23 4 i
*> 13.13.13.3 0 23 4 i
R1
R1#sh ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 13.13.13.3, 00:32:17
R1
R1#sh ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R1
R1#sh ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 12.12.12.2, 00:02:09
Terlihat sekarang linknya melalui R2 kembali. Kemudian kita tes lagi shutdown
interface ke R2.
R1
R1(config)#int g1/0
R1(config-if)#shutdown
R1
R1(config)#do sh ip bgp
BGP table version is 4, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 13.13.13.3 0 23 4 i
Oke sekarang jalur kembali menggunakan main linknya kembali yakni melalui
R2. Selain untuk mengatur trafik keluar, kita juga bisa mengatur trafik yang
dating dengan menggunakan (MED).
Verifikasi
R3
R3#sh ip route 1.1.1.1
Routing entry for 1.1.1.1/32
Known via "bgp 23", distance 20, metric 100
Tag 1, type external
Last update from 13.13.13.1 00:00:10 ago
Routing Descriptor Blocks:
* 13.13.13.1, from 13.13.13.1, 00:00:10 ago
Route metric is 100, traffic share count is 1
AS Hops 1
Route tag 1
R2
R2(config)#do show ip bgp
BGP table version is 24, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i1.1.1.1/32 23.23.23.3 100 100 0 1 i
* 12.12.12.1 110 01i
*> 2.2.2.2/32 0.0.0.0 0 32768 i
* i4.4.4.4/32 23.23.23.3 0 100 04i
*> 24.24.24.4 0 04i
R2
R2#traceroute 1.1.1.1 source 2.2.2.2
Type escape sequence to abort.
Tracing the route to 1.1.1.1
1 23.23.23.3 20 msec 20 msec 8 msec
2 13.13.13.1 28 msec 24 msec 8 msec
Seperti yang kita lihat diatas, maka dari R2 (AS 23) untuk menuju ke R1 (AS 1)
akan melalui R3 terlebih dahulu.
Selain kita menggunakan attribute MED, kita juga bisa menggunakan attribute
AS-Path. Terlebih dahulu kita hapus konfigurasi MED sebelumnya.
R2
R2#sh ip route bgp
1.0.0.0/32 is subnetted, 1 subnets
B 1.1.1.1 [200/0] via 23.23.23.3, 00:05:20
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 24.24.24.4, 02:23:15
R2
R2#traceroute 1.1.1.1 source 2.2.2.2
Tracing the route to 1.1.1.1
1 23.23.23.3 20 msec 20 msec 24 msec
2 13.13.13.1 20 msec 24 msec 12 msec
R4
R4#sh ip bgp
BGP table version is 13, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r
RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 1.1.1.1/32 34.34.34.3 0 23 1 i
*> 24.24.24.2 0 23 1 i
* 2.2.2.2/32 34.34.34.3 0 23 i
*> 24.24.24.2 0 0 23 i
*> 4.4.4.4/32 0.0.0.0 0 32768 i
R4
R4#trace 1.1.1.1 source 4.4.4.4
Type escape sequence to abort.
Tracing the route to 1.1.1.1
1 24.24.24.2 8 msec 24 msec 20 msec
2 23.23.23.3 16 msec 20 msec 20 msec
3 13.13.13.1 44 msec 48 msec 32 msec
Sekarang, kita berlanjut ke lab berikutnya yaitu Load Sharing. Terlebih dahulu
kita hapus konfigurasi AS-Path dan Weight sebelumnya, BGP secara default
hanya akan menggunakan 1 jalur saja. Untuk dapat menggunakan lebih dari
satu jalru kita perlu setting maximum path terlebih dahulu.
R1
R1(config)#do show ip bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r
RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 2.2.2.2/32 13.13.13.3 0 23 i
*> 12.12.12.2 0 0 23 i
* 4.4.4.4/32 13.13.13.3 0 23 4 i
*> 12.12.12.2 0 23 4 i
Akhirnya berhasil.
BGP Attribute :
▪ Weight (highest)
▪ Local-Preference (highest)
▪ Locally Originated
▪ AS-Path (shortest)
▪ Origin (IGP>EGP>?)
▪ MED (lowest)
R2
R2(config)#router bgp 2
R2(config-router)#neighbor 12.12.12.1 remote-as 1
R2(config-router)#neighbor 24.24.24.4 remote-as 4
R4
R4(config)#router bgp 4
R4(config-router)#network 4.4.4.4 mask 255.255.255.255
R4(config-router)#neighbor 24.24.24.2 remote-as 2
R4(config-router)#neighbor 34.34.34.3 remote-as 3
R1
R1#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 12.12.12.2 024i
* 13.13.13.3 034i
R1
R1#sh ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:11:11 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 12.12.12.2, 00:11:11 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
R1
R1#traceroute 4.4.4.4 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 12.12.12.2 4 msec 40 msec 8 msec
2 24.24.24.4 56 msec 44 msec 32 msec
R1
R1(config)#router bgp 1
R1(config-router)#bgp bestpath as-path multipath-relax
R1(config-router)#do clear ip bgp *
R1
R1(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 4.4.4.4/32 13.13.13.3 034i
*> 12.12.12.2 024i
R1
R1(config)#do show ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:06:26 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:06:26 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
12.12.12.2, from 12.12.12.2, 00:06:26 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
R1
R1#traceroute 4.4.4.4 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 12.12.12.2 40 msec
13.13.13.3 28 msec
12.12.12.2 20 msec
2 34.34.34.4 40 msec
24.24.24.4 32 msec
34.34.34.4 44 msec
R1
R1(config)#int g1/0
R1(config-if)#bandwidth 1000
R1(config-if)#int g2/0
R1(config-if)#bandwidth 2000
R1(config-if)#do clear ip bgp * soft
Setelah kita lihat, ternyata masih 1:1 padahal bandwidthnya berbeda. Hal ini
tentunya akan memunculkan permasalahan, terutama apabila link satu
dengan link lain bandiwidthnya terpaut jauh.
R1
R1(config)#do show ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:18:51 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:18:51 ago
Route metric is 0, traffic share count is 2
AS Hops 2
Route tag 2
12.12.12.2, from 12.12.12.2, 00:18:51 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
Oke Guys kali ini kiata akan masuk pada bab VPN, nah VPN ini biasa digunakan
untuk menghubungkan 2 jaringan local yang terpisah melalui Internet. Contoh
nyaa kita mempunyai 1 kantor cabang dan 1 kantor pusat. Kantor Pusat memiliki
resource server yang biasa digunakan untuk memanagement seluruh jaringan
kantor cabang.
Kita ingin agar Jaringan local yang ada di kantor pusat dapat berkomunikasi
dengan jaringan local yang ada di kantor cabang melalui internet , maka masalah
itu dapat di selesaikan menggunakan teknik VPN ini. Cara kerjanya kedua router
akan membuat sebuah jalur Tunnel (Terowongan) untuk dapat berkomunikasi.
Tunnel yang paling simple yang biasa digunakan adalah GRE Tunnel.
R2
R2(config)#interface f0/0
R2(config-if)#ip address 12.12.12.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#exit
R3
R3(config)#interface f0/0
R3(config-if)#ip add 13.13.13.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#exit
Dan sekarang kita akan lakukan membuat interface tunnel nya antara kantor
pusat dan cabang,.
R2
R2(config)#interface tunnel23
R2(config-if)#tunnel source f0/0
R2(config-if)#tunnel destination 13.13.13.3
R2(config-if)#ip address 172.16.10.1 255.255.255.252
R2(config-if)#exit
R3
R2(config)#interface tunnel23
R R2(config-if)#tunnel source f0/0
R2(config-if)#tunnel destination 12.12.12.2
R2(config-if)#ip address 172.16.10.2 255.255.255.252
R2(config-if)#exit
Lakukan verifikasi pada R2 dan pastikan sudah “up” ya gaes dan kita lakukan
ping.
R2
R2(config)#do show int tunnel 23 | i protocol
Tunnel23 is up, line protocol is up
Tunnel protocol/transport GRE/IP
0 unknown protocol drops
=============================================================
R2(config)#do ping 172.16.10.2
Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/38/116 ms
R3
R3(config)#do show ip route eigrp
2.0.0.0/32 is subnetted, 1 subnets
D……….2.2.2.2 [90/27008000] via 172.16.10.1, 00:01:46, Tunnel32
Cek Ping
R2
R2(config)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/44 ms
Maka jika kita traceroute maka traffic nya akan diarahkan via interface tunnel
R2
R2#traceroute 3.3.3.3 source 2.2.2.2
Type escape sequence to abort. Tracing the route to 3.3.3.3
Nah guys dikarenakan GRE Tunnel tidak melakukan enskripsi maka rentan
sekali dia untuk terkena Decrypt, nah pada kali ini ada solusi untuk
mengenkripsi yaitu dengan cara mengkombinasikan GRE tunnel dengan
IPsec, pada ipsec terdapat 2 phase IKE nih temen-temen, :
Nah sampai sini faham ya gaesss, sekarang kita akan lanjut konfigurasi nya ya.
Untuk lanjut konfigurasi ini, kita akan hapus dulu konfigurasi sebelumnya:
R2 dan R3
R2(config)#no router eigrp 23
R2(config)#no interface tunnel23
R3(config)#no interface tunnel32
R3(config)#no router eigrp 23
Selanjutnya kita akan pasang static routing dan crypto map di R2 dan R3.
R2
R2(config)#ip route 3.3.3.3 255.255.255.255 13.13.13.3
R2(config)#int fa0/0
R2(config-if)#crypto map IDNSCHOOL
R3
R3(config)#ip route 2.2.2.2 255.255.255.255 12.12.12.2
R R3(config)#int fa0/0
R3(config-if)#crypto map IDNSCHOOL
R3
R3#show crypto session
Crypto session current status
Interface: FastEthernet0/0
Session status: UP-ACTIVE
IKE SA: local 13.13.13.3/500 remote 12.12.12.2/500 Active
IPSEC FLOW: permit ip host 3.3.3.3 host 2.2.2.2
Active SAs: 2, origin: crypto map
R3
R3#show crypto ipsec sa
interface: FastEthernet0/0
Crypto map tag: ROSLIANA12A, local addr 13.13.13.3
protected vrf: (none)
local ident (addr/mask/prot/port): (3.3.3.3/255.255.255.255/0/0)
remote ident (addr/mask/prot/port): (2.2.2.2/255.255.255.255/0/0)
current_peer 12.12.12.2 port 500
PERMIT, flags={origin_is_acl,}
#pkts encaps: 18, #pkts encrypt: 18, #pkts digest: 18
#pkts decaps: 5, #pkts decrypt: 5, #pkts verify: 5
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts compr. failed: 0
#pkts not decompressed: 0, #pkts decompress failed: 0
#send errors 5, #recv errors 0
Cek Ping :
R2
R2(config)#do ping 3.3.3.3 source 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 2.2.2.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/75/92 ms
DMVPN Phase 1
• Hub menggunakan mGRE tunnel
• Spokes menggunakan GRE tunnel
• Multicast & Unicast hanya terjadi antara HUB dan SPOKE
(antar spoke berkomunikasi melalui hub )
• Tidak membutuhkan command ip nhrp map multicast dynamic atau ip nhrp
map multicast x.x.x.x jika tidak menggukanakan routing protocol
DMVPN Phase 2
• Hub menggunakan mGRE tunnel
• Spoke menggukan mGRE tunnel
• Antar spoke saling berkomunikasi secara langsung/directly
DMVPN Phase 3
Sama seperti phase 2, namun menggunakan command “no next-hop-self eigrp”
• ip nhrp redirect di HUB
• ip nhrp shortcut di SPOK
Metode LAB
• Gunakan topologi di atas, konfigurasikan pengalamatan ip standard IDN
• Konfigurasi Default di R1, R2 dan R3
• Konfigurasi MGRE tunnel di HUB dan GRE tunnel di spoke
• Konfigurasikan dynamic mapping, gunakan perintah ip nhrp nhs
pada SPOKE untuk request ke HUB
Dalam LAB ini, kita akan mengkonfigurasi :
• HUB menggunakan MGRE tunnel
• SPOKE menggunakan GRE tunnel
• Untuk ip private/tunnel,berikut konfigurasinya :
- R1-HUB = 192.168.100.1/24
- R2-Spoke1 = 192.168.100.2/24
- R3-Spoke2 = 192.168.100.3/24
• Multicast dan unicast hanya di antara HUB dan SPOKE
3. Verifikasi LAB
• Pastikan default route jalan, semua router dapat melakukan ping
• Pastikan HUB mempunyai 2 peers, digunakan perintah showdmvpn
• pastikan ip tunnel sudah benar, gunakan perintah show ip nhrp
HUB
R1(config)#hostname HUB
R1(config)#int f0/0
R1(config-if)#ip address 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#ip route 0.0.0.0 0.0.0.0 12.12.12.2
SPOKE-1
Spoke-1#config t
Spoke-1(config)#hostname Spoke-1
Spoke-1(config)#int f0/0
Spoke-1(config-if)#ip add 23.23.23.1 255.255.255.0
Spoke-1(config-if)#no shutdown
Spoke-1(config-if)#exit
Spoke-1(config)#ip route 0.0.0.0 0.0.0.0 23.23.23.2
Spoke-2
Spoke-2(config)#interface fa0/0
Spoke-2(config-if)#ip add 24.24.24.1 255.255.255.0
Spoke-2(config-if)#no shutdown
Spoke-2(config-if)#exit
Spoke-2(config)#ip route 0.0.0.0 0.0.0.0 24.24.24.2
Internet
internet(config)#interface fa0/0
internet(config-if)#ip add 12.12.12.2 255.255.255.0
internet(config-if)#no shutdown
internet(config-if)#exit
internet(config)#interface fa1/0
internet(config-if)#ip add 23.23.23.2 255.255.255.0
internet(config-if)#no shutdown
internet(config-if)#exit
internet(config)#interface fa1/1
internet(config-if)#ip add 24.24.24.2 255.255.255.0
internet(config-if)#no shutdown
Nah sekarang kita akan konfigurasi Interface Tunnel nya nih gaess di setiap
router (pada spoke dan hub)
HUB
HUB(config)#interface tunnel0
HUB(config-if)#ip address 192.168.10.1 255.255.255.0
HUB(config-if)#tunnel source 12.12.12.1
HUB(config-if)#tunnel mode gre multipoint
HUB(config-if)#ip nhrp network-id 1
HUB(config-if)#ip nhrp authentication IDN
HUB(config-if)#exit
Spoke-1
Spoke-1(config)#interface tunnel0
Spoke-1(config-if)#ip add 192.168.10.2 255.255.255.0
Spoke-1(config-if)#tunnel source 23.23.23.1
Spoke-1(config-if)#tunnel destination 12.12.12.1
Spoke-1(config-if)#ip nhrp network-id 1
Spoke-1(config-if)#ip nhrp authentication IDN
Spoke-1(config-if)#ip nhrp map 192.168.10.1 12.12.12.1
Spoke-1(config-if)#ip nhrp nhs 192.168.10.1
Spoke-1(config-if)#exit
Verifikasi :
HUB
HUB#show dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
N - NATed, L - Local, X - No Socket
# Ent --> Number of NHRP entries with same NBMA peer
NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
UpDn Time --> Up or Down Time for a Tunnel
=======================================================
Interface: Tunnel0, IPv4 NHRP Details Type:Hub, NHRP Peers:2,
# Int Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb
----- --------------- --------------- ----- -------- -----
1 23.23.23.1 ............................. 192.168.10.2 UP 00:12:19 D
1 24.24.24.1 192.168.10.3 UP 00:05:44 D
Nah Pada lab Sekarang buat routing eigrp pada setiap router baik hub
atau spoke untuk menghubungkan jaringan local masing-masing spoke
atau hub, dalam hal ini ip loopback akan kita anggap sebagai ip jaringan
local kita gaessss.
HUB
HUB(config)#interface loopback0
HUB(config-if)#ip add 1.1.1.1 255.255.255.255
HUB(config-if)#exit
HUB(config)#interface tunnel0
HUB(config-if)#ip nhrp map multicast dynamic
HUB(config-if)#exit
HUB(config)#router eigrp 12
HUB(config-router)#network 1.1.1.1 0.0.0.0
HUB(config-router)#network 192.168.10.1 0.0.0.0
HUB(config-router)#no auto-summary
HUB(config-router)#interface tunnel0
HUB(config-if)#no ip split-horizon eigrp 12
Spoke-2
Spoke-2(config)#interface loopback0
Spoke-2(config-if)#ip address 3.3.3.3 255.255.255.255
Spoke-2(config-if)#exit
Spoke-2(config-if)#int tun0
Spoke-2(config-if)#ip nhrp map multicast 12.12.12.1
Spoke-2(config-if)#exit
Spoke-2(config)#router eigrp 12
Spoke-2(config-router)#network 3.3.3.3 0.0.0.0
Spoke-2(config-router)#network 192.168.10.3 0.0.0.0
Spoke-2(config-router)#no auto-summary
HUB
HUB#ping 2.2.2.2 Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
! !!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/88/124 ms
==============================================================
HUB#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
! !!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/66/84 ms
Spoke-2
Spoke-2#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/71/80 ms
Spoke-2#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/114/160 ms
Nah sebelum, kita lanjur lab ini Hapus terlebih dahulu routing EIGRP yang
sebelumnya di router HUB, Spoke-1, Spoke-2 ya gaess….
HUB,Spoke-1, Spoke-2
no router eigrp 12
Spoke-1
Spoke-1(config)#router ospf 12
Spoke-1(config-router)#network 2.2.2.2 0.0.0.0 area 0
Spoke-1(config-router)#network 192.168.10.0 0.0.0.255 area 0
Spoke-1(config-router)#int tun0
Spoke-1(config-if)#ip ospf network broadcast
Spoke-2
Spoke-2(config)#router ospf 12
Spoke-2(config-router)#network 3.3.3.3 0.0.0.0 area 0
Spoke-2(config-router)#network 192.168.10.0 0.0.0.255 area 0
Spoke-2(config-router)#int tun0
Spoke-2(config-if)#ip ospf network broadcast
Pada phase 1 jika antar spoke ingin berkomunikasi maka hop pertama
akan diarahkan ke sisi hub terlebih dahulu.
Oke Guys untuk lab selanjutnya kita masih menggunakan topology yang
sama ya gaesss Agar proses komunikasi dari hub ke spoke lebih aman
maka kita tambahkan ipsec, inti nya ipsec ini untuk lebih secure aja ya
teman-teman,.
HUB
HUB(config)#crypto isakmp key IDN_MANTAB address 23.23.23.1
HUB(config)#crypto isakmp key IDN_MANT
AB address 24.24.24.1
HUB
HUB(config)#crypto ipsec transform-set IDN_TRANSFORM esp-aes esp-sha-
hmac
HUB(cfg-crypto-trans)#mode transport
HUB(cfg-crypto-trans)#exit
HUB(config)#crypto ipsec profile IDN_PROFILE
HUB(ipsec-profile)#set transform-set IDN_TRANSFORM
Spoke-1
Spoke-1(config)#crypto ipsec transform-set IDN_TRANSFORM esp-aes esp-sha-hmac
Spoke-1(cfg-crypto-trans)#mode transport
Spoke-1(cfg-crypto-trans)#exit
Spoke-1(config)#crypto ipsec profile IDN_PROFILE
Spoke-1(ipsec-profile)#set transform-set IDN_TRANSFORM
Spoke-2
Spoke-2(config)#crypto ipsec transform-set IDN_TRANSFORM esp-aes esp-sha-hmac
Spoke-2(cfg-crypto-trans)#mode transport
Spoke-2(cfg-crypto-trans)#exit
Spoke-2(config)#crypto ipsec profile IDN_PROFILE
Spoke-2(ipsec-profile)#set transform-set IDN_TRANSFORM
Karena ip-sec cara kerja nya sama dengan vlan dimana harus di pasang di
interface nya. Maka ip-sec pun begitu harus di pasang di interface nya.
Hub, Spoke1 dan Spoke2
HUB,Spoke1,Spoke2(config)#int tun0
HUB,Spoke1,Spoke2(config-if)#tunnel protect ipsec profile IDN_PROFILE
Setelah setting ip-secdi interface tunnel, selanjutnya kita akan verfiksi ip-sec nya.
HUB
HUB#show crypto isakmp sa IPv4 Crypto ISAKMP SA
dst src state conn-id status
23.23.23.1 ................ 12.12.12.1 QM_IDLE 1003 ACTIVE
12.12.12.1 24.24.24.1 QM_IDLE 1002 ACTIVE
12.12.12.1 23.23.23.1 QM_IDLE 1001 ACTIVE
24.24.24.1 12.12.12.1 QM_IDLE 1004 ACTIVE
IPv6 Crypto ISAKMP SA
Spoke-1
Spoke-1#show crypto isakmp sa IPv4 Crypto ISAKMP SA
dst src state conn-id status
12.12.12.1 23.23.23.1 QM_IDLE 1001 ACTIVE
23.23.23.1 12.12.12.1 QM_IDLE 1002 ACTIVE
R2
Spoke-2#show crypto isakmp sa IPv4 Crypto ISAKMP SA
dst src state conn-id status
12.12.12.1 24.24.24.1 QM_IDLE 1001 ACTIVE
24.24.24.1 12.12.12.1 QM_IDLE 1002 ACTIVE
Topologi LAB,.
1. Metode LAB
• Masih melanjutkan LAB berikutnya, hapus dulu interface tunnel di
semua router
• Hapus routing ospf 12 pada semua router
• Konfigurasikan dynamic mapping, gunakan perintah ip
nhrp nhs pada SPOKE untuk request ke HUB
3. Konfigurasi
Lab nya masih lanjut menggunakan topology sebelumnya
disini kita hanya perlu hapus tunnel sama routing nya saja.
Spoke-1
Spoke-1(config)#int tun0
Spoke-1(config-if)#ip add 192.168.10.2 255.255.255.0
Spoke-1(config-if)#tunnel mode gre multipoint
Spoke-1(config-if)#tunnel source 23.23.23.1
Spoke-1(config-if)#ip nhrp network-id 1
Spoke-1(config-if)#ip nhrp authentication IDN
Spoke-1(config-if)#ip nhrp map 192.168.10.1 12.12.12.1 Spoke-
1(config-if)#ip nhrp nhs 192.168.10.1
Spoke-1(config-if)#ip nhrp map multicast 12.12.12.1
Spoke-2
Spoke-2(config)#int tun0
Spoke-2(config-if)#ip add 192.168.10.3 255.255.255.0
Spoke-2(config-if)#tunnel mode gre multipoint
Spoke-2(config-if)#tunnel source 24.24.24.1
Spoke-2(config-if)#ip nhrp network-id 1
Spoke-2(config-if)#ip nhrp authentication IDN
Spoke-2(config-if)#ip nhrp map 192.168.10.1 12.12.12.1
Spoke-2(config-if)#ip nhrp nhs 192.168.10.1
Spoke-2(config-if)#ip nhrp map multicast 12.12.12.1
HUB
HUB#show ip nhrp
192.168.10.2/32 via 192.168.10.2
Tunnel0 created 00:26:09, expire 01:33:50
Type: dynamic, Flags: unique registered used
NBMA address: 23.23.23.1
192.168.10.3/32 via 192.168.10.3
Tunnel0 created 00:23:54, expire 01:36:05
Type: dynamic, Flags: unique registered used
NBMA address: 24.24.24.1
Sama seperti pada phase sebelumnya kita akan menggunakan routing IGP
Over DMVPN tapi kali ini di phase 2 sebenernya konfigurasinya sama saja.
Konfigurasi routing eigrp pada setiap router
Hub
HUB(config)#router eigrp 12
HUB(config-router)#network 1.1.1.1 0.0.0.0
HUB(config-router)#network 192.168.10.1 0.0.0.0
HUB(config-router)#no auto-summary
Spoke-1
Spoke-1(config-if)#router eigrp 12
Spoke-1(config-router)#network 2.2.2.2 0.0.0.0
Spoke-1(config-router)#network 192.168.10.2 0.0.0.0
Spoke-1(config-router)#no auto-summary
Spoke-2
Spoke-2(config)#router eigrp 12
Spoke-2(config-router)#network 3.3.3.3 0.0.0.0
Spoke-2(config-router)#network 192.168.10.3 0.0.0.0
Spoke-2(config-router)#no auto-summary
HUB
HUB#show ip route eigrp
Gateway of last resort is 12.12.12.2 to network 0.0.0.0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/27008000] via 192.168.10.2, 00:18:49, Tunnel0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/27008000] via 192.168.10.3, 00:18:31, Tunnel0
Kita Cek juga nih teman-teman routing eigrp pada setiap router Spoke nya
Spoke-1
Spoke-1#sh ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D………........1.1.1.1 [90/27008000] via 192.168.10.1, 00:25:05, Tunnel0
Spoke-2
Spoke-2#show ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D…………………1.1.1.1 [90/27008000] via 192.168.10.1, 00:25:21, Tunnel0
Spoke-1
Spoke-1#sh ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/27008000] via 192.168.10.1, 00:26:50, Tunnel0
3.0.0.0/32 is subnetted, 1 subnets
D 3.3.3.3 [90/28288000] via 192.168.10.1, 00:00:04, Tunnel0
Spoke-2
Spoke-2#show ip route eigrp
1.0.0.0/32 is subnetted, 1 subnets
D 1.1.1.1 [90/27008000] via 192.168.10.1, 00:41:42, Tunnel0
2.0.0.0/32 is subnetted, 1 subnets
D 2.2.2.2 [90/28288000] via 192.168.10.1, 00:15:28, Tunnel0
Spoke-1
Spoke-1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/62/76 ms
Spoke-1#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/50/56 ms
R3
HUB(config)#router ospf 12
HUB(config-router)#network 1.1.1.1 0.0.0.0 area 0
HUB(config-router)#network 192.168.10.0 0.0.0.255 area 0
HUB(config-router)#exit
HUB(config)#int tunnel 0
HUB(config-if)#ip ospf network broadcast
R2
Spoke-1(config)#router ospf 12
Spoke-1(config-router)#network 2.2.2.2 0.0.0.0 area 0
Spoke-1(config-router)#network 192.168.10.0 0.0.0.255 area 0
Spoke-1(config-router)#exit
Spoke-1(config)#int tun0
Spoke-1(config-if)#ip ospf network broadcast
R3
HUB#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/46/56 ms
HUB#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/44/56 ms
Nah Pada phase 2 & phase 3 ini command nya tidak jauh berbeda. hanya saja pada
phase 3 kita hanya, perlu menambahkan 2 command saja “Redirect & Shorcut”
HUB
HUB(config)#int tun0
HUB(config-if)#ip nhrp redirect
HUB(config-if)#exit
Spoke-1
HUB(config)#int tun0
HUB(config-if)#ip nhrp redirect
HUB(config-if)#exit
HUB
HUB#show dmvpn
Legend: Attrb --> S - Static, D - Dynamic, I - Incomplete
N - NATed, L - Local, X - No Socket
# Ent --> Number of NHRP entries with same NBMA peer
NHS Status: E --> Expecting Replies, R --> Responding, W --> Waiting
==============================================================
Cek Ping,,….
HUB
HUB#ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/54/60 ms
HUB#ping 192.168.10.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/51/76 ms
Nah kali ini kita akan Pasang Routing EIGRP pada di semua router baik itu
HUB maupun Spoke nya…
HUB
HUB(config)#router eigrp 12
HUB(config-router)#network 1.1.1.1 0.0.0.0
HUB(config-router)#network 192.168.10.1 0.0.0.0
HUB(config-router)#no auto-summary
HUB(config-router)#exit
HUB(config)#int tun0
HUB(config-if)#no ip split-horizon eigrp 12
Spoke-1
Spoke-1(config-if)#router eigrp 12
Spoke-1(config-router)#network 2.2.2.2 0.0.0.0
Spoke-1(config-router)#network 192.168.10.2 0.0.0.0
Spoke-1(config-router)#no auto-summary
Spoke-2
Spoke-2(config)#router eigrp 12
Spoke-2(config-router)#network 3.3.3.3 0.0.0.0
Spoke-2(config-router)#network 192.168.10.3 0.0.0.0
Spoke-2(config-router)#no auto-summary
Spoke-1
Spoke-1#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/71/80 ms
Spoke-1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/78/84 ms
Untuk menjalankan routing OSPF kita hapus kembali routing EIGRP nya
dengan command “no router eigrp 12” pada setiap router yang
menjalankan EIGRP
HUB
HUB(config)#router ospf 12
HUB(config-router)#network 1.1.1.1 0.0.0.0 area 0
HUB(config-router)#network 192.168.10.0 0.0.0.255 area 0
HUB(config-router)#exit
HUB(config)#int tun0
HUB(config-if)#ip ospf network broadcast
Spoke-1
Spoke-1(config)#router ospf 12
Spoke-1(config-router)#network 2.2.2.2 0.0.0.0 area 0
Spoke-1(config-router)#network 192.168.10.0 0.0.0.255 area 0
Spoke-1(config-router)#exit
Spoke-1(config)#int tun0
Spoke-1(config-if)#ip ospf network broadcast
Spoke-1
Spoke-1#show ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 192.168.10.1, 00:05:59, Tunnel0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/1001] via 192.168.10.3, 00:04:59, Tunnel0
Spoke-2
Spoke-2#show ip route ospf
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 192.168.10.1, 00:06:01, Tunnel0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/1001] via 192.168.10.2, 00:06:01, Tunnel0
HUB#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/52/60 ms
Pada Phase 3 Komunikasi data & routing update dll langsung antar spoke tanpa
lewat hub.
1. Router P (Provider)
▪ Terdapat dalam MPLS Domain, P router terhubung dengan router-router lain
yang dimiliki service provider
▪ Pada jaringan MPLS yang tidak terlalu besar terkadang tidak terdapat P
router didalamnya untuk menghemat biaya.
Didalam jaringan MPLS Backbone hanya terdapat pada router P dan router PE,
maka model jaringan MPLS yang sederhana dapat berbentuk sebagai berikut :
R2
R2(config)#hostname P
P(config)#int loopback 0
P(config-if)#ip add 10.10.10.10 255.255.255.255
P(config-if)#int g1/0
P(config-if)#ip add 192.168.10.2 255.255.255.252
P(config-if)#no shutdown
P(config-if)#description ###Link to PE1 Router###
P(config-if)#int g2/0
P(config-if)#ip add 192.168.20.1 255.255.255.252
P(config-if)#no shutdown
P(config-if)#description ###Link to PE2 Router###
Setelah semua ip address telah dikonfigurasikan, kemudian kita lakukan PING
ke masing-masing IP Point to Pointnya
• PE1# ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/18/36 ms
PE-1
PE1(config)#router ospf 1
PE1(config-router)#network 192.168.10.1 0.0.0.0 area 0
PE1(config-router)#network 10.10.10.1 0.0.0.0 area 0
Pada router PE1 ada 2 network yang diadvertise ke dalam OSPF yaitu
• Network interface loopback dan
• Network interface yang mengarah ke P router
P
P(config)#router ospf 1
P(config-router)#network 192.168.10.2 0.0.0.0 area 0
P(config-router)#network 192.168.20.1 0.0.0.0 area 0
P(config-router)#network 10.10.10.10 0.0.0.0 area 0
P
P#show ip route
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, GigabitEthernet1/0
192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, GigabitEthernet2/0
10.0.0.0/32 is subnetted, 3 subnets
C 10.10.10.10 is directly connected, Loopback0
O 10.10.10.2 [110/2] via 192.168.20.2, 00:07:56, GigabitEthernet2/0
O 10.10.10.1 [110/2] via 192.168.10.1, 00:22:28, GigabitEthernet1/0
PE-2
PE2#show ip route
192.168.10.0/30 is subnetted, 1 subnets
O 192.168.10.0 [110/2] via 192.168.20.1, 00:11:24, GigabitEthernet1/0
192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, GigabitEthernet1/0
10.0.0.0/32 is subnetted, 3 subnets
O 10.10.10.10 [110/2] via 192.168.20.1, 00:11:24, GigabitEthernet1/0
PE-1, P, PE-2
#ping 10.10.10.1
#ping 10.10.10.2
#ping 10.10.10.10
PE-1
PE1(config)#router bgp 65000
PE1(config-router)#neighbor 10.10.10.2 remote-as 65000
PE1(config-router)#neighbor 10.10.10.2 update-source loopback0
Ketika kita cek pada router PE1, BGP Peering terhadap router PE-2
dikonfigurasikan menggunakan ip loopback. Maka AS Number yang digunakan
pada PE1 dan PE2 adalah 65000 yang merupakan private AS Number.
PE-2
PE2(config)#router bgp 65000
PE2(config-router)#neighbor 10.10.10.1 remote-as 65000
PE2(config-router)#neighbor 10.10.10.1 update-source loopback0
PE-1
PE1#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
10.10.10.2 4 65000 3 3 1 0 0 00:00:57 0
PE-2
PE2#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
10.10.10.1 4 65000 5 5 1 0 0 00:03:11 0
P
P(config)#mpls ip
P(config)#int g1/0
P(config-if)#mpls ip
P(config-if)#int g2/0
P(config-if)#mpls ip
PE-2
PE2(config)#mpls ip
PE2(config)#int g1/0
PE2(config-if)#mpls ip
Setelah dikonfigurasi, untuk pengecekan apakah MPLS sudah aktif dan berjalan
dengan baik, gunakan perintah berikut ini.
PE-1
PE1(config)#do show mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 17 10.10.10.2/32 0 Gi1/0 192.168.10.2
17 Pop Label 10.10.10.10/32 0 Gi1/0 192.168.10.2
18 Pop Label 192.168.20.0/30 0 Gi1/0 192.168.10.2
P
P(config)#do show mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 10.10.10.1/32 762 Gi1/0 192.168.10.1
17 Pop Label 10.10.10.2/32 1016 Gi2/0 192.168.20.2
PE-2
PE2(config)#do show mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
Jika kita lihat diatas, terdapat label – label yang digunakan untuk menuju
sebuah network. Kita bisa cek ping terlebih dahulu.
PE-2
PE2(config)#do show mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 16 10.10.10.1/32 0 Gi1/0 192.168.20.1
17 Pop Label 10.10.10.10/32 0 Gi1/0 192.168.20.1
18 Pop Label 192.168.10.0/30 0 Gi1/0 192.168.20.1
Jika kita lihat diatas, terdapat label- label yang digunakan untuk menuju ke
sebuah network. Kita cek ping
PE-2
PE2(config)#do trace 10.10.10.1
Type escape sequence to abort.
Tracing the route to 10.10.10.1
1 192.168.20.1 [MPLS: Label 16 Exp 0] 40 msec 32 msec 40 msec
2 192.168.10.1 36 msec 40 msec 40 msec
PE-2 ketika akan menuju PE1, akan menggunakan label 16 sebelum sampai ke
tujuan. Ini artinya MPLS Backbone sudah berhasil.
Pada CE Router :
1 Konfigurasi IP Addres CE
2 Konfigurasi Default Route
Kita bisa melihat bahwa pada PE-1 terdapat 2 customer yakni BRI dan BCA,
maka kita bisa membuat 2 VRF yang bernama VRF BRI.KIRI dan VRF BCA.KIRI
VRF pada dasarnya memiliki 2 komponen utama yakni :
• RD (Route Distinguisher)
o RD adalah identitas dari sebuah VRF
o Setiap customer memiliki VRF sendiri – sendiri
o Penulisan RD dapat dituliskan seperti format berikut ini :
o 16 bit AS Number : 32 – bit number → contoh : 65000 :1
o 32 bit IP Address : 15 – bit number → contoh : 192.168.0.1 : 1
• RT (Route Target)
o RT digunakan untuk menentukan route yang mana yang akan diimport
ke dalam VRF dan menentukan route mana yang akan diexport.
o Sifatnya seperti routing policy
o Format penulisannya seperti RD yakni seperti berikut
• 16-bit AS Number : 32-bit number → contoh : 65000:1
• 32-bit IP Address : 15-bit number → contoh : 192.168.0.1 :1
PE-2
PE-2(config)#ip vrf BRI.KANAN
PE-2(config-vrf)#rd 65000:1
PE-2(config-vrf)#route-target export 65000:1
PE-2(config-vrf)#route-target import 65000:1
PE-2(config-vrf)#exit
PE-2(config-vrf)#ip vrf BCA.KANAN
PE-2(config-vrf)#rd 65000:2
PE-2(config-vrf)#route-target export 65000:2
PE-2(config-vrf)#route-target import 65000:2
PE-1
PE-1(config)#interface f0/0
PE-1(config-if)#description ###Link to BRI###
PE-1(config-if)#ip vrf forwarding BRI.KIRI
PE-1(config-if)#ip address 192.168.100.1 255.255.255.252
PE-1(config-if)#no shutdown
!
PE-1(config)#int fastEthernet 0/1
PE-1(config-if)#description ###Link to BCA###
PE-1(config-if)#ip vrf forwarding BCA.KIRI
PE-1(config-if)#ip address 192.168.100.1 255.255.255.252
PE-1(config-if)#no shutdown
PE-1
PE-1(config)#do show vrf
Name Default RD Protocols Interfaces
BCA.KIRI 65000:2 ipv4 Fa0/1
BRI.KIRI 65000:1 ipv4 Fa0/0
Mengaktifkan MP-BGP
MP – BGP (Multi Protocol BGP) digunakan untuk membawa informasi routing,
IPv prefixes, VPN Customer dll menuju PE router lainnnya.
PE-1
PE-1(config)#router bgp 65000
PE-1(config-router)#address-family vpnv4
PE-1(config-router-af)#neighbor 10.10.10.2 activate
PE-2
PE-2(config)#router bgp 65000
PE-2(config-router)#
PE-2(config-router)#address-family vpnv4
PE-2(config-router-af)#neighbor 10.10.10.1 activate
PE-2
PE-2#sh ip vpnv4 all summary
CE BRI-1
R1(config)#hostname CE-BRI-1
CE-BRI-1(config)#interface fas
CE-BRI-1(config)#interface fastEthernet0/0
CE-BRI-1(config-if)#descrip
CE-BRI-1(config-if)#description ###Link to MPLS###
CE-BRI-1(config-if)#ip address 192.168.100.2 255.255.255.252
CE-BRI-1(config-if)#no shutdown
!
CE-BRI-1(config)#int lo0
CE-BRI-1(config-if)#ip address 4.4.4.4 255.255.255.255
CE-BRI-1(config-if)#ip route 0.0.0.0 0.0.0.0 192.168.100.1
CE BCA-1
R6(config)#hostname CE-BCA-1
CE-BCA-1(config)#int fastEthernet 0/0
CE-BCA-1(config-if)#description ###Link to MPLS###
CE-BCA-1(config-if)#ip address 192.168.100.2 255.255.255.252
CE-BCA-1(config-if)#no shutdown
CE-BCA-1(config-if)#int lo0
CE-BCA-1(config-if)#ip add 5.5.5.5 255.255.255.255
CE-BCA-1(config-if)#ip route 0.0.0.0 0.0.0.0 192.168.100.1
CE-BRI-2
R3(config)#hostname CE-BRI-2
CE-BRI-2(config)#int f
CE-BRI-2(config)#int fastEthernet 0/0
CE-BRI-2(config-if)#description ###Link to MPLS###
CE-BRI-2(config-if)#ip address 192.168.200.2 255.255.255.252
CE-BRI-2(config-if)#no shutdown
CE-BRI-2(config-if)#int lo0
CE-BRI-2(config-if)#ip address 6.6.6.6 255.255.255.255
CE-BRI-2(config-if)#ip route 0.0.0.0 0.0.0.0 192.168.200.1
Leaf-02
Leaf-02(config)# vlan 201
Leaf-02(config-vlan)# vn-segment 30201
Leaf-02(config-vlan)# name server
Leaf-02(config-vlan)# exit
!
Leaf-02(config)# vlan 301
Leaf-02(config-vlan)# name VM-SERVER
Leaf-02(config-vlan)# vn-segment 30301
Leaf-02(config-vlan)# exit !
!
Leaf-02(config)# interface e1/2
Leaf-02(config-if)# switchport mode access
Leaf-02(config-if)# switchport access vlan 201
Leaf-02(config-if)# exit
!
Leaf-02(config)# interface e1/3
Leaf-02(config-if)# switchport mode access
Leaf-02(config-if)# switchport access vlan 301
Leaf-02(config-if)# exit
Buat interface VTEP, bawaanya setiap nexus bisa membuat 4 interface VTEP
namun, karena keterbatasan lisensi dalam lab ini kita hanya bisa membuat 1
interface VTEP saja.
Leaf-01
Leaf-01(config)# interface nve 1
Leaf-01(config-if-nve)# no shutdown
Leaf-01(config-if-nve)# source interface lo0
Leaf-02
Leaf-02(config)# show nve interface nve1
Interface: nve1, State: Up, encapsulation: VXLAN VPC Capability: VPC-
VIP-Only [not-notified] Local Router MAC: 5000.0003.0007
Host Learning Mode: Data-Plane
Source-Interface: loopback0 (primary: 3.3.3.3, secondary: 0.0.0.0
Leaf-02(config-if-nve-vni-ingr-rep)# exit
Verifikasi nve peers
Leaf-01
Leaf-01(config)# show nve peers
Interface Peer-IP State LearnType Uptime Router-Mac
--------- --------------- ----- --------- -------- -----------------
nve1 3.3.3.3 Up DP 00:15:03 n/a
Leaf-02
Leaf-02(config)# show nve peers
Interface Peer-IP State LearnType Uptime Router-Mac
--------- --------------- ----- --------- -------- -----------------
nve1 2.2.2.2 Up DP 00:07:16 n/a
Lakukan verifikasi ping dari VLAN 301 sebelah kiri ke VLAN 301 di sebelah kanan
VPCS
VPCS> ip 192.168.31.2/24
Checking for duplicate address...
PC1 : 192.168.31.2 255.255.255.0
Aktifkan feature pim karena kita akan menggunakan multicast dan tentukan
Rendezvous Point (RP) atau titik kumpul, RP ini harus diletakan di Spine.
Leaf-01
Leaf-01(config)# feature pim
Leaf-01(config)# interface e1/1
Leaf-01(config-if)# ip pim sparse-mode
Leaf-01(config-if)# exit
!
Leaf-01(config)# interface lo0
Leaf-01(config-if)# ip pim sparse-mode
Leaf-01(config-if)# exit
!
Leaf-01(config)# ip pim rp-address 10.1.1.1 group-list 239.239.239.0/24
Leaf-01(config)# ip pim anycast-rp 10.1.1.1 1.1.1.1
Leaf-01(config)# ip pim anycast-rp 10.1.1.1 2.2.2.2
Leaf-01(config)# ip pim anycast-rp 10.1.1.1 3.3.3.3
!
Leaf-01(config)# interface lo1
Leaf-01(config-if)# description RP Backup
Leaf-01(config-if)# ip add 10.1.1.1/32
Leaf-01(config-if)# ip router ospf 1 area 0
Leaf-01(config-if)# ip pim sparse-mode
Leaf-01(config-if)# exit
Spine-01
Spine-01(config)# feature pim
Spine-01(config)# interface e1/3
Spine-01(config-if)# ip pim sparse-mode
!
Spine-01(config-if)# interface e1/4
Spine-01(config-if)# ip pim sparse-mode
!
Spine-01(config-if)# interface lo0
Spine-01(config-if)# ip pim sparse-mode !
Spine-01(config-if)# interface lo1
Spine-01(config-if)description RP Utama
Leaf-02
Leaf-02(config)# interface nve 1
Leaf-02(config-if-nve)# member vni 30201
Leaf-02(config-if-nve-vni)# mcast-group 239.239.239.21
Leaf-02(config-if-nve-vni)# member vni 30301
Leaf-02(config-if-nve-vni)# mcast-group 239.239.239.31
Leaf-02(config-if-nve-vni)# exit
Verifikasi interface VTEP nya pastikan sudah up, dan pastikan VNI nya sudah
dimapping dengan benar
Leaf-01
Leaf-01(config)# show nve interface nve1 Interface: nve1
State: Up, encapsulation: VXLAN VPC Capability: VPC-VIP-Only [not-
notified] Local Router MAC: 5000.0002.0007
Host Learning Mode: Data-Plane
Source-Interface: loopback0 (primary: 2.2.2.2, secondary: 0.0.0.0)
Leaf-02
Leaf-02(config)# show nve interface nve1
Interface: nve1, State: Up, encapsulation: VXLAN
VPC Capability: VPC-VIP-Only [not-notified]
Local Router MAC: 5000.0003.0007
Host Learning Mode: Data-Plane
Source-Interface: loopback0 (primary: 3.3.3.3, secondary: 0.0.0.0)
Verifikasi lagi nve peers pastikan sudah ada karena sudah ada traffic yang
lewat
Leaf-01
Leaf-01(config)# show nve peers
Interface Peer-IP State LearnType Uptime Router-Mac
--------- --------------- ----- --------- -------- -----------------
nve1 3.3.3.3 Up DP 00:05:27 n/a
Untuk info lebih lanjut tentang paramiko, Anda bisa mengunjungi webiste resmi
paramiko di http://www.paramiko.org atau website documentation nya
www.docs.paramiko.org
Setelah didownload temen-temen bisa buka gns3 nya dan klik file > import
appliance
Terus jika muncul pop up klik ok aja, nanti muncul seperti ini coba drag and drop
ubuntu ke workspace gns3 dan nantinya ubuntu kita akan otomatis ke
download seperti gambar dibawah. (harus konek ke internet)
Untuk memastikan apakah paramiko sudah terinstall atau belum, kita bisa
menggunakan perintah berikut
Untuk saat ini, paramiko sudah terinstall pada ubuntu. Ini artinya kita sudah siap
membuat script python menggunakan paramiko untuk melakukan konfigurasi
pada device by ssh.
Initial Configuration
Kita akan menggunakan SSH untuk belajar automation pada training kali ini,
Alasan utama kita lebih menggunakan ssh dibanding telnet adalah dari segi
keamanan. Telnet tidak enkripsi, diabandingkan ssh yang sudah melakukan
enkripsi. Untuk mengaktifkan SSH pada cisco, kita bisa menggunakan perintah
berikut topology nya seperti dibawah ini :
Ubuntu
root@NetworkAutomation-1:~# ifconfig eth0 192.168.10.1 netmask
255.255.255.0 root@NetworkAutomation-1:~# ifconfig
eth0 Link encap:Ethernet HWaddr da:f2:40:f4:fd:c0
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
R1#
Oke kita sudah berhasil login ssh dari ubuntu ke router.
Script python yang akan kita buat bertujuan untuk menambahkan interface
loopback secara otomatis.
ip_address = "192.168.10.2"
username = "cisco"
password = "cisco123"
ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()
)
ssh_client.connect(hostname=ip_address,username=username,
password=password)
conn.send("conf
t\n") conn.send("int
lo0\n")
conn.send("ip add 1.1.1.1 255.255.255.255\n")
time.sleep(1)
output =
conn.recv(65535) print
output
ssh_client.close()
Ubuntu
root@NetworkAutomation-1:~# python paramiko1.py
Success login to 192.168.10.2
R1#conf t
Enter configuration commands, one per line.End with CNTL/Z. R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#root@NetworkAutomation-1:~#
Agar jika pada saat melakukan konfigurasi terjadi masalah, kita bisa
mengembalikan konfigurasi device ke kondisi semula.
Tentu saja akan sangat merepotkan jika kita harus melakukan backup
konfigurasi pada 100 device. Untuk melakukan pekerjaan tersebut, kita
bisa menggunakan python.
Ada banyak cara yang bisa kita gunakan untuk backup konfigurasi device
menggunakan python, salah satunya menggunakan paramiko.
ip_address = "192.168.10.2"
username = "cisco"
password = "cisco123"
ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.connect(hostname=ip_address,username=username,
password=password)
output = conn.recv(65535)
output_file=open("{0}.cfg".format(ip_address),"w") output_file.write(output)
output_file.close()
print "Config in {0} saved!!".format(ip_address)
ssh_client.close()
Ubuntu
root@NetworkAutomation-1:~# python backup.py
Success login to 192.168.10.2
Config in 192.168.10.2 saved!!
root@NetworkAutomation-1:~# ls | grep .cfg 192.168.10.2.cfg
Oke file dengan nama ip_address.cfg sudah berhasil dibuat. Kita coba lihat isi dari file
tersebut
Ubuntu
root@NetworkAutomation-1:~# more 192.168.10.2.cfg
Agar seluruh device bisa di automasi, kita harus menambahkan link management ke
ubuntu, selanjutnya kita buat script python untuk backup konfigurasi pada banyak
device menggunakan paramiko
ip_list = ["192.168.10.2","192.168.10.3",
"192.168.10.4","192.168.10.5"]
username = "cisco"
password = "cisco123"
ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.close()
Pada script diatas kita hanya menambahkan list IP Address dari seluruh router dan
melakukan looping di list tersebut. Selanjutnya kita memindahkan seluruh script,
yaitu pada saat mulai melakukan koneksi ssh, kedalam blok for.
Ubuntu
root@NetworkAutomation-1:~# python backupmultiple.py
Success login to 192.168.10.2
Config in 192.168.10.2 saved!!
Success login to
192.168.10.3 Config in
192.168.10.3 saved!!
192.168.10.4. cfg
192.168.10.5. cfg
Perhatikan bahwa kita sudah memiliki 4 file .cfg, sesuai dengan jumlah router yang
kita miliki. Kita coba lihat isi dari salah satu file tersebut.
Ubuntu
root@NetworkAutomation-1:~# more 192.168.10.5.cfg
R4#terminal length 0
R4#showrun
Building configuration...
Script diatas berarti kalo ada log dengan tulisan seperti ini “Interface FastEthernet0/0,
changed state to down" maka tolong tulis enable dan no shutdown interfacenya. Dan
coba lakukan debug untuk melihat prosesnya. Lalu shutdown interface f0/0
R1
R1#debug event manager action cli Debug EEM action cli debugging is on
!
R1(config)#interface f0/0
R1(config-if)#shutdown
R1(config-if)#exit
Jika kita perhatikan perangkat kita langsung menjalankan script untuk menghidupkan
kembali interface f0/0.
R1
R1(config)#event manager applet OSPF_DOWN
R1(config-applet)#event syslog pattern "Nbr 2.2.2.2 on FastEthernet0/0 from FULL
to DOWN"
R1(config-applet)#action 1.0 cli command "enable"
R1(config-applet)#action 2.0 cli command "debug ip ospf adj"
R1(config-applet)#action 3.0 mail server "smtp.gmail.com" to
"sahrul@idnfoundation.org" from "R1@idn.id" subject "OSPF IS DOWN" body
"Please fix OSPF"
R1(config-applet)#exit
Lakukan debug event dan hapus EEM interface down bekas konfigurasi sebelumnya.
R1
R1#debug event manager action mail Debug EEM action mail debugging is on
R1(config)#no event manager applet INTERFACE_DOWN
R1
R1(config-if)#
Translating "smtp.gmail.com"
*Feb 7 07:54:43.747: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on FastEthernet0/0
from FULL to DOWN, Neighbor Down: Interface down or detached
Dari hasil debug kita bisa lihat bahwa router mencoba konek ke smtp server tapi
hasilnya “Translating "smtp.gmail.com" hal ini dikarenakan router kita tidak
terkoneksi ke internet. Tapi bisa kita simpulkan bahwa event email ini berhasil.
R1
R1# *Feb 7 08:15:01.055: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : :
CTL : cli_open called.
*Feb 7 08:15:01.063: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : : IN :
R1>enable
*Feb 7 08:15:01.075: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : : OUT
: R1#
*Feb 7 08:15:01.075: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : : IN :
R1#write memory
*Feb 7 08:15:04.055: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : : OUT
: Building configuration...
*Feb 7 08:15:04.063: %HA_EM-6-LOG: BACKUP_BERKALA: Configuration has
been saved
R1#
*Feb 7 08:15:04.063: %HA_EM-6-LOG: BACKUP_BERKALA : DEBUG(cli_lib) : : CTL
: cli_close called.
Dari hasil debug diatas router akan menjalankan command “write memory” setiap 60 detik
Kali ini kita akan coba kombinasikan fitur EEM dengan IP SLA, yang mana nantinya IP
SLA ini digunakan untuk fitur monitoring, jadi jika IP SLA mendetect suatu link down
maka EEM akan mengirimkan log ke email kita. Untuk topology dan konfigurasi masih
sama. Tambahkan command ip sla pada R1
R1
R1(config)#ip sla 1
R1(config-ip-sla)#icmp-echo 2.2.2.2
R1(config-ip-sla-echo)#frequency 10
R1(config-ip-sla-echo)#exit
R1(config)#ip sla schedule 1 life forever start-time now
R1(config)#track 1 ip sla 1 reachability
R1
R1(config)#
Translating "smtp.gmail.com"
*Feb 9 02:06:04.407: %TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down
*Feb 9 02:06:04.423: %HA_EM-6-LOG: TRACK_IP_DOWN: IP SLA 1 is down
R1(config)#
*Feb 9 02:06:04.427: %HA_EM-6-LOG: TRACK_IP_DOWN : DEBUG(smtp_lib) :
smtp_connect_attempt: 1
*Feb 9 02:06:04.427: %HA_EM-6-LOG: TRACK_IP_DOWN : DEBUG(smtp_lib) :
fh_smtp_connect failed at attempt 1
R1(config)#
Translating "smtp.gmail.com"
*Feb 9 02:06:07.431: %HA_EM-6-LOG: TRACK_IP_DOWN : DEBUG(smtp_lib) :
smtp_connect_attempt: 2
*Feb 9 02:06:07.431: %HA_EM-6-LOG: TRACK_IP_DOWN : DEBUG(smtp_lib) :
fh_smtp_connect failed at attempt 2
Kalo kita lihat hasil debug diatas mendeteksi bahwa IP SLA down dan langsung
mencoba mengirim email, sayangnya router kita tidak konek ke internet jadi yang
muncul adalah translating “smtp.gmail.com”, tapi bisa disimpulkan konfigurasinya
sudah berhasil.
R1
R1(config)#
*Feb 9 02:07:44.407: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up
R1(config)#
*Feb 9 02:07:44.411: %HA_EM-6-LOG: IP_SLA_1_UP: IP SLA 1 is up
Verifikasi ip sla
R1
R1#show ip sla statistics
IPSLAs Latest Operation Statistics
IPSLA operation id: 1
Type of operation: icmp-echo
Latest RTT: 16 milliseconds
Latest operation start time: *02:08:34.115 UTC Sun Feb 9 2020
Latest operation return code: OK
Number of
successes: 10
Number of
failures: 10
Operation time to live: Forever
SW-1
SW-KIRI#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
SW-KIRI(vlan)#vlan 10 name Engineer
VLAN 10 modified:
Name: Engineer
SW-KIRI(vlan)#exit
APPLY completed.
Exiting....
SW-KIRI#conf t
SW-KIRI(config)#int e0/0
SW-KIRI(config-if)#switchport mode access
SW-KIRI(config-if)#switchport access vlan 10
SW-KIRI(config-if)#exit
IOU-2
SW-KANAN#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.
SW-KANAN(vlan)#vlan 10 name Engineer
VLAN 10 modified:
Name: Engineer
SW-KANAN(vlan)#exit
APPLY completed.
Konfigurasi trunkingnya
SW-KIRI
SW-KIRI(config)#int e0/1
SW-KIRI(config-if)#switchport trunk encapsulation dot1q
SW-KIRI(config-if)#switchport mode trunk
SW-KIRI(config-if)#switchport trunk allowed vlan 10
SW-KIRI(config-if)#exit
SW-KANAN
SW-KANAN(config)#int e0/1
SW-KANAN(config-if)#switchport trunk encapsulation dot1q
SW-KANAN(config-if)#switchport mode trunk
SW-KANAN(config-if)#switchport trunk allowed vlan 10
SW-KANAN(config-if)#exit
SW-KANAN
SW-KANAN#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3, Et1/0, Et1/1
Et1/2, Et1/3, Et2/0, Et2/1
Et2/2, Et2/3, Et3/0, Et3/1
Et3/2, Et3/3
10 Engineer active Et0/0
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
PC2
PC2> ip 192.168.10.2/24
Checking for duplicate address...
PC1 : 192.168.10.2 255.255.255.0
Berhasil ping..
Tambahkan PC-3 dan Router. Kita buat vlan 20 serta daftarkan ke port e0/2
SW-1
SW-KANAN(config)#vlan 20
SW-KANAN(config-vlan)#name Pelajar
SW-KANAN(config-vlan)#exit
SW-KANAN(config)#int e0/2
SW-KANAN(config-if)#switchport mode access
SW-KANAN(config-if)#switcport access vlan 20
SW-KANAN(config-if)#exit
SW-KANAN(config)#int e0/1
SW-KANAN(config-if)#switchport trunk allowed vlan 20
SW-KANAN(config-if)#exit
Kita konfigurasi trunk ke arah R1
SW-1
SW-KIRI(config)#int e0/2
SW-KIRI(config-if)#switchport trunk encapsulation dot1q
SW-KIRI(config-if)#switchport mode trunk
SW-KIRI(config-if)#switchport trunk allowed vlan 10,20
SW-KIRI(config-if)#exit
SW-KIRI(config)#int e0/1
SW-KIRI(config-if)#switchport trunk allowed vlan add 20
SW-KIRI(config-if)#exit
Selanjutnya kita isi gateway pada setiap PC dan tes ping ke gateway
PC1
PC1> ip 192.168.10.1/24 192.168.10.254
Checking for duplicate address...
PC1 : 192.168.10.1 255.255.255.0 gateway 192.168.10.254
PC3>
PC3> ping 192.168.20.254
host (192.168.20.254) not reachable
Hasil ping dari PC3 ke R1 masih gagal, karena pada SW-KIRI belum kita
setting vlan 20. Kita verifikasi pada SW-KIRI
SW-KIRI
SW-KIRI(config)#do show vlan brief
Pada SW-KIRI tidak ada vlan 20, sehingga packet dari SW-KANAN tidak bisa
lewat ke SW-KIRI. Untuk itu, konfigurasikan vlan 20 dan tidak perlu di assign
kemana-mana.
SW-KIRI
SW-KIRI#vlan database
SW-KIRI(vlan)#vlan 20 name Pelajar
VLAN 20 added:
Name: Pelajar
SW-KIRI(vlan)#exit
R1
R1#show cdp neighbors
Device ID Local Intrfce Holdtme Capability Platform Port ID
ESW1 Fas 0/0 169 S I 2691 Fas 1/2
SW1
SW1#sh vlan-switch brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/3, Fa1/4, Fa1/5, Fa1/6
Fa1/7, Fa1/8, Fa1/9, Fa1/10
Fa1/11, Fa1/12, Fa1/13, Fa1/14
Fa1/15
10 Engineer active Fa1/0
20 Pelajar active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
SW2
SW2#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa1/1 on 802.1q trunking 1
PC3
PC3> sh ip
NAME : PC3[1]
IP/MASK : 192.168.20.1/24
GATEWAY : 192.168.20.254
DNS :
MAC : 00:50:79:66:68:02
LPORT : 20028
RHOST:PORT : 127.0.0.1:20029
MTU: : 1500
Oke guys.. Selanjutnya kita konfigurasi SPAN pada ESW1 untuk mengirimkan
semua trafik dari vlan 1 pada R1 ke PC Wireshark. Pengetesannya yaitu R1
ping ke Interface SVI 10 Switch SW1, maka trafik yang sama juga akan
diterima oleh PC Wireshark.
Konfigurasi R1
R1
R1(config)#interface FastEthernet0/0
R1(config)#ip address 192.168.10.1 255.255.255.0
R1(config)#exit
Pada PC, jalankan Wiresharknya, kemudian pada bagian filter, ketik ICMP.
Selanjutnya lakukan tes ping dari R1 ke SW1.
SW1
SW#ping 192.168.10.1 source vlan 10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.10.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/5 ms
Pada RSPAN, bedanya dengan SPAN adalah perangkat yang mau dicapture
dan yang mau mengcapture berada pada switch yang berbeda.
Pada RSPAN dibutuhkan 1 vlan khusus untuk RSPAN, misal vlan 100. Cabut
kabel dari PC ke arah SW-1 dan tambahkan SW-2 colok PC ke SW-2.
Cabut kabel dari PC ke arah SW-1 dan tambahkan SW-2 colok PC ke SW-2.
Hapus terlebih dahulu konfigurasi SPAN sebelumnya.
SW-1
SW-1(config)#do show run | i
monitor monitor session 1
source vlan 10
monitor session 1 destination interface Et0/1
SW-1(config)#no monitor session 1 source vlan 10
SW-1(config)#no monitor session 1 destination interface Et0/1
SW-1
SW-1#debug spanning-tree events
SW-1(config)#int e0/0
SW-1(config-if)#shutdown
*Feb 1 12:05:41.821: %LINK-5-CHANGED: Interface Ethernet0/0, changed
state to administratively down
SW-1(config-if)#no shutdown
*Feb 1 12:05:48.316: STP: VLAN0010 Et0/0 -> listening
*Feb 1 12:06:03.317: STP: VLAN0010 Et0/0 -> learning
*Feb 1 12:06:26.431: STP: VLAN0010 Et0/0 -> forwarding
Perhatikan pada lampu portnya tidak ada lagi lampu oranye, melainkan
langsung hijau.
Fungsinya sama seperti portfast, hanya saja perlu diingat bahwa portfast
tidak boleh dikonfigurasikan pada trunk karena akan mengakibatkan
spanning tree nya menjadi disable.
Nah untuk hal tersebut yakni agar port bisa langsung forward tanpa perlu
menunggu listening dan forwarding dulu, kita bisa konfigurasikan
UPLINKFAST. Sehingga bila link utamanya down, maka link backupnya bisa
langsung UP seketika tanpa perlu oranye dulu portnya.
▪ Konfigurasikan trunk pada kedua link diatas
Konfigurasi uplinkfast
SW-1
IOU1(config)#vlan 12
IOU1(config-vlan)#name Bebas
IOU1(config-vlan)#interface vlan 12
IOU1(config-if)#ip address 12.12.12.1 255.255.255.0
IOU1(config-if)#no shutdown
!
IOU1(config)#int e0/0
IOU1(config-if)#switchport trunk encapsulation dot1
IOU1(config-if)#switchport trunk encapsulation dot1q
IOU1(config-if)#switchport mode trunk
!
IOU1(config)#int e0/1
IOU1(config-if)#switchport trunk encapsulation dot1q
IOU1(config-if)#switchport mode trunk
Kita cek terlebih dahulu port mana yang digunakan dan port sebagai backup.
SW-2
IOU2#sh spanning-tree vlan 12
VLAN0012
Spanning tree enabled protocol ieee
Root ID Priority 32780
Address aabb.cc00.0100
Cost 100
Port 1 (Ethernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32780 (priority 32768 sys-id-ext 12)
Address aabb.cc00.0200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/0 Root FWD 100 128.1 Shr
Et0/1 Altn BLK 100 128.2 Shr
SW-1
SW1(config)#int e0/0
SW1(config-if)#shutdown
SW1(config-if)#exit
Terlihat cukup banyak RTO nya saat proses perpindahan jalur ketika link
e0/0 nya down dan kemudian berpindah ke e0/0. Selanjutnya
konfigurasikan uplink fast pada SW1
SW-2
SW2#ping 12.12.12.1 re 10000 Type escape sequence to abort.
Sending 10000, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 99 percent (9992/10000), round-trip min/avg/max = 1/4/92
ms
Terlihat bahwasanya RTO nya hanya 2 kali, jauh lebih sedikit dibanding
sebelumnya. Kalau pada perangkat switch sebenarnya malah tidak ada RTO
sama sekali. Disini RTO nya muncul karena menggunakan GNS3 yang cukup
Konfigurasikan BPDU guard pada port e0/0 sehingga portnya akan menjadi
blok error disable bila menerima BPDU. Pada sisi Router bisa juga
digantikan dengan Switch.
SW-1
SW1(config)#interface e0/0
SW1(config-if)#spanning-tree bpduguard enable
*Feb 1 15:56:38.537: %SPANTREE-2-BLOCK_BPDUGUARD: Received
BPDU on port Et0/0 with BPDU Guard enabled. Disabling port.
*Feb 1 15:56:38.537: %PM-4-ERR_DISABLE: bpduguard error detected
on Et0/0, putting Et0/0 in err-disable state
SW-1
SW1#show spanning-tree interface e0/0 detail
Port 1 (Ethernet0/0) of VLAN0001 is designated forwarding
Port path cost 100, Port priority 128, Port Identifier 128.1.
Designated root has priority 32769, address aabb.cc00.0100
Designated bridge has priority 32769, address aabb.cc00.0100
Designated port id is 128.1, designated path cost 0
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1
The port is in the portfast edge mode
Link type is point-to-point by default
Bpdu filter is enabled
BPDU: sent 0, received 0
Terlihat bahwasanya nilai BPDU yang sent dan received akan selalu 0 karena
di filter. Berbeda pada BPDU Guard dImana portnya akan langsung menjadi
down, maka pada BPDU Filter interfacenya masih tetap UP.
▪ Konfigurasikan pada SW1 agar SW2 tidak akan pernah menjadi root
apapun kondisinya. Konfigurasi pada SW-1 dan SW-2
Pastikan SW1 yang menjadi root bridge, gunakan show spanning tree dan
pastikan muncul this bridge is the root. Lakukan debugging pada SW-2
SW-1
SW2#debug spanning-tree
events Spanning Tree event debugging is on
SW-2
SW2#
*Feb 1 16:18:47.287: STP: VLAN0001 heard root 4097-aabb.cc00.0100 on
Et0/1
*Feb 1 16:18:47.287: supersedes 24577-aabb.cc00.0200
*Feb 1 16:18:47.287: STP: VLAN0001 new root is 4097, aabb.cc00.0100 on
port Et0/1, cost 100
*Feb 1 16:18:47.287: %SPANTREE-2-ROOTGUARD_BLOCK: Root guard
blocking port Ethernet0/0 on VLAN0001.
SW2#
*Feb 1 16:18:47.289: STP: VLAN0001 sent Topology Change Notice on
Et0/1
*Feb 1 16:18:47.289: STP: VLAN0001 Et0/0 -> blocking
SW-2
SW2#show spanning-tree inconsistentports
SW-1
SW1(config-mst)#name IDN
SW1(config-mst)#revision 1
SW1(config-mst)#instance 1 vlan 10,20,30
SW1(config-mst)#instance 2 vlan 40,50,60
SW1(config-mst)#span mst 1 root primary
SW1(config)#span mst 2 root secondary
!
SW-2
SW2(config)#spanning-tree mode mst
SW2(config)#spanning-tree mst configuration
SW2(config-mst)#name IDN
SW2(config-mst)#revision 1
SW2(config-mst)#instance 1 vlan 10,20,30
SW2(config-mst)#instance 2 vlan 40,50,60
SW2(config-mst)#span mst 1 root secondary
SW2(config)#span mst 2 root primary
!
SW2(config)#interface range e0/0-1
SW2(config-if-range)#switchport trunk encap dot1q
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#exit
SW-2
SW2#show spanning-tree mst 2
##### MST2 vlans mapped: 40,50,60
Bridge address aabb.cc00.0200 priority 24578 (24576 sysid 2)
Root this switch for MST2
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------
Et0/0 Desg FWD 2000000 .................... 128.1 P2p
Et0/1 Desg FWD 2000000
128.2 P2p
Berikut Konfigurasinya :
SW-1
SW1(config)#no spanning-tree mst configuration
SW1(config)#spanning-tree mode rapid-pvst
SW1(config)#spanning-tree vlan 10,20,30 root primary
SW1(config)#spanning-tree vlan 40,50,60 root secondary
SW-2
SW2(config)#no spanning-tree mst configuration
SW2(config)#spanning-tree mode rapid-pvst
SW2(config)#spanning-tree vlan 10,20,30 root secondary
SW2(config)#spanning-tree vlan 40,50,60 root primary
Verifikasi dan Pastikan SW1 menjadi root bridge untuk vlan 10, 20 dan 30
SW-1
SW1#show spanning-tree
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address aabb.cc00.0100
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
SW-2
SW2#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address aabb.cc00.0100
Cost 100
Port 1 (Ethernet0/0)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Verifikasi
SW-1
SW1#show etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use N - not in use, no aggregation
f - failed to allocate aggregator
M - not in use, minimum links not met
m - not in use, port not aggregated due to minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
A - formed by Auto LAG
SW-1
SW1#show interfaces port-channel 1
switchport Name: Po1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
SW-1
SW1#show spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address aabb.cc00.0100
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Untuk lab ini menggunakan Pagp Etherchannel, PagP ini etherchannel milik
cisco jadi di vendor lain tidak ada. Mode yang bisa digunakan untuk
membentuk etherchannel PagP ada 2 yaitu :
- Desirable
- Auto
Berikut tabel yang bisa teman-teman lihat untuk memahami lab ini.
SW1 SW2 EtherChannel?
Desirable Desirable Yes
Auto Desirable Yes
Desirable Auto Yes
Auto Auto No
Berikut konfigurasinya
SW-1
SW1(config)#interface range e0/0-2
SW1(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1
!
SW1(config-if-range)#interface port-channel 1
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#exit
Verifikasi
SW-1
SW1#show etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use N - not in use, no aggregation
f - failed to allocate aggregator
M - not in use, minimum links not met
m - not in use, port not aggregated due to minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
A - formed by Auto LAG
Number of channel-groups in use: 1 Number of aggregators: 1
SW-1
SW1#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address aabb.cc00.0100
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Untuk lab ini menggunakan LACP Etherchannel, LACP ini etherchannel Open
Standard jadi di vendor lain ada. Mode yang bisa digunakan untuk
membentuk etherchannel LACP ada 2 yaitu :
- Active
- Passive
Kedua Mode ini bisa digunakan tapi ada syaratnya jika mode Passive dan
Passive ketemu maka tidak akan membentuk etherchannel sama sekali,
berikut ini tabel yang bisa kita lihat untuk memahami lab berikut ini.
Berikut konfigurasinya
SW-1
SW1(config)#interface range e0/0-2
SW1(config-if-range)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1
!
SW1(config-if-range)#interface port-channel 1
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#exit
Verifikasi
SW-1
SW1#show etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use N - not in use, no aggregation
f - failed to allocate aggregator
M - not in use, minimum links not met
m - not in use, port not aggregated due to minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
A - formed by Auto LAG
Number of channel-
groups in use: 1 Number
of aggregators: 1
SW-1
SW1#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address aabb.cc00.0100
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Kalo kita lihat pada lab-lab sebelumnya semua etherchannel berjalan pada
layer 2 dan kali ini kita akan rubah agar etherchannelnya berjalan dilayer
3, untuk topology masih sama kita kemudian Konfigurasikan EtherChannel
Layer 3 antara SW1 dan SW2 tanpa melakukan negosiasi protocol
SW-1
SW1(config)#interface range e0/0-
2 SW1(config-if-range)#no
switchport SW1(config-if-
range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
!
SW1(config-if-range)#Interface
port-channel1 SW1(config-if)#no
switchport
SW1(config-if)#ip address 12.12.12.1 255.255.255.0
SW-1
SW1(config)#interface port-channel 1
SW1(config-if)#no switchport
SW1(config-if)#ip address 12.12.12.1 255.255.255.0
SW1(config-if)#exit
Verifikasi
SW-1
SW1#show etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use N - not in use, no aggregation
f - failed to allocate aggregator
M - not in use, minimum links not met
m - not in use, port not aggregated due to minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
A - formed by Auto LAG
Number of channel-groups in use: 1 Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-------------------------------------------
1 Po1(RU) --------------------- Et0/0(P) Et0/1(P) Et0/2(P)
Cek ping
SW-1
SW1#ping 12.12.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/16 ms
Konfigurasikan port-security
SW-1
Switch(config)#interface FastEthernet1/0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security mac-address 0021.d831.1bda
Verifikasi
SW-1
Switch#show port-security interface f1/0/1
Port Security : Enabled
Port Status : Secure-up Violation
Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute Secure Static
Address Aging : Disabled Maximum
MAC Addresses :1
Total MAC Addresses :1
Configured MAC Addresses : 1
Sticky MAC Addresses :0
Last Source Address:Vlan : 0021.d831.1bda:1
Security Violation Count : 0
SW-1
Switch#show int f1/0/1
FastEthernet1/0/1 is down, line protocol is down (err-disabled)
Kalau di CCNA Jika ingin menghidupkan port yang terdisable karena violation
maka caranya adalah dengan shutdown interfacenya dan no shutdown, Kali ini
kita akan membuat recovery otomatis tanpa harus shutdown dan no shutdown
Kondisi Awal :
SW-1
Switch#show int f1/0/1
FastEthernet1/0/1 is down, line protocol is down (err-disabled)
SW-1
Switch(config)#errdisable recovery cause psecure-violation
Switch(config)#errdisable recovery interval 60
SW-1
Switch(config)#
*Mar 1 00:20:57.376: %PM-4-ERR_RECOVER: Attempting to recover from
psecure- violation err-disable state on Fa1/0/1
*Mar 1 00:21:01.243: %LINK-3-UPDOWN: Interface FastEthernet1/0/1,
changed state to up
*Mar 1 00:21:02.250: %LINEPROTO-5-UPDOWN: Line protocol on
Interface FastEthernet1/0/1, changed state to up
!
Switch(config)#do show int f1/0/1
FastEthernet1/0/1 is up, line protocol is up (connected)
SW-1
Switch(config)#no errdisable recovery interval 60
Switch(config)#no errdisable recovery cause psecure-violation
Switch(config)#default int f1/0/1
R1
Router(config)#default int f0/0
SW-1
Switch(config)#do show port-security interface
f1/0/1 Port Security : Enabled
Port Status : Secure-up
Violation Mode : Restrict
Aging Time : 0 mins
Aging Type : Absolute Secure Static
Address Aging : Disabled Maximum
MAC Addresses : 1
Total MAC Addresses : 1 Configured
MAC Addresses : 1 Sticky
MAC Addresses :0
Last Source Address:Vlan : aaaa.bbbb.cccc:1
Security Violation Count : 5
R2
R2(config)#interface FastEthernet0/0
R2(config-if)#ip address 23.23.23.2
255.255.255.0 R2(config-if)#no shutdown
!
R2(config-if)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#standby 1 ip 192.168.12.254
R2(config-if)#standby 1 preempt
R2(config-if)#standby 1 authentication md5 key-string cisco
R2(config-if)#no shutdown
!
R2(config-if)#router eigrp 1
R2(config-router)#net 0.0.0.0
R2(config-router)#no auto-summary
Konfigurasi di PC
PC1 dan PC2
PC1> ip 192.168.12.10/24 192.168.12.254
PC2> ip 192.168.12.11/24 192.168.12.254
Verifikasi
R1 dan R2
R1#show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1
100 P Standby192.168.12.2 local 192.168.12.254
!
R2(config-if)#do sh standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 110
P Active local 192.168.12.1 192.168.12.254
PC-1
PC2> ping 8.8.8.8
84 bytes from 8.8.8.8 icmp_seq=2 ttl=254 time=13.678 ms
84 bytes from 8.8.8.8 icmp_seq=3 ttl=254 time=12.628 ms 8.8.8.8
icmp_seq=1 timeout
8.8.8.8 icmp_seq=22 timeout
84 bytes from 8.8.8.8 icmp_seq=7 ttl=254 time=30.278 ms
84 bytes from 8.8.8.8 icmp_seq=8 ttl=254 time=23.097 ms 84 bytes from
8.8.8.8 icmp_seq=9 ttl=254 time=23.630 ms
Nah good masih jalan, ada beberapa RTO dikarenakan proses pindah jalur
dari R2 ke R1.
R2
R2(config)#track 1 ip route 8.8.8.8/32 reachability
!
R2(config-track)#interface FastEthernet0/1
R2(config-if)#standby 1 track 1 decrement 20
Verifikasi
R2
R2(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1
1 110 P Active local 192.168.12.1 192.168.12.254
R3
R3(config)#interface lo0
R3(config-if)#shutdown
R3(config-if)#exit
Verifikasi
R2
R2(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1
110 P Active local 192.168.12.1 192.168.12.254
R2
R2(config)#
*Feb 3 12:07:18.907: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up
*Feb 3 12:07:19.459: %HSRP-5-STATECHANGE: FastEthernet0/1 Grp 1 state Standby
-> Active
Langsung berubah menjadi up dan active dan nilai prioritynya normal yaitu 110
R2
R2(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 110
P Active local 192.168.12.1 192.168.12.254
R2
R2(config)#interface FastEthernet0/1
R2(config-if)#standby 2 ip 192.168.12.253
R2(config-if)#standby 2 preempt
R2(config-if)#standby 2 authentication md5 key-string cisco
Verifikasi
R1 dan R2
R1(config)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP Fa0/1 1 100 P
Standby 192.168.12.2 local 192.168.12.254
Fa0/1 2 110 P Active local 192.168.12.2 192.168.12.253
!
R2(config-if)#do show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Fa0/1 1 110 P Active local 192.168.12.1 192.168.12.254 Fa0/1 2 100 P
Standby 192.168.12.1 local 192.168.12.253
R1 dan R2
R1(config)#default int f0/1
R1(config)#default int f0/1
R2
R2(config)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#vrrp 1 ip 192.168.12.254
R2(config-if)#vrrp 1 authentication md5 key-string cisco
Konfigurasi di PC
R1 dan R2
PC1> ip 192.168.12.10/24 192.168.12.254
PC2> ip 192.168.12.11/24 192.168.12.254
Verifikasi
R1
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
R2
R2(config)#
*Feb 3 12:22:54.775: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Backup -> Master
R2
R2(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 100 3609 YMaster 192.168.12.2 192.168.12.254
R1
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Init 0.0.0.0 192.168.12.254
Shutdown interface loopback R3, dan perhatikan proses yang terjadi berikutnya
R3
R3(config)#int lo0
R3(config-if)#shutdown
R3(config-if)#exit
Perhatikan statusnya akan berubah dari Master menjadi Backup dengan nilai
priority 90
R1
R1(config)#no track 1 ip route 8.8.8.8 255.255.255.255 reachability
R1(config)#ip sla 1
R1(config-ip-sla)#icmp-echo 8.8.8.8 source-interface f0/1
R1(config-ip-sla-echo)#frequency 10
R1(config-ip-sla-echo)#timeout 5000
R1(config-ip-sla-echo)#track 1 ip sla 1 reachability
R1(config)#ip sla schedule 1 start-time now life forever
!
R1(config)#do show run int f0/1 | i decrement
vrrp 1 track 1 decrement 20
R1
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
Perhatikan status tracking akan berubah dari up menjadi down yang kemudian
menjadi Backup
R1
*Feb 3 12:37:17.739: %TRACKING-5-STATE: 1 ip sla 1 reachability Up->Down
R1(config)#
*Feb 3 12:37:20.871: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Master -> Backup
R1(config)#
Verifikasi lagi
R1
*Feb 3 12:41:02.739: %TRACKING-5-STATE: 1 ip sla 1 reachability Down->Up
R1(config)#
*Feb 3 12:41:05.931: %VRRP-6-STATECHANGE: Fa0/1 Grp 1 state Backup ->
Master
!
R1(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
R2
R2(config)#interface FastEthernet0/1
R2(config-if)#vrrp 2 ip 192.168.12.253
R2(config-if)#vrrp 2 priority 110
Verifikasi
R1
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 110 3570 Y Master 192.168.12.1 192.168.12.254
Fa0/1 2 100 3609 Y Backup 192.168.12.2 192.168.12.253
R2
R2(config)#do show vrrp brief
Interface Grp Pri Time Own Pre State Master addr Group addr Fa0/1
1 100 3609 Y Backup 192.168.12.1 192.168.12.254
Fa0/1 2 110 3570 Y Master 192.168.12.2 192.168.12.253
R1 dan R2
default int f0/1
Konfigurasi di R1
R1
R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#glbp 1 ip 192.168.12.254
R2
R2(config)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#glbp 1 ip 192.168.12.254
Konfigurasi pada PC
Verifikasi
R1
R1(config)#do show glbp brief
Interface Grp Fwd Pri State Address Active router Standby
router
Fa0/1 1 - 100 Active 192.168.12.254 local 192.168.12.2
Fa0/1 1 1 - Active 0007.b400.0101 local
Fa0/1 1 2 - Listen 0007.b400.0102 192.168.12.2 -----------------
Verifikasi traceroute
PC-1
PC1> trace 8.8.8.8
trace to 8.8.8.8, 8 hops max, press Ctrl+C to stop
1 192.168.12.1 40.728 ms 9.179 ms 9.698 ms
2 13.13.13.3 ............ 39.931 ms
PC-2
PC2> trace 8.8.8.8
trace to 8.8.8.8, 8 hops max, press Ctrl+C to stop
1 192.168.12.2 5.502 ms 10.478 ms 9.250 ms
2 23.23.23.3 41.292 ms
Seperti yang terlihat diatas kedua link digunakan bersamaan, keduanya aktif