Professional Documents
Culture Documents
Cara Membuat VLAN Simple Pada Cisco: March 29, 2009 Rachmat Febrianto
Cara Membuat VLAN Simple Pada Cisco: March 29, 2009 Rachmat Febrianto
berikut gambarannya :
1
2 Router>enable
3 Password:
4 Router#configure terminal
5 Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0.10
6 Router(config-subif)#encapsulation dot1Q 10
7 Router(config-subif)#ip address 192.168.10.254 255.255.255.0
8 Router(config-if)#exit
9 Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
1
0
1
2 Router>enable
3 Password:
4 Router#configure terminal
5 Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0.30
6 Router(config-subif)#encapsulation dot1Q 30
7 Router(config-subif)#ip address 192.168.30.254 255.255.255.0
8 Router(config-if)#exit
9 Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
1
0
1Switch#vlan database
2Switch(vlan)#vlan 10 name Dosen
3Switch(vlan)#vlan 20 name Mahasiswa
4Switch(vlan)#vlan 30 name Karyawan
1 Switch>enable
Switch#configure terminal
2
Enter configuration commands, one per line. End with CNTL/Z.
3 Switch(config)#interface fa0/1 -> Menuju router
4 Switch(config-if)#switchport mode trunk
5 Switch(config-if)#exit
6 Switch(config)#interface fa0/2 -> Menuju PC Dosen
Switch(config-if)#switchport access vlan 10
7 Switch(config-if)#exit
8 Switch(config)#interface fa0/3 -> Menuju PC Mahasiswa
9 Switch(config-if)#switchport access vlan 20
1 Switch(config-if)#exit
Switch(config)#interface fa0/4 -> Menuju PC Karyawan
0
1
1
1
2
Switch(config-if)#switchport access vlan 30
1 Switch(config-if)#exit
3
1
4
1
5
– verifikasi vlan
1 Switch#show vlan
2
VLAN Name Status Ports
3
---- -------------------------------- ---------
4 -------------------------------
5 1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8
6 Fa0/9, Fa0/10, Fa0/11,
7 Fa0/12
8 Fa0/13, Fa0/14, Fa0/15,
Fa0/16
9 Fa0/17, Fa0/18, Fa0/19,
1 Fa0/20
0 Fa0/21, Fa0/22, Fa0/23,
1 Fa0/24
1 10 dosen active Fa0/2
1 20 mahasiswa active Fa0/3
2 30 karyawan active Fa0/4
1
2 - PC 0 :
3 IP Address………………….: 192.168.10.1
Subnet Mask…………………: 255.255.255.0
4 Default Gateway……………..: 192.168.10.254
5
6 - PC 1 :
7 IP Address………………….: 192.168.20.1
8 Subnet Mask…………………: 255.255.255.0
9 Default Gateway……………..: 192.168.20.254
10
- PC 2 :
11IP Address………………….: 192.168.30.1
12Subnet Mask…………………: 255.255.255.0
13Default Gateway……………..: 192.168.30.254
14
– Test Ping ke router dan ke masing – masin pc :
1 PC>ipconfig
2
3 IP Address......................: 192.168.10.1
Subnet Mask.....................: 255.255.255.0
4 Default Gateway.................: 192.168.10.254
5
6 PC>ping 192.168.20.1
7
8 Pinging 192.168.20.1 with 32 bytes of data:
9
10Reply from 192.168.20.1: bytes=32 time=109ms TTL=127
11
Ping statistics for 192.168.20.1:
12 Packets: Sent = 2, Received = 1, Lost = 1 (50% loss),
13Approximate round trip times in milli-seconds:
14 Minimum = 109ms, Maximum = 109ms, Average = 109ms
15
16Control-C
17^C
PC>ping 192.168.30.1
18
19Pinging 192.168.30.1 with 32 bytes of data:
20
21Reply from 192.168.30.1: bytes=32 time=109ms TTL=127
22Reply from 192.168.30.1: bytes=32 time=125ms TTL=127
23
24Ping statistics for 192.168.30.1:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
25Approximate round trip times in milli-seconds:
26 Minimum = 109ms, Maximum = 125ms, Average = 117ms
27
28Control-C
29^C
30PC>ping 192.168.10.254
31
Pinging 192.168.10.254 with 32 bytes of data:
32
33Reply from 192.168.10.254: bytes=32 time=63ms TTL=255
34Reply from 192.168.10.254: bytes=32 time=62ms TTL=255
35
36Ping statistics for 192.168.10.254:
37 Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
38 Approximate round trip times in milli-seconds:
Minimum = 62ms, Maximum = 63ms, Average = 62ms
39
40Control-C
41
42
43
44
45
46