Switching Lab 1 : VLAN dan Trunk

Switching Lab 1 : VLAN dan Trunk

  • 15 September 2021
  • Network
  • Ditulis oleh Ajriya Muhammad Arkan
  • 356 Views

Kita harus mengkonfigurasi VLAN pada kedua switch

SW 1

SW-KIRI#vlan database 
% Warning: It is recommended to configure VLAN from config mode, 
as VLAN database mode is being deprecated. Please consult user 
documentation for configuring VTP/VLAN in config mode. 
SW-KIRI(vlan)#vlan 10 name Engineer 
VLAN 10 modified: 
 Name: Engineer 
SW-KIRI(vlan)#exit 
APPLY completed. 

Exiting....

SW-KIRI#conf t 
SW-KIRI(config)#int e0/0 
SW-KIRI(config-if)#switchport mode access 
SW-KIRI(config-if)#switchport access vlan 10 

SW-KIRI(config-if)#exit

IOU 2

SW-KANAN#vlan database 
% Warning: It is recommended to configure VLAN from config mode, 
 as VLAN database mode is being deprecated. Please consult user 
 documentation for configuring VTP/VLAN in config mode. 
SW-KANAN(vlan)#vlan 10 name Engineer 
VLAN 10 modified: 
 Name: Engineer 
SW-KANAN(vlan)#exit 

APPLY completed.

Exiting.... 
SW-KANAN(config)#int e0/0
SW-KANAN(config-if)#switchport mode access 
SW-KANAN(config-if)#switchport access vlan 10 

SW-KANAN(config-if)#exit

Konfigurasi trunkingnya

SW-KIRI

SW-KIRI(config)#int e0/1 
SW-KIRI(config-if)#switchport trunk encapsulation dot1q 
SW-KIRI(config-if)#switchport mode trunk 
SW-KIRI(config-if)#switchport trunk allowed vlan 10 

SW-KIRI(config-if)#exit

SW-KANAN

SW-KANAN(config)#int e0/1 
SW-KANAN(config-if)#switchport trunk encapsulation dot1q 
SW-KANAN(config-if)#switchport mode trunk 
SW-KANAN(config-if)#switchport trunk allowed vlan 10

SW-KANAN(config-if)#exit

Kita verifikasi trunking dan vlan

SW-KIRI

SW-KIRI#sh vlan brief 
VLAN Name Status Ports 
---- -------------------------------- --------- ------------------------------- 
1 default active Et0/2, Et0/3, Et1/0, Et1/1 
                 Et1/2, Et1/3, Et2/0, Et2/1 
                 Et2/2, Et2/3, Et3/0, Et3/1 
                 Et3/2, Et3/3 
10 Engineer active Et0/0 
1002 fddi-default act/unsup 
1003 token-ring-default act/unsup 
1004 fddinet-default act/unsup 

1005 trnet-default act/unsup


SW-KIRI#show interface trunk 
Port Mode Encapsulation Status Native vlan 
Et0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Et0/1 10 
Port Vlans allowed and active in management domain Et0/1 10 
Port Vlans in spanning tree forwarding state and not pruned 

Et0/1 10

SW-KANAN

SW-KANAN#show vlan brief 
VLAN Name Status Ports 
---- -------------------------------- --------- ------------------------------- 
1 default active Et0/2, Et0/3, Et1/0, Et1/1 
                 Et1/2, Et1/3, Et2/0, Et2/1 
                 Et2/2, Et2/3, Et3/0, Et3/1 
                 Et3/2, Et3/3 
10 Engineer active Et0/0 
1002 fddi-default act/unsup 
1003 token-ring-default act/unsup 
1004 fddinet-default act/unsup 
1005 trnet-default act/unsup 
SW-KANAN#show interface trunk 
Port Mode Encapsulation Status Native vlan 
Et0/1 on 802.1q trunking 1 
Port Vlans allowed on trunk 
Et0/1 10 
Port Vlans allowed and active in management domain 
Et0/1 10 
Port Vlans in spanning tree forwarding state and not pruned 

Et0/1 10

Kita verifikasi ping

PC1

PC1> ip 192.168.10.1/24 
Checking for duplicate address... 
PC1 : 192.168.10.1 255.255.255.0 
PC1> ping 192.168.10.2 

host (192.168.10.2) not reachable


PC1> ping 192.168.10.2 
84 bytes from 192.168.10.2 icmp_seq=1 ttl=64 time=0.991 ms 
84 bytes from 192.168.10.2 icmp_seq=2 ttl=64 time=0.875 ms 
84 bytes from 192.168.10.2 icmp_seq=3 ttl=64 time=0.852 ms 
84 bytes from 192.168.10.2 icmp_seq=4 ttl=64 time=1.049 ms 

84 bytes from 192.168.10.2 icmp_seq=5 ttl=64 time=0.784 ms

PC2

PC2> ip 192.168.10.2/24 
Checking for duplicate address... 

PC1 : 192.168.10.2 255.255.255.0


PC2> ping 192.168.10.1 
84 bytes from 192.168.10.1 icmp_seq=1 ttl=64 time=0.759 ms 
84 bytes from 192.168.10.1 icmp_seq=2 ttl=64 time=0.904 ms 
84 bytes from 192.168.10.1 icmp_seq=3 ttl=64 time=0.952 ms 
84 bytes from 192.168.10.1 icmp_seq=4 ttl=64 time=0.837 ms 

84 bytes from 192.168.10.1 icmp_seq=5 ttl=64 time=0.925 ms


  • Tags:
  • -
  • Share: