Setting VLAN Menggunakan Packet Tracher
Setting VLAN Menggunakan Packet Tracher
SWITCH 1
Switch>en
Switch#conf
Configuring
from terminal, memory, or network [terminal]?
Enter
configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan
50
Switch(config-vlan)#name
laras
Switch(config-vlan)#exit
Switch(config)#vlan
60
Switch(config-vlan)#name
sofia
Switch(config-vlan)#exit
Switch(config)#interface
fa 0/3
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 50
Switch(config-if)#exit
Switch(config)#interface
fa 0/2
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 50
Switch(config-if)#exit
Switch(config)#interface
fa0/5
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 60
Switch(config-if)#exit
Switch(config)#interface
fa 0/4
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 60
Switch(config-if)#exit
SWITCH
2
Switch>en
Switch#conf
Configuring
from terminal, memory, or network [terminal]?
Enter
configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan
50
Switch(config-vlan)#name
laras
Switch(config-vlan)#exit
Switch(config)#vlan
60
Switch(config-vlan)#name
sofia
Switch(config-vlan)#exit
Switch(config)#interface
fa 0/2
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 50
Switch(config-if)#exit
Switch(config)#interface
fa0/1
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 50
Switch(config-if)#exit
Switch(config)#interface
fa0/4
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 60
Switch(config-if)#exit
Switch(config)#interface
fa0/3
Switch(config-if)#switchport
mode access
Switch(config-if)#switchport
access vlan 60
Switch(config-if)#exit
ROUTER
Router>en
Router#conf
t
Enter
configuration commands, one per line. End with CNTL/Z.
Router(config)#int
gigabitEthernet 0/1
Router(config-if)#ip
address 192.168.10.5 255.255.255.252
Router(config-if)#no
shut
%LINK-5-CHANGED:
Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#int
gigabitEthernet 0/0
Router(config-if)#ip
address 192.168.20.1 255.255.255.0
Router(config-if)#no
shut
%LINK-5-CHANGED:
Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#interface
gigabitEthernet 0/1.50
%LINK-5-CHANGED:
Interface GigabitEthernet0/1.50, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface GigabitEthernet0/1.50, changed state to up
Router(config-subif)#encapsulation
dot1Q 50
Router(config-subif)#ip
address 192.168.50.135 255.255.255.128
Router(config-subif)#exit
Router(config)#int
gigabitEthernet 0/1.60
%LINK-5-CHANGED:
Interface GigabitEthernet0/1.60, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface GigabitEthernet0/1.60, changed state to up
Router(config-subif)#encapsulation
dot1Q 60
Router(config-subif)#ip
address 192.168.60.70 255.255.255.192
Router(config-subif)#exit
TRUNK
Switch>en
Switch#conf
Configuring
from terminal, memory, or network [terminal]?
Enter
configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface
fa 0/1
Switch(config-if)#switchport mode trunk
Switch>en
Switch#conf
Configuring
from terminal, memory, or network [terminal]?
Enter
configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface
fa 0/5
Switch(config-if)#switchport mode trunk
Vlan 50
PC 1 (fa 0/2)
IP Address 192.168.50.129
Subnet Mask 255.255.255.128
Default Gtw 192.168.50.135
DNS Server 192.168.20.3
PC 2 (fa 0/3)
Ip Address 192.168.50.130
Subnet Mask 255.255.255.128
Default Gtw 192.168.50.135
DNS Server 192.168.20.3
PC 3 (fa 0/1)
Ip Address 192.168.50.131
Subnet Mask 255.255.255.128
Default Gtw 192.168.50.135
DNS Server 192.168.20.3
PC 4 (fa 0/2)
Ip Address 192.168.50.132
Subnet Mask 255.255.255.128
Default Gtw 192.168.50.135
DNS Server 192.168.20.3
Vlan 60
PC 1 (fa 0/4)
Ip Address 192.168.60.65
Subnet Mask 255.255.255.192
Default Gtw 192.168.60.70
DNS Server 192.168.20.3
PC 2 (fa 0/5)
Ip Address 192.168.60.66
Subnet Mask 255.255.255.192
Default Gtw 192.168.60.70
DNS Server 192.168.20.3
PC 3 (fa 0/3)
Ip Address 192.168.60.67
Subnet Mask 255.255.255.192
Default Gtw 192.168.60.70
DNS Server 192.168.20.3
PC 4 (fa 0/4)
Ip Address 192.168.60.68
Subnet Mask 255.255.255.192
Default Gtw 192.168.60.70
DNS Server 192.168.20.3
SERVER
Ip Address 192.168.20.3
Subnet Mask 255.255.255.0
Default Gtw 192.168.20.1
DNS (laras.com) (Ip: 192.168.20.3)
HTTP (Cisco Packet Tracer di ganti Laras Sofia Ranti)
0 comments: