Selanjutnya kita akan melakukan konfigurasi pada router
Klik PC kemudian desktop, setelah itu klik terminal lalu OK
Setelah masuk ke terminal yang pertama kita konfigurasi dhcp terlebih dahulu
1. Konfigurasi DHCP dan menshutdown kabel yang terhubung ke switch
Router>en
Router#conf t
Router(config)#ip dhcp pool vlan10
Router(dhcp-config)#default-router 10.10.10.1
Router(dhcp-config)#network 10.10.10.0 255.255.255.0
Router(dhcp-config)#ip dhcp pool vlan20
Router(dhcp-config)#default-router 20.20.20.1
Router(dhcp-config)#network 20.20.20.0 255.255.255.0
Router(config)#ip dhcp pool vlan30
Router(dhcp-config)#default-router 30.30.30.1
Router(dhcp-config)#network 30.30.30.0 255.255.255.0
Router(dhcp-config)#ex
Router(config)#int fa0/1 (Lihat kabel dari router ke switch, sesuaikan dengan topologi anda)
Router(config-if)#no sh
2. Konfigurasi encapsulation
Router(config-if)#int fa0/1.10
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#ip add 10.10.10.1 255.255.255.0
Router(config-subif)#ex
Router(config)#int fa0/1.20
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip add 20.20.20.1 255.255.255.0
Router(config-subif)#ex
Router(config)#int fa0/1.30
Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip add 30.30.30.1 255.255.255.0
Router(config-subif)#ex
3. Konfigurasi Telnet dan SSH
Router(config)#hostname ayu
ayu(config)#ip domain-name ayu.com
ayu(config)#crypto key generate rsa
The name for the keys will be: ayu.ayu.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 512 (diisi sesuai yang diminta)
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]
ayu(config)#line vty 0 4
*Mar 1 0:51:30.323: RSA key size needs to be at least 768 bits for ssh version 2
*Mar 1 0:51:30.324: %SSH-5-ENABLED: SSH 1.5 has been enabled
ayu(config-line)#login local
ayu(config-line)#transport input all
ayu(config-line)#exit
ayu(config)#username ayu password 123
ayu(config)#enable secret ayu
4. Konfigurasi NAT/PATH
ayu(config)#ip nat inside source list 1 interface fa0/0 overload
ayu(config)#int fa0/0
ayu(config-if)#no sh
ayu(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
ayu(config-if)#ip add 8.8.8.1 255.255.255.240
Lalu kita beri alamat ip pada server
Selanjutnya kita akan melakukan konfigurasi pada switch
5. Konfigurasi Vlan dan trunk pada switch
Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name VLAN10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name VLAN20
Switch(config-vlan)#vlan 30
Switch(config-vlan)#name VLAN30
Switch(config-vlan)#
Switch(config-vlan)#int range fa0/2 - 8
Switch(config-if-range)#sw mod acc
Switch(config-if-range)#sw acc vlan 10
Switch(config-if-range)#int range fa0/9 - 16
Switch(config-if-range)#sw mod acc
Switch(config-if-range)#sw acc vlan 20
Switch(config-if-range)#int range fa0/17 - 24
Switch(config-if-range)#sw mod acc
Switch(config-if-range)#sw acc vlan 30
Switch(config-if-range)#
Switch(config-if-range)#ex
Switch(config)#int fa0/1 (Lihat pada kabel yang terhubung dari switch ke router)
Switch(config-if)#switchport mode trunk
Switch(config-if)#
%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
Switch(config-if)#
Beri alamat ip pada setiap PC dengan menggunakan DHCP
Setelah semua konfigurasi selesai kita coba melakukan PING ke semua Vlan
Disini mari kita coba PING dari Vlan 20 ke Vlan 30
Berhasil!!
Kemudian kita coba buka SSH dan Telnet
1. SSH
2. Telnet