Topologi |
√ Menghubungkan semua client (PC) dari DHCP Server dan Statik IP ke server internet
√ Mempelajari VLAN antar switch
√ Konfigurasi antar router dengan menggunakan routing dynamic eigrp, RIP dan statik route
√ Dapat menerjemahkan alamat IPv4 dari IP private ke IP public agar dapat akses internet dengan mengiplementasikan statik NAT
Materi Lab :
√ Routing Dynamic EIGRP
√ VLAN
√ Inter VLAN Routing
√ DHCP dengan router
√ Statik NAT
√ DNS Server
√ Web Server
√ Trunk & Encapsulation Router
√ Redistribution (RIP dan EIGRP)
Konfigurasi Lab :
Untuk tahap konfigurasi kita akan memulai nya dari switch dulu dengan tujuan untuk mennyetting switchport mode setiap interface pada switch . Kita mulai di IDN-SW1.
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW1
IDN-SW1(config)#vlan 10
IDN-SW1(config-vlan)#vlan 20
IDN-SW1(config-vlan)#vlan 30
IDN-SW1(config-vlan)#name Group-Murid
IDN-SW1(config-vlan)#interface range f0/2-5
IDN-SW1(config-if-range)#switchport mode access
IDN-SW1(config-if-range)#switchport access vlan 10
IDN-SW1(config-if-range)#exit
IDN-SW1(config)#interface f0/1
IDN-SW1(config-if)#switchport mode trunk
IDN-SW1(config-if)#exit
Pada tahap selanjutnya kita konfigurasi di IDN-SW2
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW2
IDN-SW2(config)#vlan 20
IDN-SW2(config-vlan)#vlan 10
IDN-SW2(config-vlan)#vlan 30
IDN-SW2(config-vlan)#name Group-Guru
IDN-SW2(config-vlan)#interface range f0/2-5
IDN-SW2(config-if-range)#switchport mode access
IDN-SW2(config-if-range)#switchport access vlan 20
IDN-SW2(config-if-range)#exit
IDN-SW2(config)#interface f0/1
IDN-SW2(config-if)#switchport mode trunk
IDN-SW2(config-if)#exit
IDN-SW2(config)#interface f0/7
IDN-SW2(config-if)#switchport mode trunk
IDN-SW2(config-if)#exit
IDN-SW2(config)#interface f0/6
IDN-SW2(config-if)#switchport mode trunk
IDN-SW2(config-if)#exit
Kemudian kita lanjut konfigurasi di IDN-SW3
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW3
IDN-SW3(config)#vlan 30
IDN-SW3(config-vlan)#vlan 10
IDN-SW3(config-vlan)#vlan 20
IDN-SW3(config-vlan)#name Group-Tata-Usaha
IDN-SW3(config-vlan)#interface range f0/2-5
IDN-SW3(config-if-range)#switchport mode access
IDN-SW3(config-if-range)#switchport access vlan 30
IDN-SW3(config-if-range)#exit
IDN-SW3(config)#interface f0/1
IDN-SW3(config-if)#switchport mode trunk
IDN-SW3(config-if)#exit
Dan selanjutnya kita lakukan konfigurasi di bagian routernya agar semua koneksi PC antar VLAN yang berbeda dapat terhubung. Kita konfig di IDN-R4
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R4
IDN-R4(config)#interface f1/0
IDN-R4(config-if)#ip address 114.114.114.1 255.255.255.0
IDN-R4(config-if)#no shutdown
IDN-R4(config-if)#exit
IDN-R4(config)#interface f1/0.10
IDN-R4(config-subif)#encapsulation dot1q 10
IDN-R4(config-subif)#ip address 10.10.10.1 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#interface f1/0.20
IDN-R4(config-subif)#encapsulation dot1q 20
IDN-R4(config-subif)#ip address 20.20.20.1 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#
IDN-R4(config)#interface f1/0.30
IDN-R4(config-subif)#encapsulation dot1q 30
IDN-R4(config-subif)#ip address 30.30.30.1 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#ip route 124.124.124.0 255.255.255.0 34.34.34.3
IDN-R4(config)#ip route 40.40.40.0 255.255.255.0 34.34.34.3
IDN-R4(config)#ip route 50.50.50.0 255.255.255.0 34.34.34.3
IDN-R4(config)#router rip
IDN-R4(config-router)#version 2
IDN-R4(config-router)#network 10.10.10.0
IDN-R4(config-router)#network 20.20.20.0
IDN-R4(config-router)#network 30.30.30.0
IDN-R4(config-router)#network 34.34.34.0
IDN-R4(config-router)#network 114.114.114.0
IDN-R4(config-router)#exit
IDN-R4(config)#int f0/0
IDN-R4(config-if)#ip address 34.34.34.4 255.255.255.0
IDN-R4(config-if)#no shutdown
IDN-R4(config-if)#exit
Setelah selesai, maka kita test koneksi antar PC dengan VLAN 10,20,30Test Koneksi OK |
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW4
IDN-SW4(config)#vlan 40
IDN-SW4(config-vlan)#name DHCP40
IDN-SW4(config-vlan)#interface range f0/1-2
IDN-SW4(config-if-range)#switchport mode access
IDN-SW4(config-if-range)#switchport access vlan 40
IDN-SW4(config-if-range)#exit
IDN-SW4(config)#vlan 50
IDN-SW4(config-vlan)#name DHCP50
IDN-SW4(config-vlan)#interface range f0/3-5
IDN-SW4(config-if-range)#switchport mode access
IDN-SW4(config-if-range)#switchport access vlan 50
IDN-SW4(config-if-range)#exit
IDN-SW4(config)#ip routing
IDN-SW4(config)#interface vlan 40
IDN-SW4(config-if)#ip address 40.40.40.1 255.255.255.0
IDN-SW4(config-if)#exit
IDN-SW4(config)#interface vlan 50
IDN-SW4(config-if)#ip address 50.50.50.1 255.255.255.0
IDN-SW4(config-if)#exit
IDN-SW4(config)#ip dhcp pool VLAN40
IDN-SW4(dhcp-config)#network 40.40.40.0 255.255.255.0
IDN-SW4(dhcp-config)#default-router 40.40.40.1
IDN-SW4(dhcp-config)#dns-server 8.8.8.8
IDN-SW4(dhcp-config)#exit
IDN-SW4(config)#ip dhcp pool VLAN50
IDN-SW4(dhcp-config)#network 50.50.50.0 255.255.255.0
IDN-SW4(dhcp-config)#default-router 50.50.50.1
IDN-SW4(dhcp-config)#dns-server 8.8.8.8
IDN-SW4(dhcp-config)#exit
IDN-SW4(config)#ip route 12.12.12.0 255.255.255.0 124.124.124.2
IDN-SW4(config)#ip route 60.60.60.0 255.255.255.0 124.124.124.2
IDN-SW4(config)#ip route 70.70.70.0 255.255.255.0 124.124.124.3
IDN-SW4(config)#router eigrp 5
IDN-SW4(config-router)#network 40.40.40.0
IDN-SW4(config-router)#network 50.50.50.0
IDN-SW4(config-router)#network 124.124.124.0
IDN-SW4(config-router)#exit
IDN-SW4(config)#interface f0/6
IDN-SW4(config-if)#no switchport
IDN-SW4(config-if)#ip add 124.124.124.4 255.255.255.0
Pada IDN-SW4, di konfigurasikan sebagai DHCP Server yang artinya semua client akan mendapatkan IP address secara otomatis. Maka sekarang kita cek IP clientnya apakah sudah mendapatkan IP address atau belum, yaitu dengan cara masuk ke client seperti pada gambar berikutDHCP Request OK |
List IP DHCP |
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R1
IDN-R1(config)#router eigrp 5
IDN-R1(config-router)#network 70.70.70.0
IDN-R1(config-router)#network 60.60.60.0
IDN-R1(config-router)#network 12.12.12.0
IDN-R1(config-router)#exit
IDN-R1(config)#interface f0/0
IDN-R1(config-if)#ip address 12.12.12.1 255.255.255.0
IDN-R1(config-if)#no shutdown
IDN-R1(config-if)#exit
IDN-R1(config)#interface f7/0
IDN-R1(config-if)#ip address 60.60.60.1 255.255.255.0
IDN-R1(config-if)#no shutdown
IDN-R1(config-if)#exit
IDN-R1(config)#interface f1/0
IDN-R1(config-if)#ip address 70.70.70.1 255.255.255.0
IDN-R1(config-if)#no shutdown
IDN-R1(config-if)#exit
Kemudian kita lakukan konfigurasi di IDN-R2, untuk konfifigurasi NAT nya
IDN-R2>enable
IDN-R2#configure terminal
IDN-R2(config)#hostname IDN-R2
IDN-R2(config)#interface f0/0
IDN-R2(config-if)#ip address 124.124.124.1 255.255.255.0
IDN-R2(config-if)#no shutdown
IDN-R2(config-if)#exit
IDN-R2(config)#ip nat inside source static 10.10.10.2 203.254.126.226
IDN-R2(config)#ip nat inside source static 40.40.40.2 203.254.126.226
IDN-R2(config)#interface f0/0
IDN-R2(config-if)#ip nat inside
IDN-R2(config-if)#exit
IDN-R2(config)#interface f1/0
IDN-R2(config-if)#ip nat outside
IDN-R2(config-if)#exit
IDN-R2(config)#router eigrp 5
IDN-R2(config-router)#network 12.12.12.0
IDN-R2(config-router)#network 23.23.23.0
IDN-R2(config-router)#network 124.124.124.0
IDN-R2(config-router)#redistribute static
IDN-R2(config-router)#exit
IDN-R2(config-if)#ip route 10.10.10.0 255.255.255.0 34.34.34.4
IDN-R2(config)#ip route 20.20.20.0 255.255.255.0 34.34.34.4
IDN-R2(config)#ip route 30.30.30.0 255.255.255.0 34.34.34.4
IDN-R2(config)#ip route 50.50.50.0 255.255.255.0 124.124.124.4
IDN-R2(config)#ip route 40.40.40.0 255.255.255.0 124.124.124.4
IDN-R2(config)#exit
Setelah selesai, kita lakukan test apakah NAT sudah berhasil apa belum.Lakukan test ping antar IDN-SRV7 ke IDN-PC7Test NAT OK |
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R3
IDN-R3(config)#interface f0/0
IDN-R3(config-if)#ip address 23.23.23.3 255.255.255.0
IDN-R3(config-if)#no shutdown
IDN-R3(config-if)#exit
IDN-R3(config-if)#interface f1/0
IDN-R3(config-if)#ip address 34.34.34.3 255.255.255.0
IDN-R3(config-if)#no shutdown
IDN-R3(config-if)#exit
IDN-R3(config)#router eigrp 5
IDN-R3(config-router)#network 23.23.23.0
IDN-R3(config-router)#exit
IDN-R3(config-router)#router rip
IDN-R3(config-router)#version 2
IDN-R3(config-router)#network 34.34.34.0
IDN-R3(config-router)#exit
IDN-R3(config)#router eigrp 5
IDN-R3(config-router)#redistribute rip metric 1 1 1 1 1
IDN-R3(config-router)#exit
IDN-R3(config)#router rip
IDN-R3(config-router)#redistribute eigrp 5 metric 2
IDN-R3(config-router)#exit
Untuk memastikan koneksi antar routing protokol yang berbeda dengan melakukan redistribute berhasil atau tidak, kita dapat melakukan test koneksi antar jaringan yang beara di kiri dan jaringan yang berada di kananTest Koneksi OK |
Semoga Bermanfaat !
Tidak ada komentar:
Posting Komentar