Topologi
Materi Lab
Materi Lab
- Bonding (LACP)
- Static Routing
- OSPF
- ECMP
- Redistribute
Tujuan Lab
Menghubungkan antar Router agar dapat saling berkomunikasi menggunakan Static Routing dan OSPF, agar antara Static Routing dan OSPF dapat saling mengetahui maka harus melakukan Redistribute, Terdapat dua jalur yang menuju tujuan yang sama, agar bersifat load balance maka kita gunakan ECMP. Koneksi antar Router yang terhubung langsung menggunakan Bonding agar kecepatan link antar Router menjadi bertambah.
Konfigurasi Interface Bonding
Pertama kita buat terlebih dahulu Interface bonding antar Router dan berikan alamat IP pada Interface bonding tersebutR1, R2, dan R4
Buat Interface bonding pada R1 yang mengarah ke R2 dan R4, Interface bonding ini terdiri beberapa Interface ethernet yang digabung menjadi satu Interface bonding.R1
/interface bonding add name=tor2 slaves=ether2,ether3 add name=tor4 slaves=ether4,ether5Lalu berikan alamat IP pada Interface bonding tersebut
/ip address add address=12.12.12.1/24 interface=tor2 network=12.12.12.0 add address=14.14.14.1/24 interface=tor4 network=14.14.14.0 add address=10.10.10.1/30 interface=ether1 network=10.10.10.0
R2
/interface bonding add name=tor1 slaves=ether4,ether5 add name=tor3 slaves=ether2,ether3 /ip address add address=12.12.12.2/24 interface=tor1 network=12.12.12.0 add address=23.23.23.2/24 interface=tor3 network=23.23.23.0 add address=20.20.20.1/30 interface=ether1 network=20.20.20.0
R4
/interface bonding add name=tor1 slaves=ether4,ether5 add name=tor3 slaves=ether2,ether3 add name=tor5 slaves=ether6,ether7 /ip address add address=34.34.34.4/24 interface=tor3 network=34.34.34.0 add address=14.14.14.4/24 interface=tor1 network=14.14.14.0 add address=45.45.45.4/24 interface=tor5 network=45.45.45.0Coba lakukan PING dari R1 menuju R2 dan R4
[admin@R1] > ping 12.12.12.2 SEQ HOST SIZE TTL TIME STATUS 0 12.12.12.2 56 64 8ms 1 12.12.12.2 56 64 1ms sent=2 received=2 packet-loss=0% min-rtt=1ms avg-rtt=4ms max-rtt=8ms [admin@R1] > ping 14.14.14.4 SEQ HOST SIZE TTL TIME STATUS 0 14.14.14.4 56 64 2ms 1 14.14.14.4 56 64 1ms sent=2 received=2 packet-loss=0% min-rtt=1ms avg-rtt=1ms max-rtt=2ms
R3
/interface bonding add name=tor2 slaves=ether2,ether3 add name=tor4 slaves=ether4,ether5 /ip address add address=23.23.23.3/24 interface=tor2 network=23.23.23.0 add address=34.34.34.3/24 interface=tor4 network=34.34.34.0 add address=30.30.30.1/30 interface=ether1 network=30.30.30.0
R5
/interface bonding add name=tor4 slaves=ether2,ether3 add name=tor6 slaves=ether4,ether5 add name=tor7 slaves=ether6,ether7 /ip address add address=45.45.45.5/24 interface=tor4 network=45.45.45.0 add address=56.56.56.5/24 interface=tor6 network=56.56.56.0 add address=57.57.57.5/24 interface=tor7 network=57.57.57.0
R6
/interface bonding add name=tor5 slaves=ether2,ether3 add name=tor8 slaves=ether4,ether5 /ip address add address=56.56.56.6/24 interface=tor5 network=56.56.56.0 add address=68.68.68.6/24 interface=tor8 network=68.68.68.0 add address=60.60.60.1/24 interface=ether1 network=60.60.60.0
R7
/interface bonding add name=tor5 slaves=ether2,ether3 add name=tor8 slaves=ether4,ether5 /ip address add address=57.57.57.7/24 interface=tor5 network=57.57.57.0 add address=78.78.78.7/24 interface=tor8 network=78.78.78.0 add address=70.70.70.1/30 interface=ether1 network=70.70.70.0
R8
/interface bonding add name=tor6 slaves=ether2,ether3 add name=tor7 slaves=ether4,ether5 /ip address add address=68.68.68.8/24 interface=tor6 network=68.68.68.0 add address=78.78.78.8/24 interface=tor7 network=78.78.78.0 add address=80.80.80.1/30 interface=ether1 network=80.80.80.0
Konfigurasi Static Routing
R1
Pada tiap Rute ada jalur lebih dari satu, yang dijadikan sebagai utama yang di set distance=1 dan yang cadangan yang di set distance=2, dan ada yang di load balance menggunakan ECMP/ip route add distance=1 gateway=14.14.14.4 add distance=2 gateway=12.12.12.2 add distance=1 dst-address=20.20.20.0/30 gateway=12.12.12.2 add distance=2 dst-address=20.20.20.0/30 gateway=14.14.14.4 add distance=1 dst-address=23.23.23.0/24 gateway=12.12.12.2 add distance=2 dst-address=23.23.23.0/24 gateway=14.14.14.4 add distance=1 dst-address=30.30.30.0/30 gateway=12.12.12.2,14.14.14.4 add distance=1 dst-address=34.34.34.0/24 gateway=14.14.14.4 add distance=2 dst-address=34.34.34.0/24 gateway=12.12.12.2
R2
/ip route add distance=1 gateway=12.12.12.1,23.23.23.3 add distance=1 dst-address=10.10.10.0/30 gateway=12.12.12.1 add distance=2 dst-address=10.10.10.0/30 gateway=23.23.23.3 add distance=1 dst-address=14.14.14.0/24 gateway=12.12.12.1 add distance=2 dst-address=14.14.14.0/24 gateway=23.23.23.3 add distance=1 dst-address=30.30.30.0/30 gateway=23.23.23.3 add distance=2 dst-address=30.30.30.0/30 gateway=12.12.12.1 add distance=1 dst-address=34.34.34.0/24 gateway=23.23.23.3 add distance=2 dst-address=34.34.34.0/24 gateway=12.12.12.1
R3
/ip route add distance=1 gateway=34.34.34.4 add distance=2 gateway=23.23.23.2 add distance=1 dst-address=10.10.10.0/30 gateway=34.34.34.4,23.23.23.2 add distance=1 dst-address=12.12.12.0/24 gateway=23.23.23.2 add distance=2 dst-address=12.12.12.0/24 gateway=34.34.34.4 add distance=1 dst-address=14.14.14.0/24 gateway=34.34.34.4 add distance=2 dst-address=14.14.14.0/24 gateway=23.23.23.2 add distance=1 dst-address=20.20.20.0/30 gateway=23.23.23.2 add distance=2 dst-address=20.20.20.0/30 gateway=34.34.34.4
R4
/ip route add distance=1 dst-address=10.10.10.0/30 gateway=14.14.14.1 add distance=2 dst-address=10.10.10.0/30 gateway=34.34.34.3 add distance=1 dst-address=12.12.12.0/24 gateway=14.14.14.1 add distance=2 dst-address=12.12.12.0/24 gateway=34.34.34.3 add distance=1 dst-address=20.20.20.0/30 gateway=34.34.34.3,14.14.14.1 add distance=1 dst-address=23.23.23.0/24 gateway=34.34.34.3 add distance=2 dst-address=23.23.23.0/24 gateway=14.14.14.1 add distance=1 dst-address=30.30.30.0/30 gateway=34.34.34.3 add distance=2 dst-address=30.30.30.0/30 gateway=14.14.14.1
Konfigurasi OSPF
R4
Pada Router ini juga terdapat entri static routing, maka lakukan kita lakukan redistribute dari static menjadi OSPF pada Router ini, dan masukan juga network-network yang ada di Router ini./routing ospf area set [ find default=yes ] disabled=yes /routing ospf instance set [ find default=yes ] disabled=yes add name=labospf redistribute-static=as-type-2 router-id=4.4.4.4 /routing ospf area add instance=labospf name=backbone-lab /routing ospf network add area=backbone-lab network=45.45.45.0/24
R5
/routing ospf area set [ find default=yes ] disabled=yes /routing ospf instance set [ find default=yes ] disabled=yes add name=labospf router-id=5.5.5.5 /routing ospf area add instance=labospf name=backbone-lab /routing ospf network add area=backbone-lab network=45.45.45.0/24 add area=backbone-lab network=56.56.56.0/24 add area=backbone-lab network=57.57.57.0/24
R6
/routing ospf area set [ find default=yes ] disabled=yes /routing ospf instance set [ find default=yes ] disabled=yes add name=labospf router-id=6.6.6.6 /routing ospf area add instance=labospf name=backbone-lab /routing ospf network add area=backbone-lab network=56.56.56.0/24 add area=backbone-lab network=68.68.68.0/24 add area=backbone-lab network=60.60.60.0/24
R7
/routing ospf area set [ find default=yes ] disabled=yes /routing ospf instance set [ find default=yes ] disabled=yes add name=labospf router-id=7.7.7.7 /routing ospf area add instance=labospf name=backbone-lab /routing ospf network add area=backbone-lab network=57.57.57.0/24 add area=backbone-lab network=78.78.78.0/24 add area=backbone-lab network=70.70.70.0/30
R8
/routing ospf area set [ find default=yes ] disabled=yes /routing ospf instance set [ find default=yes ] disabled=yes add name=labospf router-id=8.8.8.8 /routing ospf area add instance=labospf name=backbone-lab /routing ospf network add area=backbone-lab network=68.68.68.0/24 add area=backbone-lab network=78.78.78.0/24 add area=backbone-lab network=80.80.80.0/30
Konfigurasi VPCS
Setelah Router selesai dikonfigurasi sekarang kita berikan setiap VPCS alamat IPPC01
PC01> ip 10.10.10.2/24 10.10.10.1 Checking for duplicate address... PC1 : 10.10.10.2 255.255.255.0 gateway 10.10.10.1
PC02
PC02> ip 20.20.20.2/24 20.20.20.1 Checking for duplicate address... PC1 : 20.20.20.2 255.255.255.0 gateway 20.20.20.1
PC03
PC03> ip 30.30.30.2/24 30.30.30.1 Checking for duplicate address... PC1 : 30.30.30.2 255.255.255.0 gateway 30.30.30.1
PC04
PC4> ip 60.60.60.2/24 60.60.60.1 Checking for duplicate address... PC1 : 60.60.60.2 255.255.255.0 gateway 60.60.60.1
PC05
PC5> ip 70.70.70.2/24 70.70.70.1 Checking for duplicate address... PC1 : 70.70.70.2 255.255.255.0 gateway 70.70.70.1
PC06
PC6> ip 80.80.80.2/24 80.80.80.1 Checking for duplicate address... PC1 : 80.80.80.2 255.255.255.0 gateway 80.80.80.1
Konfirmasi
Lihatlah salah satu Routing table pada Router[admin@R5] > ip route print Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit # DST-ADDRESS PREF-SRC GATEWAY DISTANCE 0 ADo 10.10.10.0/30 45.45.45.4 110 1 ADo 12.12.12.0/24 45.45.45.4 110 2 ADo 20.20.20.0/30 45.45.45.4 110 3 ADo 23.23.23.0/24 45.45.45.4 110 4 ADo 30.30.30.0/30 45.45.45.4 110 5 ADC 45.45.45.0/24 45.45.45.5 tor4 0 6 ADC 56.56.56.0/24 56.56.56.5 tor6 0 7 ADC 57.57.57.0/24 57.57.57.5 tor7 0 8 ADo 60.60.60.0/24 56.56.56.6 110 9 ADo 68.68.68.0/24 56.56.56.6 110 10 ADo 70.70.70.0/30 57.57.57.7 110 11 ADo 78.78.78.0/24 57.57.57.7 110 12 ADo 80.80.80.0/30 56.56.56.6 110 57.57.57.7Setelah itu lakukan trace dari PC paling ujung hingga ke ujung Router satunya lagi
PC02> trace 80.80.80.1 trace to 80.80.80.1, 8 hops max, press Ctrl+C to stop 1 20.20.20.1 3.265 ms 0.382 ms 0.234 ms 2 23.23.23.3 6.803 ms 0.764 ms 0.519 ms 3 34.34.34.4 2.942 ms 1.045 ms 0.957 ms 4 45.45.45.5 6.159 ms 1.659 ms 1.380 ms 5 56.56.56.6 6.406 ms 2.514 ms 2.317 ms 6 *80.80.80.1 9.453 ms (ICMP type:3, code:3, Destination port unreachable)
Komentar
Posting Komentar