Pada tutorial kali ini saya akan sharing tentang bagaimana cara membuat Vlan  pada Cisco.

pada simulasi ini saya memakai Packet Tracer v5.

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

berikut gambarannya :
vlan
Setting InterVlan pada Router
- untuk Vlan 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 Vlan 20
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 Vlan 30
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
Selanjutnya setting Switchnya,langkah-langkah nya sebagai berikut:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(vlan)#vlan 10 name Dosen
Switch(vlan)#vlan 20 name Mahasiswa
Switch(vlan)#vlan 30 name Karyawan
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
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 :
- 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 :
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

Control-C

0 comments:

Post a Comment

Copyright 2010 My Artikel
Lunax Free Premium Blogger™ template by Introblogger