Kali ini, topologi yang akan kita konfigurasi adalah seperti berikut :
Sebelum memulai konfigurasi ada baiknya kita membagi network seperti berikut :
Untuk network atas, tabel yang digunakan sbb:
First Host | Last Host | Broadcast | |
192.168.1.0/27 | 192.168.1.1/27 | 192.168.1.30/27 | 192.168.1.31/27 |
192.168.1.32/27 | 192.168.1.33/27 | 192.168.1.62/27 | 192.168.1.63/27 |
192.168.1.64/27 | 192.168.1.65/27 | 192.168.1.94/27 | 192.168.1.95/27 |
192.168.1.96/27 | 192.168.1.97/27 | 192.168.1.126/27 | 192.168.1.127/27 |
192.168.1.128/27 | 192.168.1.129/27 | 192.168.1.158/27 | 192.168.1.159/27 |
192.168.1.160/27 | 192.168.1.161/27 | 192.168.1.190/27 | 192.168.1.191/27 |
192.168.1.192/27 | 192.168.1.193/27 | 192.168.1.222/27 | 192.168.1.223/27 |
Untuk network bawah, tabel yang digunakan sbb:
First Host | Last Host | Broadcast | |
192.168.1.0/26 | 192.168.1.1/26 | 192.168.1.62/26 | 192.168.1.63/26 |
192.168.1.64/26 | 192.168.1.65/26 | 192.168.1.126/26 | 192.168.1.127/26 |
192.168.1.128/26 | 192.168.1.129/26 | 192.168.1.190/26 | 192.168.1.191/26 |
192.168.1.192/26 | 192.168.1.193/26 | 192.168.1.254/26 | 192.168.1.255/26 |
Setelah itu, mari kita mulai untuk mengkonfigurasi.
Pertama-tama, kita konfigurasi pada SServer :
Pemberian nama pad SSerever:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SServer
Men-set SServer sebagain VTP MODE SERVER:
SServer(config)#vtp mode server
Device mode already VTP SERVER.
SServer(config)#vtp domain unsri
Changing VTP domain name from NULL to unsri
SServer(config)#vtp password fasilkom
Setting device VLAN database password to fasilkom
Pembuat VLAN pada SServer:
SServer(config)#vlan 2
SServer(config-vlan)#name TKJ
SServer(config-vlan)#vlan 3
SServer(config-vlan)#name TI
SServer(config-vlan)#vlan 4
SServer(config-vlan)#name SI
SServer(config-vlan)#vlan 5
SServer(config-vlan)#name TK
SServer(config-vlan)#
Pembagian VLAN berdasarkan interface pada SServer:
SServer(config-if)#interface fa0/3
SServer(config-if)#switchport mode access
SServer(config-if)#switchport access vlan 3
SServer(config-if)#int fa0/4
SServer(config-if)#switchport mode access
SServer(config-if)#switchport access vlan 4
SServer(config-if)#int fa0/5
SServer(config-if)#switchport mode access
SServer(config-if)#switchport access vlan 5
Men-set interface fa0/1 dan 0/2 sebagai mode trunk:
SServer(config-if)#int fa0/2
SServer(config-if)#switchport mode trunk
SServer(config-if)#switchport trunk native vlan 1
SServer(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
SServer#
SServer#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SServer(config)#interface fastEthernet 0/1
SServer(config-if)#switchport mode trunk
SServer(config-if)#switchport trunk native vlan 1
SServer(config-if)#
Pada S1Client1, set sebagai anggota dari VLAN 2 :
Pemberian nama pada S1Client1:
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1Client1
Men-set S1Client1 sebagai VTP MODE CLIENT:
S1Client1(config)#vtp mode client
Setting device to VTP CLIENT mode.
S1Client1(config)#vtp domain unsri
Domain name already set to unsri.
S1Client1(config)#vtp password fasilkom
Setting device VLAN database password to fasilkom
Membuat interface fa0/1 sebagai mode trunk dan men-set interface fa0/2 dan fa0/3 sebagi anggota VLAN 2:
S1Client1(config)#interface fastEthernet 0/1
S1Client1(config-if)#switchport mode trunk
S1Client1(config-if)#switchport trunk native vlan 1
S1Client1(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
S1Client1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
S1Client1(config)#int range fastEthernet 0/2-03
S1Client1(config-if-range)#switchport access vlan 2
S1Client1(config-if-range)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Sekarang, melakukan konfigurasi pada R1Client :
Pemberian nama pada R1Client:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1Client
Mengaktifkan interface fa0/0 pada R1Client dan memberi IP:
R1Client(config)#interface fa0/0
R1Client(config-if)#ip address 192.168.1.66 255.255.255.224
R1Client(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1Client(config-if)#exit
Mengaktifkan interface fa0/1 pada R1Client dan memberi IP:
R1Client(config)#interface fa0/1
R1Client(config-if)#ip address 192.168.2.1 255.255.255.192
R1Client(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R1Client(config-if)#exit
Memberikan IP pada interface loopback 0:
R1Client(config)#interface loopback 0
%LINK-5-CHANGED: Interface Loopback0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R1Client(config-if)#ip address 192.168.1.193 255.255.255.255
R1Client(config-if)#exit
Konfigurasi router OSPF pada R1Client :
R1Client(config)#router ospf 1
R1Client(config-router)#network 192.168.1.64 0.0.0.31 area 0
R1Client(config-router)#network 192.168.2.0 0.0.0.63 area 0
R1Client(config-router)#network 192.168.1.193 0.0.0.31 area 0
R1Client(config-router)#network 192.168.2.64 0.0.0.63 area 0
R1Client(config-router)#network 192.168.2.128 0.0.0.63 area 0
R1Client(config-router)#router-id 192.168.1.193
Reload or use "clear ip ospf process" command, for this to take effect
R1Client(config-router)#log-adjacency-changes
R1Client(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R1Client#
Memberi IP pada Encapsulation di router R1Client :
R1Client>
R1Client>en
R1Client#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1Client(config)#interface fa 0/1.2
R1Client(config-subif)#encapsulation dot1Q 2
R1Client(config-subif)#ip address 192.168.2.65 255.255.255.192
R1Client(config-subif)#exit
R1Client(config)#interface fa 0/1.3
R1Client(config-subif)#encapsulation dot1Q 3
R1Client(config-subif)#ip address 192.168.2.129 255.255.255.192
R1Client(config-subif)#^Z
Menambahkan konfigurasi IP DHCP Pool 1 dan 2 untuk R1Client :
R1Client(config)#ip dhcp pool 1
R1Client(dhcp-config)#default-router 192.168.2.65
R1Client(dhcp-config)#network 192.168.2.64 255.255.255.192
R1Client(config)#ip dhcp pool 2
R1Client(dhcp-config)#default-router 192.168.2.129
R1Client(dhcp-config)#network 192.168.2.128 255.255.255.192
R1Client(dhcp-config)#^Z
Setelah itu, kita konfigurasi S1Server1 yang berada di bawahnya :
Pemberian nama pada S1Client1:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1Server1
Membuat S1Client1 sebagai server :
S1Server1(config)#vtp mode server
Device mode already VTP SERVER.
S1Server1(config)#vtp domain unsri
Changing VTP domain name from NULL to unsri
S1Server1(config)#vtp password fasilkom
Setting device VLAN database password to fasilkom
Membuat VLAN pada S1Client1 :
S1Server1(config)#vlan 2
S1Server1(config-vlan)#name TI1
S1Server1(config-vlan)#vlan 3
S1Server1(config-vlan)#name TIHotspot
S1Server1(config-vlan)#exit
Men-set interface fa01-3 sebagai mode trunk di S1Client1 :
S1Server1(config)#interface range fa0/1-3
S1Server1(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
S1Server(config-if-range)#switchport trunk native vlan 1
S1Server1(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Lalu, konfigurasi S2Client1 dan S2Clien2 :
Lakukan konfigurasi VLAN seperti biasa, dan bagi VLAN-nya.
Sebagai latihan, lakukan konfigurasi yang hampir sama dengan R1Client untuk R2Client dan R3Client dengan catatan, bedakan network-nya.
Setelah konfigurasi ketiga router tersebut selesai, lakukan konfiurasi pada RNat :
Memberi nama pada R1Nat :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RNat
Mengaktifkan dan memberi IP di interface fa0/1 pada R1Nat :
RNat(config)#interface fa0/0
RNat(config-if)#ip address 192.168.1.1 255.255.255.224
RNat(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state
to up
RNat(config-if)#exit
Memberi IP pada Encapsulation di router pada R1Nat :
RNat(config)#interface fa0/0.2
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed
state to upRNat(config-subif)#
RNat(config-subif)#encapsulation dot1Q 2
RNat(config-subif)#ip address 192.168.1.33 255.255.255.224
RNat(config-subif)#exit
RNat(config)#interface fa0/0.3
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
RNat(config-subif)#encapsulation dot1Q 3
RNat(config-subif)#ip address 192.168.1.65 255.255.255.224
RNat(config-subif)#exit
RNat(config)#interface fa0/0.4
%LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to up
RNat(config-subif)#encapsulation dot1Q 4
RNat(config-subif)#ip address 192.168.1.97 255.255.255.224
RNat(config-subif)#exit
RNat(config)#interface fa0/0.5
%LINK-5-CHANGED: Interface FastEthernet0/0.5, changed state to up
RNat(config-subif)#encapsulation dot1Q 5
RNat(config-subif)#ip address 192.168.1.129 255.255.255.224
RNat(config-subif)#exit
Memberi IP di Interface Loopback pada R1Nat :
RNat#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RNat(config)#interface loopback 0
%LINK-5-CHANGED: Interface Loopback0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
RNat(config-if)#ip address 192.168.1.196 255.255.255.255
Konfigurasi router OSPF pada RNat :
RNat(config-if)#router ospf 1
RNat(config-router)#network 192.168.1.32 0.0.0.31 area 0
RNat(config-router)#network 192.168.1.64 0.0.0.31 area 0
RNat(config-router)#network 192.168.1.96 0.0.0.31 area 0
RNat(config-router)#network 192.168.1.128 0.0.0.31 area 0
Konfigurasi NAT pada RNat :
RNat>
RNat>en
RNat#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
RNat(config)#ip route 0.0.0.0 0.0.0.0 203.217.134.1
RNat(config)#interface fa0/1
RNat(config-if)#ip nat outside
RNat(config-if)#exit
RNat(config)#interface fa0/0.1
%LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to upRNat(config-subif)#
RNat(config-subif)#ip nat inside
RNat(config-subif)#interface fa0/0.2
RNat(config-subif)#ip nat inside
RNat(config-subif)#interface fa0/0.3
RNat(config-subif)#ip nat inside
RNat(config-subif)#interface fa0/0.4
RNat(config-subif)#ip nat inside
RNat(config-subif)#interface fa0/0.5
RNat(config-subif)#ip nat inside
RNat(config-subif)#ip nat inside source list 1 interface fastEthernet 0/1
RNat(config)#ip nat inside source list 1 interface fastEthernet 0/1
RNat(config)#access-list 1 permit any
RNat(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
RNat#
Selanjutnya, kita lakukan konfigurasi pada Privider:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname provider
provider(config)#interface fa0/0
provider(config-if)#ip address 192.168.0.1 255.255.255.252
provider(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
provider(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
provider#
Dan terakhir, lakukan konfigurasi pada Backbone dan disini perlu dilakukan default routing:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname backbone
backbone(config)#interface fa0/0
backbone(config-if)#ip address 192.168.0.2 255.255.255.252
backbone(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
backbone(config-if)#exit
backbone(config)#interface fa0/1
backbone(config-if)#ip address 203.217.134.1 255.255.255.240
backbone(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
backbone(config-if)#exit
backbone(config)#ip route 0.0.0.0 0.0.0.0 192.168.0.1
backbone(config)#^Z
Berikutnya, tinggal beri IP dan Sesuaikan Getway pada server dan PC!
0 comments:
Posting Komentar