Topologi |
√ Konfigurasi antar router dengan menggunakan routing dynamic eigrp dan statik
√ Mempelajari VLAN antar switch
√ Menghubungkan semua client yang satu network atau pun anter network yang berbeda
Materi Lab :
√ Static Routing
√ Virtual Interface
√ Routing Dynamic EIGRP
√ Spanning-tree portfast
√ VLAN
√ Inter VLAN Routing
√ DHCP VLAN
√ Wireless
√ DHCP Server
√ DHCP VLAN
√ DNS Server
Konfigurasi Lab :
Seperti biasa untuk konfigurasi pertama yang kita lakukan adalah di device layer paling bawah dahulu yaitu kita konfigurasi di switch terlebih dahulu di IDN-SW1
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW1
IDN-SW1(config)#spanning-tree portfast default
IDN-SW1(config)#vlan 10
IDN-SW1(config-vlan)#name vlan10
IDN-SW1(config-vlan)#exit
IDN-SW1(config)#vlan 20
IDN-SW1(config-vlan)#name vlan20
IDN-SW1(config-vlan)#exit
IDN-SW1(config)#interface fa0/2
IDN-SW1(config-if)#switchport mode access
IDN-SW1(config-if)#switchport access vlan 10
IDN-SW1(config-if)#exit
IDN-SW1(config)#interface fa0/3
IDN-SW1(config-if)#switchport mode access
IDN-SW1(config-if)#switchport access vlan 20
IDN-SW1(config-if)#exit
IDN-SW1(config)#interface fa0/1
IDN-SW1(config-if)#switchport mode trunk
IDN-SW1(config-if)#exit
Untuk tahap selanjutnya kita konfigurasi di IDN-SW2, sama seperti hal nya di IDN-SW1 terdapat mode access dan mode trunk (Mode access untuk ke end device, Mode trunk untuk ke arah router)
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-SW2
IDN-SW2(config)#spanning-tree portfast default
IDN-SW2(config)#vlan 30
IDN-SW2(config-vlan)#name vlan30
IDN-SW2(config-vlan)#exit
IDN-SW2(config)#interface range f0/2-3
IDN-SW2(config-if-range)#switchport mode access
IDN-SW2(config-if-range)#switchport access vlan 30
IDN-SW2(config-if-range)#exit
IDN-SW2(config)#interface fa0/1
IDN-SW2(config-if)#switchport mode trunk
IDN-SW2(config-if)#exit
Untuk verifikasi vlan dan interface trunk di switch, bisa menggunakan command berikut:Verifikasi VLAN |
Verifikasi Interface Trunk |
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R3
IDN-R3(config)#interface f0/0
IDN-R3(config-if)#ip address 123.123.123.3 255.255.255.0
IDN-R3(config-if)#no shutdown
IDN-R3(config-if)#exit
IDN-R3(config)#interface f0/1
IDN-R3(config-if)#ip address 113.113.113.3 255.255.255.0
IDN-R3(config-if)#no shutdown
IDN-R3(config-if)#exit
IDN-R3(config)#interface se0/1/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
Pastikan semua interface sudah up dan sudah teradvertise ip address nyaVerifikasi Interface |
IDN-R3(config)#ip dhcp pool client
IDN-R3(dhcp-config)#network 113.113.113.0 255.255.255.0
IDN-R3(dhcp-config)#default-router 113.113.113.3
IDN-R3(dhcp-config)#dns-server 111.111.111.2
IDN-R3(dhcp-config)#exit
Kemudian kita konfigurasi routing dynamic eigrp di IDN-R3, ini berfungsi untuk koneksi antar router
IDN-R3(config)#router eigrp 1
IDN-R3(config-router)#no auto-summary
IDN-R3(config-router)#network 23.23.23.0
IDN-R3(config-router)#exit
Lalu kita konfigurasi static route nya juga di IDN-R3, ini berfungsi untuk koneksi ke end device
IDN-R3(config)#ip route 111.111.111.0 255.255.255.0 23.23.23.2
IDN-R3(config)#ip route 10.10.10.0 255.255.255.0 23.23.23.2
IDN-R3(config)#ip route 20.20.20.0 255.255.255.0 23.23.23.2
IDN-R3(config)#ip route 30.30.30.0 255.255.255.0 23.23.23.2
IDN-R3(config)#ip route 40.40.40.0 255.255.255.0 23.23.23.2
IDN-R3(config)#exit
Verifikasi routing table dapat dilakukan dengan menggunakan command berikut:Verifikasi Routing table |
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R1
IDN-R1(config)#interface f0/0
IDN-R1(config-if)#ip address 111.111.111.1 255.255.255.0
IDN-R1(config-if)#no shutdown
IDN-R1(config-if)#exit
IDN-R1(config)#interface f0/1
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
Verifikasi apakah interfac sudah up dan sudah di setting ip address nya:Verifikasi Interface |
IDN-R1(config)#router eigrp 1
IDN-R1(config-router)#no auto-summary
IDN-R1(config-router)#network 12.12.12.0
IDN-R1(config-router)#exit
Kemudian konfigurasi statik routing nya
IDN-R1(config)#ip route 123.123.123.0 255.255.255.0 12.12.12.2
IDN-R1(config)#ip route 113.113.113.0 255.255.255.0 12.12.12.2
IDN-R1(config)#ip route 10.10.10.0 255.255.255.0 12.12.12.2
IDN-R1(config)#ip route 20.20.20.0 255.255.255.0 12.12.12.2
IDN-R1(config)#ip route 30.30.30.0 255.255.255.0 12.12.12.2
IDN-R1(config)#ip route 40.40.40.0 255.255.255.0 12.12.12.2
IDN-R1(config)#exit
Setelah di konfigurasi roting protokol nya lakukan lah verifikasi seperti berikut, pastikan routing protokol yang di setting sudah teradvertise di IDN-R1Verifikasi Routing Table |
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R2
IDN-R2(config)#interface f0/0
IDN-R2(config-if)#ip address 12.12.12.2 255.255.255.0
IDN-R2(config-if)#no shutdown
IDN-R2(config-if)#exit
IDN-R2(config)#interface f0/1
IDN-R2(config-if)#ip address 21.21.21.2 255.255.255.0
IDN-R2(config-if)#no shutdown
IDN-R2(config-if)#exit
IDN-R2(config)#interface se0/0/0
IDN-R2(config-if)#ip address 24.24.24.2 255.255.255.0
IDN-R2(config-if)#no shutdown
IDN-R2(config-if)#exit
IDN-R2(config)#interface se0/1/0
IDN-R2(config-if)#ip address 23.23.23.2 255.255.255.0
IDN-R2(config-if)#no shutdown
IDN-R2(config-if)#exit
Untuk verifikasi nya sama hal nya seperti yang telah dilakukan sebelumnyaVerifikasi Interface |
IDN-R2(config)#router eigrp 1
IDN-R2(config-router)#no auto-summary
IDN-R2(config-router)#network 12.12.12.0
IDN-R2(config-router)#network 23.23.23.0
IDN-R2(config-router)#network 24.24.24.0
IDN-R2(config-router)#network 21.21.21.0
IDN-R2(config-router)#exit
IDN-R2(config)#ip route 111.111.111.0 255.255.255.0 12.12.12.1
IDN-R2(config)#ip route 123.123.123.0 255.255.255.0 23.23.23.3
IDN-R2(config)#ip route 113.113.113.0 255.255.255.0 23.23.23.3
IDN-R2(config)#ip route 10.10.10.0 255.255.255.0 24.24.24.4
IDN-R2(config)#ip route 20.20.20.0 255.255.255.0 24.24.24.4
IDN-R2(config)#ip route 30.30.30.0 255.255.255.0 24.24.24.4
IDN-R2(config)#ip route 40.40.40.0 255.255.255.0 21.21.21.1
IDN-R2(config)#exit
Verifikasi routing table dapat dilakukan command sebagai berikut:Verifikasi Routing Table |
Tahap selanjutnya, kita konfigurasi router IDN-R4:
Router>enable
Router#configure terminal
Router(config)#hostname IDN-R4
IDN-R4(config)#interface f0/0
IDN-R4(config-if)#no shutdown
IDN-R4(config-if)#exit
IDN-R4(config)#interface f0/0.10
IDN-R4(config-subif)#encapsulation dot1q 10
IDN-R4(config-subif)#ip add 10.10.10.4 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#interface f0/0.20
IDN-R4(config-subif)#encapsulation dot1q 20
IDN-R4(config-subif)#ip add 20.20.20.4 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#interface f0/1
IDN-R4(config-if)#no shutdown
IDN-R4(config-if)#exit
IDN-R4(config)#interface f0/1.30
IDN-R4(config-subif)#encapsulation dot1q 30
IDN-R4(config-subif)#ip add 30.30.30.4 255.255.255.0
IDN-R4(config-subif)#exit
IDN-R4(config)#interface se0/1/0
IDN-R4(config-if)#ip address 24.24.24.4 255.255.255.0
IDN-R4(config-if)#no shutdown
IDN-R4(config-if)#exit
Kalau kita lihat ada command IDN-R4(config)#interface f0/0.10 ini berfungsi sebagai sub interface. Jadi satu interface di router dapat di configure beberapa Vlan didalam nya. Verifikasi tiap interface dapat di lihat pada gambar di bawah:Verifikasi Interface |
IDN-R4(config)#router eigrp 1
IDN-R4(config-router)#no auto-summary
IDN-R4(config-router)#network 24.24.24.0
IDN-R4(config-router)#exit
IDN-R4(config)#ip route 111.111.111.0 255.255.255.0 24.24.24.2
IDN-R4(config)#ip route 123.123.123.0 255.255.255.0 24.24.24.2
IDN-R4(config)#ip route 113.113.113.0 255.255.255.0 24.24.24.2
IDN-R4(config)#ip route 40.40.40.0 255.255.255.0 24.24.24.2
IDN-R4(config)#exit
Seperti biasa kita lakukan verifikasi seperti berikutVerifikasi routing table |
Setting masing-masing interface dan vlan nya, serta menjadikan fungsi di interface F0/1 sama seperti fungsi di router dingan menggunakan command IDN-MLS1(config-if)#no switchport atau lebih lengkapnya seperti di bawah
Switch>enable
Switch#configure terminal
Switch(config)#hostname IDN-MLS1
IDN-MLS1(config)#interface f0/1
IDN-MLS1(config-if)#no switchport
IDN-MLS1(config-if)#ip address 21.21.21.1 255.255.255.0
IDN-MLS1(config-if)#no shutdown
IDN-MLS1(config-if)#exit
IDN-MLS1(config)#vlan 40
IDN-MLS1(config-vlan)#name vlan40
IDN-MLS1(config-vlan)#exit
IDN-MLS1(config)#interface vlan 40
IDN-MLS1(config-if)#ip address 40.40.40.1 255.255.255.0
IDN-MLS1(config-if)#exit
IDN-MLS1(config)#interface range f0/2-3
IDN-MLS1(config-if-range)#switchport mode access
IDN-MLS1(config-if-range)#switchport access vlan 40
IDN-MLS1(config-if-range)#exit
Lalu kita konfigurasi DHCP pool, yang berfungsi agar client mendapat kan ip address secara otomatis dari IDN-MLS1
IDN-MLS1(config)#ip dhcp pool vlan40
IDN-MLS1(dhcp-config)#network 40.40.40.0 255.255.255.0
IDN-MLS1(dhcp-config)#default-router 40.40.40.1
IDN-MLS1(dhcp-config)#dns-server 111.111.111.2
IDN-MLS1(dhcp-config)#exit
Kemudian lakukan command seperti berikut, berfungsi agar fungsi switch dapat berfungsi sebagai router
IDN-MLS1(config)#ip routing
Lalu, kita konfigurasi routing protokol nya
IDN-MLS1(config)#router eigrp 1
IDN-MLS1(config-router)#no auto-summary
IDN-MLS1(config-router)#network 21.21.21.0
IDN-MLS1(config-router)#exit
IDN-MLS1(config)#ip route 111.111.111.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#ip route 123.123.123.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#ip route 113.113.113.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#ip route 10.10.10.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#ip route 20.20.20.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#ip route 30.30.30.0 255.255.255.0 21.21.21.2
IDN-MLS1(config)#exit
Untuk verifikasi routing table seperti biasa menggunakan command IDN-MLS1#show ip routeVerifikasi Routing Table |
Jika sudah di setting seperti gambar diatas, maka semua client yang terhubung dapat mengakses web http://idn.com
Oke, sekarang kita ke tahap testing. Lakukan test ping antar client dan lakukan test browsing di setiap client
Connection OK |
Test Browsing OK |
Semoga bermanfaat !
Tidak ada komentar:
Posting Komentar