GRE Tunnel in Vyatta
::GRE Tunnelling::
==================
Tutorial ini menggunakan:
-vyatta 6.0 livecd
-virtualbox, bridged network mode
Topologi:
LAN WEST <==> WEST <==> cloud <==> EAST <==> LAN EAST
LAN WEST = 192.168.40.0/24
lo WEST = 10.10.1.1/32
WEST-cloud = 192.0.2.0/27
cloud-EAST = 192.0.2.32/27
lo EAST = 10.10.1.2/32
LAN EAST = 192.168.60.0/24
GRE Tunnel = 10.20.20.0/24 (WEST<=>EAST)
######################################################
WEST$configure
WEST#set interfaces ethernet eth0 address 192.168.40.1/24
WEST#set interfaces ethernet eth1 address 192.0.2.1/27
WEST#set interfaces loopback lo address 10.10.1.1/32
WEST#commit
WEST#set interfaces tunnel tun0 address 10.20.20.1/24
WEST#set interfaces tunnel tun0 local-ip 10.10.1.1
WEST#set interfaces tunnel tun0 remote-ip 10.10.1.2
WEST#set interfaces tunnel tun0 encapsulation gre
WEST#set interfaces tunnel tun0 description “GRE tunnel to EAST”
WEST#commit
WEST#set protocols static route 192.168.60.0/24 next-hop 10.20.20.2
WEST#commit
EAST$configure
EAST#set interfaces ethernet eth0 address 192.168.60.1/24
EAST#set interfaces ethernet eth1 address 192.0.2.33/27
EAST#set interfaces loopback lo address 10.10.1.2/32
EAST#commit
EAST#set interfaces tunnel tun0 address 10.20.20.2/24
EAST#set interfaces tunnel tun0 local-ip 10.10.1.2
EAST#set interfaces tunnel tun0 remote-ip 10.10.1.1
EAST#set interfaces tunnel tun0 encapsulation gre
EAST#set interfaces tunnel tun0 description “GRE tunnel to WEST”
EAST#commit
WEST#set protocols static route 192.168.40.0/24 next-hop 10.20.20.1
WEST#commit
cloud dalam keadaan nyata merupakan jaringan WAN. namun Antum dapat menyederhanakannya dengan router yang menghubungkan antara WEST dan EAST dengan routing protocol. -Wallahu a’lam-
Untuk melihat bahwa koneksi tunnelling kita berhasil atau tidak, Antum dapat mengcapture paket data yang masuk/keluar interface. Disana akan terlihat apakah datang dari IP tunnel atau bukan.
agung.ridwan.sn

