Konfigurasi VLAN encapsulation dot1q | cisco packet tracer

 Konfigurasi encapsulation dot1Q





gambar topologi




[1] konfigurasi ip address pada pc
    •pc 0
      





    •pc 1





    •pc 2





     •pc 3







[2] konfigurasi switch 

   •switch 0
 
  Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name vlan1
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#name vlan2
Switch(config-vlan)#ex
Switch(config)#int range fa0/1
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#int range fa0/2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int range fa0/3
Switch(config-if-range)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

Switch(config-if-range)#ex
Switch(config)#


    •switch 1

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name vlan1
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#name vlan2
Switch(config-vlan)#ex
Switch(config)#int range fa0/1
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#int range fa0/2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int range fa0/3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

Switch(config-if-range)#ex
Switch(config)#


[3] tes ping

    •tes ping dari pc 0 ke pc 1














      •tes ping dari pc 2 ke pc 3







Komentar

Postingan populer dari blog ini

Memblokir situs dengan Firewall mikrotik

Konfigurasi FTP Server di Debian 10