PC-VLAN 10:
PC-VLAN 20:
SWITCH:
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name Departemen-IT
Switch(config)#vlan 20
Switch(config-vlan)#name Departemen-HRD
Mendaftarkan VLAN 10 pada interface fa0/2:
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Mendaftarkan VLAN 20 pada interface fa0/3:
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Mendaftarkan VLAN 10 dan 20 pada interface fa0/1:
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
ROUTER:
Router(config)#interface fastEthernet 0/1.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config)#interface fastEthernet 0/1.11
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.2.1 255.255.255.0
Testing Routing
Router#SHow ip route
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/1.10
C 192.168.2.0/24 is directly connected, FastEthernet0/1.11
Test Ping dari IP Address 192.168.1.2 :
No comments:
Post a Comment