Popular Post

Popular Posts

Selasa, 24 Mei 2016

VLAN disebut juga virtual LAN, pada tutorial kali ini akan dijelaskan bagaiman membuat VLAN pada CISCO. disini saya memakai simulasi CISCO yaitu Packet Tracer V5, sedangkan definisi VLAN sendiri anda bisa melihat disini

kita akan membuat 3 valan yaitu :
 
1. vlan 10 dosen
2. vlan 20 mahasiswa
3. vlan 30 karyawan

berikut gambarannya :





definisikan ip address gateway di router dengan membuat interface virtual :
– untuk gateway vlan 10
1
2
3
4
5
6
7
8
9
10
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.10.254 255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
– untuk gateway vlan 20


1
2
3
4
5  
6
7
8
9
10
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.20.254 255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console


– untuk gateway vlan 30
  

1
2
3
4
5
6
7
8
9
10
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address 192.168.30.254 255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console


Lalu kita setting switchnya, langkah-langkahnya sebagai berikut :
– Definisikan Vlan :

1
2
3
4
Switch#vlan database
Switch(vlan)#vlan 10 name Dosen
Switch(vlan)#vlan 20 name Mahasiswa
Switch(vlan)#vlan 30 name Karyawan

– Delegasikan port untuk mengakses tiap-tiap Vlan yang sudah didefinisikan :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fa0/1 -> Menuju router
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#interface fa0/2 -> Menuju PC Dosen
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fa0/3 -> Menuju PC Mahasiswa
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface fa0/4 -> Menuju PC Karyawan
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit

– verifikasi vlan

1
2
3
4
5
6
7
8
9
10
11
12
Switch#show vlan

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
10   dosen                            active    Fa0/2
20   mahasiswa                        active    Fa0/3
30   karyawan                         active    Fa0/4

Setting IP masing – masing PC :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
- PC 0 :
IP Address………………….: 192.168.10.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.10.254

- PC 1 :
IP Address………………….: 192.168.20.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.20.254

- PC 2 :
IP Address………………….: 192.168.30.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.30.254

– Test Ping ke router dan ke masing – masin pc :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

     
PC>ipconfig

IP Address......................: 192.168.10.1
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.10.254

PC>ping 192.168.20.1

Pinging 192.168.20.1 with 32 bytes of data:

Reply from 192.168.20.1: bytes=32 time=109ms TTL=127

Ping statistics for 192.168.20.1:
    Packets: Sent = 2, Received = 1, Lost = 1 (50% loss),
Approximate round trip times in milli-seconds:
    Minimum = 109ms, Maximum = 109ms, Average = 109ms

Control-C
^C
PC>ping 192.168.30.1

Pinging 192.168.30.1 with 32 bytes of data:

Reply from 192.168.30.1: bytes=32 time=109ms TTL=127
Reply from 192.168.30.1: bytes=32 time=125ms TTL=127

Ping statistics for 192.168.30.1:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 109ms, Maximum = 125ms, Average = 117ms

Control-C
^C
PC>ping 192.168.10.254

Pinging 192.168.10.254 with 32 bytes of data:

Reply from 192.168.10.254: bytes=32 time=63ms TTL=255
Reply from 192.168.10.254: bytes=32 time=62ms TTL=255

Ping statistics for 192.168.10.254:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 62ms, Maximum = 63ms, Average = 62ms

 


Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © Computers Chip - Devil Survivor 2 - Powered by Blogger - Designed by Johanes Djogan -