Assalamualaikum Wr.Wb
Oke to the point saja jika sebelumnya saya sudah menulis artikell tentang dmvpn phase 1.dimana ketika antar spoke ingin saling berkomunikasi maka harus melewati hub terlebih dahllu...
Beda hal nya dengan phase 2,dimana ketika antar spoke ingin saling berkomunikasi tidak harus melewati hub terlebih dahulu(anti lewat" hub...)......
Topo 1.0
Seperti pada artikel dmvpn sebelumnya R2 pada topologi kali ini masih sama sebagai internet,R1 sebagai kantor pusat(hub),dan R3-R4 sebagai cabang (spoke).
Disini saya tegaskan untuk setting ip addres pada setiap router,Router pusat dan kedua router cabang memiliki ip loopback,dan ketiganya sudah melakukan konfigurasi default route untuk routing menuju internet.
Sekarang langkah pertama kita lakukan konfigurasi dmvpn nya
konfigurasi dmvpn R-pusat
R1(config)#int tun0
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#tunnel mode gre multipoint
R1(config-if)#ip nhrp network-id 1
R1(config-if)#ip nhrp map multicast dynamic
R1(config-if)#ex
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#tunnel source 12.12.12.1
R1(config-if)#tunnel mode gre multipoint
R1(config-if)#ip nhrp network-id 1
R1(config-if)#ip nhrp map multicast dynamic
R1(config-if)#ex
Konfigurasi dmvpn R-cabang3
R3(config)#int tun0
R3(config-if)#ip add 10.10.10.3 255.255.255.0
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#tunnel mode gre multipoint
R3(config-if)#ip nhrp network-id 1
R3(config-if)#ip nhrp map 10.10.10.1 12.12.12.1
R3(config-if)#ip nhrp nhs 10.10.10.1
R3(config-if)#ip nhrp map multicast 12.12.12.1
R3(config-if)#ex
R3(config-if)#ip add 10.10.10.3 255.255.255.0
R3(config-if)#tunnel source 23.23.23.3
R3(config-if)#tunnel mode gre multipoint
R3(config-if)#ip nhrp network-id 1
R3(config-if)#ip nhrp map 10.10.10.1 12.12.12.1
R3(config-if)#ip nhrp nhs 10.10.10.1
R3(config-if)#ip nhrp map multicast 12.12.12.1
R3(config-if)#ex
Konfigurasi dmvpn R-cabang4
R4(config)#int tun0
R4(config-if)#ip add 10.10.10.4 255.255.255.0
R4(config-if)#tunnel source 24.24.24.4
R4(config-if)#tunnel mode gre multipoint
R4(config-if)#ip nhrp network-id 1
R4(config-if)#ip nhrp map 10.10.10.1 12.12.12.1
R4(config-if)#ip nhrp nhs 10.10.10.1
R4(config-if)#ip nhrp map multicast 12.12.12.1
R4(config-if)#ex
R4(config-if)#ip add 10.10.10.4 255.255.255.0
R4(config-if)#tunnel source 24.24.24.4
R4(config-if)#tunnel mode gre multipoint
R4(config-if)#ip nhrp network-id 1
R4(config-if)#ip nhrp map 10.10.10.1 12.12.12.1
R4(config-if)#ip nhrp nhs 10.10.10.1
R4(config-if)#ip nhrp map multicast 12.12.12.1
R4(config-if)#ex
Oh iya,Perbedaan dengan dmvpn phase 1 dan phase 2 itu terletak pada syntax untuk router spoke saja.dimana di phase 1 kita melakukan konfigurasi tunnel destination, sedangkan untuk di phase 2 tunnel destination tersebut diganti menjadi tunnel mode gre multipoint...
Selanjutnya kita melakukan pengecekan berikut perintah nya.
Cek dmvpn
R1(config-if)#do sh 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,
# Ent Peer NBMA Addr Peer Tunnel Add State UpDn Tm Attrb
----- ---------------
--------------- ----- -------- -----
1 23.23.23.3 10.10.10.3 UP 00:01:51 D
1 24.24.24.4 10.10.10.4 UP 00:00:15 D
Cek Nhrp..
R1(config-if)#do sh ip nhrp
10.10.10.3/32 via 10.10.10.3
Tunnel0 created 00:05:31, expire 01:54:28
Type: dynamic, Flags: unique registered used
NBMA address: 23.23.23.3
10.10.10.4/32 via 10.10.10.4
Tunnel0 created 00:03:55, expire 01:56:04
Type: dynamic, Flags: unique registered used
NBMA address: 24.24.24.4
Setelah mapping nya berhasil selanjutnya kita lakukan konfigurasi routing protocol ospf nya,,oh iya perlu di ingat pada dmvpn phase 2 ini ,kita tidak bisa menggunakan ospf poin to point...dan untuk alternatif nya menggunakan type broadcast seperti berikut.
R1(config-if)#router ospf 10
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 10.10.10.0 0.0.0.255 area 0
R1(config-router)#in tun0
R1(config-if)#ip ospf network broadcast
R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R1(config-router)#net 10.10.10.0 0.0.0.255 area 0
R1(config-router)#in tun0
R1(config-if)#ip ospf network broadcast
R3(config-if)#router ospf 10
R3(config-router)#net 10.10.10.0 0.0.0.255 area 0
R3(config-router)#net 3.3.3.3 0.0.0.0 area 0
R3(config-router)#int tun0
R3(config-if)#ip ospf network broadcast
R3(config-if)#ip ospf priority 0
R3(config-router)#net 10.10.10.0 0.0.0.255 area 0
R3(config-router)#net 3.3.3.3 0.0.0.0 area 0
R3(config-router)#int tun0
R3(config-if)#ip ospf network broadcast
R3(config-if)#ip ospf priority 0
R4(config)#router ospf 10
R4(config-router)#net 4.4.4.4 0.0.0.0 area 0
R4(config-router)#net 10.10.10.0 0.0.0.255 area 0
R4(config-router)#int tun0
R4(config-if)#ip ospf network broadcast
R4(config-if)#ip ospf priority 0
R4(config-router)#net 4.4.4.4 0.0.0.0 area 0
R4(config-router)#net 10.10.10.0 0.0.0.255 area 0
R4(config-router)#int tun0
R4(config-if)#ip ospf network broadcast
R4(config-if)#ip ospf priority 0
Mungkin dibenak kalian heran mengapa pada masing-masing router spoke saya berikan priority 0,itu tujuan nya agar spoke tidak menjadi DR.
Oke sekarang kita lihat table routing nya kembali
R4(config-if)#do sh ip route ospf
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 24.24.24.2 to network 0.0.0.0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 10.10.10.1, 00:34:54, Tunnel0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/1001] via 10.10.10.3, 00:34:54, Tunnel0
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 24.24.24.2 to network 0.0.0.0
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/1001] via 10.10.10.1, 00:34:54, Tunnel0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/1001] via 10.10.10.3, 00:34:54, Tunnel0
Selanjutnya kita coba trace
R4(config-if)#do trace 3.3.3.3
Type escape sequence to abort.
Tracing the route to 3.3.3.3
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.10.3 64 msec 64 msec 56 msec
Type escape sequence to abort.
Tracing the route to 3.3.3.3
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.10.3 64 msec 64 msec 56 msec
Bisa dilihat hasil dari tabel routing dan traceroute,jika R4 ingin ke 3.3.3.3 itu langsung via 10.10.10.3. Berarti ketika router spoke ingin menuju router spoke yang lainya maka akan langsung ke tujuan(spoke) dan tidak perlu melewati router hub terlebih dahulu.itu artinya antar spoke sudah melakukan mapping.bisa kita cekk maping nya berikut perintah untuk mengecek nya...
R4(config-if)#do sh ip nhrp
10.10.10.1/32 via 10.10.10.1
Tunnel0 created 00:44:45, never expire
Type: static, Flags: used
NBMA address: 12.12.12.1
10.10.10.3/32 via 10.10.10.3
Tunnel0 created 00:34:11, expire 01:25:48
Type: dynamic, Flags: router implicit used
NBMA address: 23.23.23.3
10.10.10.4/32 via 10.10.10.4
Tunnel0 created 00:34:11, expire 01:25:48
Type: dynamic, Flags: router unique local
NBMA address: 24.24.24.4
(no-socket)
R4(config-if)#
10.10.10.1/32 via 10.10.10.1
Tunnel0 created 00:44:45, never expire
Type: static, Flags: used
NBMA address: 12.12.12.1
10.10.10.3/32 via 10.10.10.3
Tunnel0 created 00:34:11, expire 01:25:48
Type: dynamic, Flags: router implicit used
NBMA address: 23.23.23.3
10.10.10.4/32 via 10.10.10.4
Tunnel0 created 00:34:11, expire 01:25:48
Type: dynamic, Flags: router unique local
NBMA address: 24.24.24.4
(no-socket)
R4(config-if)#
Nah hasilnya R3 & R4 sudah melakukan mapping secara dynamic artinya spoke dengan spoke dapat berkomunikasi secara langsung,dan karena itu juga
artikel kali ini berakhirrr hiya.hiya hiyyaaa..
Wassalamualaikum.. Wr.Wb