Setting VLAN di Packet Tracer
Pertama kita buat topologinya selanjutnya kita setting switchnya
scrip untuk setting vlan di paket tracer
1. setting switch 1
Thu Nov 16 14:28:56 2017 Switch1 Switch>en
Thu Nov 16 14:29:00 2017 Switch1 Switch#conf t
Thu Nov 16 14:29:15 2017 Switch1 Switch(config)#vlan 30
Thu Nov 16 14:29:23 2017 Switch1 Switch(config-vlan)#name afid
Thu Nov 16 14:29:31 2017 Switch1 Switch(config-vlan)#vlan 40
Thu Nov 16 14:29:38 2017 Switch1 Switch(config-vlan)#name setyawan
Thu Nov 16 14:29:42 2017 Switch1 Switch(config-vlan)#exit
Thu Nov 16 14:29:57 2017 Switch1 Switch(config)#int fa 0/5
Thu Nov 16 14:30:04 2017 Switch1 Switch(config-if)#switchport mode access
Thu Nov 16 14:30:17 2017 Switch1 Switch(config-if)#switchport access vlan 30
Thu Nov 16 14:30:24 2017 Switch1 Switch(config-if)#int fa 0/6
Thu Nov 16 14:30:30 2017 Switch1 Switch(config-if)#switchport mode access
Thu Nov 16 14:30:38 2017 Switch1 Switch(config-if)#switchport access vlan 30
Thu Nov 16 14:30:52 2017 Switch1 Switch(config-if)#exit
Thu Nov 16 14:31:12 2017 Switch1 Switch(config)#int fa 0/3
Thu Nov 16 14:31:17 2017 Switch1 Switch(config-if)#switchport mode access
Thu Nov 16 14:31:25 2017 Switch1 Switch(config-if)#switchport access vlan 40
Thu Nov 16 14:31:33 2017 Switch1 Switch(config-if)#int fa 0/4
Thu Nov 16 14:31:48 2017 Switch1 Switch(config-if)#switchport mode access
Thu Nov 16 14:31:55 2017 Switch1 Switch(config-if)#switchport access vlan 40
2. setting switch 2
Thu Nov 16 14:23:57 2017 Switch2 Switch>en
Thu Nov 16 14:24:02 2017 Switch2 Switch#conf t
Thu Nov 16 14:24:11 2017 Switch2 Switch(config)#vlan 30
Thu Nov 16 14:24:16 2017 Switch2 Switch(config-vlan)#name afid
Thu Nov 16 14:24:23 2017 Switch2 Switch(config-vlan)#exit
Thu Nov 16 14:24:32 2017 Switch2 Switch(config)#vlan 40
Thu Nov 16 14:24:44 2017 Switch2 Switch(config-vlan)#name setyawan
Thu Nov 16 14:24:47 2017 Switch2 Switch(config-vlan)#exit
Thu Nov 16 14:25:16 2017 Switch2 Switch(config)#int fa 0/2
Thu Nov 16 14:25:50 2017 Switch2 Switch(config-if)#switchport mode access
Thu Nov 16 14:26:01 2017 Switch2 Switch(config-if)#switchport access vlan 30
Thu Nov 16 14:26:10 2017 Switch2 Switch(config-if)#exit
Thu Nov 16 14:26:23 2017 Switch2 Switch(config)#int fa 0/4
Thu Nov 16 14:26:37 2017 Switch2 Switch(config-if)#switchport mode access
Thu Nov 16 14:26:53 2017 Switch2 Switch(config-if)#switchport access vlan 30
Thu Nov 16 14:26:57 2017 Switch2 Switch(config-if)#exit
Thu Nov 16 14:27:21 2017 Switch2 Switch(config)#int fa 0/3
Thu Nov 16 14:27:39 2017 Switch2 Switch(config-if)#switchport mode access
Thu Nov 16 14:28:06 2017 Switch2 Switch(config-if)#switchport access vlan 40
Thu Nov 16 14:28:10 2017 Switch2 Switch(config-if)#exit
Thu Nov 16 14:28:18 2017 Switch2 Switch(config)#int fa 0/5
Thu Nov 16 14:28:28 2017 Switch2 Switch(config-if)#switchport mode access
Thu Nov 16 14:28:40 2017 Switch2 Switch(config-if)#switchport access vlan 40
3. setting Routernya
Thu Nov 16 14:32:15 2017 Router0 Router>en
Thu Nov 16 14:32:19 2017 Router0 Router#conf t
Thu Nov 16 14:32:36 2017 Router0 Router(config)#int fa 0/0
Thu Nov 16 14:32:50 2017 Router0 Router(config)#int fa0/0
Thu Nov 16 14:32:59 2017 Router0 Router(config)#int fa gi 0/0
Thu Nov 16 14:33:08 2017 Router0 Router(config)#int gi 0/0
Thu Nov 16 14:33:30 2017 Router0 Router(config-if)#ip add 192.168.20.1 255.255.255.0
Thu Nov 16 14:33:35 2017 Router0 Router(config-if)#no shut
Thu Nov 16 14:33:39 2017 Router0 Router(config-if)#exit
Thu Nov 16 14:33:55 2017 Router0 Router(config)#int gi 0/1
Thu Nov 16 14:34:19 2017 Router0 Router(config-if)#ip add 192.168.10.5 255.255.255.252
Thu Nov 16 14:34:26 2017 Router0 Router(config-if)#no shut
Thu Nov 16 14:34:31 2017 Router0 Router(config-if)#exit
Thu Nov 16 14:35:13 2017 Router0 Router(config)#int gi 0/1.30
Thu Nov 16 14:35:24 2017 Router0 Router(config-subif)#encapsulation dot1Q 30
Thu Nov 16 14:36:04 2017 Router0 Router(config-subif)#ip add 192.168.50.129 255.255.255.128
Thu Nov 16 14:36:16 2017 Router0 Router(config-subif)#exit
Thu Nov 16 14:36:39 2017 Router0 Router(config)#int gi 0/1.40
Thu Nov 16 14:36:56 2017 Router0 Router(config-subif)#encapsulation dot1Q 40
Thu Nov 16 14:37:21 2017 Router0 Router(config-subif)#ip add 192.168.60.65 255.255.255.0
Thu Nov 16 14:37:34 2017 Router0 Router(config-subif)#ip add 192.168.60.65 255.255.255.252
Thu Nov 16 14:37:56 2017 Router0 Router(config-subif)#ip add 192.168.60.65 255.255.255.192
Thu Nov 16 14:37:59 2017 Router0 Router(config-subif)#exit
4. Setting lagi switch 1
Thu Nov 16 14:38:22 2017 Switch1 Switch(config-if)#exit
Thu Nov 16 14:38:58 2017 Switch1 Switch(config)#int fa 0/1
Thu Nov 16 14:39:12 2017 Switch1 Switch(config-if)#switchport mode trunk
5. Setting lagi switch 2
Thu Nov 16 14:40:23 2017 Switch2 Switch>en
Thu Nov 16 14:40:26 2017 Switch2 Switch#conf t
Thu Nov 16 14:40:32 2017 Switch2 Switch(config)#int fa 0/1
Thu Nov 16 14:40:38 2017 Switch2 Switch(config-if)#switchport mode trunk
Thu Nov 16 14:40:41 2017 Switch2 Switch(config-if)#exit
6. Isi ip pada masing masing PC
Vlan 50
PC 1
IP : 192.168.50.130
GTW : 192.168.50.129
Subnet: 255.255.255.128
DNS : 192.168.20.2
PC 2
IP : 192.168.50.131
GTW : 192.168.50.129
Subnet: 255.255.255.128
DNS : 192.168.20.2
PC 3
IP : 192.168.50.132
GTW : 192.168.50.129
Subnet: 255.255.255.128
DNS : 192.168.20.2
PC 4
IP : 192.168.50.133
GTW : 192.168.50.129
Subnet: 255.255.255.128
DNS : 192.168.20.2
Vlan 60
PC 1
IP : 192.168.60.66
GTW : 192.168.50.65
Subnet: 255.255.255.192
DNS : 192.168.20.2
PC 2
IP : 192.168.60.67
GTW : 192.168.50.65
Subnet: 255.255.255.192
DNS : 192.168.20.2
PC 3
IP : 192.168.60.68
GTW : 192.168.50.65
Subnet: 255.255.255.192
DNS : 192.168.20.2
PC 4
IP : 192.168.60.69
GTW : 192.168.50.65
Subnet: 255.255.255.192
DNS : 192.168.20.2
PC SERVER
IP : 192.168.20.3
GTW : 192.168.20.1
Subnet: 255.255.255.0
DNS : 192.168.20.2
ConversionConversion EmoticonEmoticon