Configuring L2 Access Switch port networkingguruji1.com/2019/12/configuring-l2-access-switch-port.html
Configuring L2 Access Switch port: My Dear Friend in today’s article, I will tell you “Configuring L2 Access Switch port”. If you any problem after reading this article, you can see the video below. Configuring L2 Access Switch Port Details: Layer 2 Switch port can be configured in two different modes. Ø Access Ø Trunk Access Port: Access port basically connects to End User’s system i.e. Computer, Printer etc. Access Port can be part of one Data VLAN and one Voice VLAN. Trunk Port: Trunk port basically connects to Switch to Switch. Trunk Port will be part of all VLAN. L2 access switch port: By default, Switch port is enabled with DTP (Dynamic Trunking Protocol) Protocol. DTP tries to form a trunk port dynamically/automatically when you connect a cable between switches. DTP has two different modes: Dynamic Auto Dynamic Desirable
DTP is Enabled by default on Switch port.
1/8
Configuring Layer 2 access Switch port Using the diagram for reference configure “Configuring L2 Access Switch port” on SW3 and SW4 connected to PC1,2,3, and PC4. Configure IP on PC’s as below and test the connectivity between PC's using ping. PC 1 – 172.16.10.1/24 PC 2 - 172.16.10.2/24 PC 2 - 172.16.10.3/24 PC 2 - 172.16.10.4/24
2/8
“L2 access switch port Configuration” SW-3:SW-3 (config)# interface g0/2 SW-3 (config-if)# switchport mode access SW-3 (config)# interface g0/3 SW-3 (config)# switchport mode access SW-4:SW-4(config)#interface gi0/2 SW-4(config-if)#switchport mode access SW-4(config)#interface gi0/3 SW-4(config-if)#switchport mode access “Layer 2 Switch Access Switch Port” In CCNA we will see there is two types of a port on a switch. One is an access port and another is trunk port. Access port basically connects to the end user’s system i.e. computer, printer, etc. The access port can be part of one data VLAN and one voice VLAN. The way access port works, when any data coming from end-usersystem and reaching a switch port, it is basically making the data with the configured VLAN on the port. “L2 access switch port” when the data is leaving a switch and going to an enduser system (Destination) then it will remove the VLAN making from the data and raw data will be sent to the end-user-system. Access port function is like, when data is coming to a switch port it does not have a VLAN tag and while leaving the switch port it will not have a VLAN tag.
Trunk port can carry the data of multiple VLAN with VLAN tag. That means from one end of 3/8
the switch port sending data and I will travel over the trunk port it with the VLAN id or tag. “configuring l2 access switch port� Other end will receive the data with VLAN lag. There are two types of trunking encapsulation used in cisco switch, ISL and 802.1q/dot1q. Note: - 802.1q trunking encapsulation can send and receive un-tag data over the trunk port by using native VLAN. The default native VLAN is used 1. Native VLAN basically works like access VLAN on the trunk port. SW3# Show interface gi0/2 switchport Name: Gi0/2 Switchport : Enabled Administrative Mode: Static access Operation mode: Static access Administrative trunking encapsulation: dot1q Operation trunking encapsulation: native Negotiation of trunking: off Access mode VLAN: 1 Trunking Native mode VLAN: 1 (default) Voice VLAN: none Administrative private-VLAN host-association: none Administrative private-VLAN mapping: none Administrative private-VLAN trunk native VLAN: none Administrative private-VLAN trunk encapsulation: dot1q Administrative private-VLAN trunk normal VLANs: none Administrative private-VLAN trunk private VLANs: none Operational private-VLAN: none Trunking VLANs Enabled: All Pruning VLANs Enabled: 2-1001 Capture Mode Disable Capture VLANs Allowed: All Protected: False Application Trust: none SW3# Show interface gi0/3 switchport Name: Gi0/3 Switchport : Enabled Administrative Mode: Static access Operation mode: Static access Administrative trunking encapsulation: dot1q Operation trunking encapsulation: native 4/8
Negotiation of trunking: off Access mode VLAN: 1 Trunking Native mode VLAN: 1 (default) Voice VLAN: none Administrative private-VLAN host-association: none Administrative private-VLAN mapping: none Administrative private-VLAN trunk native VLAN: none Administrative private-VLAN trunk encapsulation: dot1q Administrative private-VLAN trunk normal VLANs: none Administrative private-VLAN trunk private VLANs: none Operational private-VLAN: none Trunking VLANs Enabled: All Pruning VLANs Enabled: 2-1001 Capture Mode Disable Capture VLANs Allowed: All Protected: False Application Trust: none
“Layer 2 Switch Access Switch Port� SW4# Show interface gi0/2 switchport Name: Gi0/2 5/8
Switchport : Enabled Administrative Mode: Static access Operation mode: Static access Administrative trunking encapsulation: dot1q Operation trunking encapsulation: native Negotiation of trunking: off Access mode VLAN: 1 Trunking Native mode VLAN: 1 (default) Voice VLAN: none Administrative private-VLAN host-association: none Administrative private-VLAN mapping: none Administrative private-VLAN trunk native VLAN: none Administrative private-VLAN trunk encapsulation: dot1q Administrative private-VLAN trunk normal VLANs: none Administrative private-VLAN trunk private VLANs: none Operational private-VLAN: none Trunking VLANs Enabled: All Pruning VLANs Enabled: 2-1001 Capture Mode Disable Capture VLANs Allowed: All Protected: False Application Trust: none SW4# Show interface gi0/3 switchport Name: Gi0/3 Switchport : Enabled Administrative Mode: Static access Operation mode: Static access Administrative trunking encapsulation: dot1q Operation trunking encapsulation: native Negotiation of trunking: off Access mode VLAN: 1 Trunking Native mode VLAN: 1 (default) Voice VLAN: none Administrative private-VLAN host-association: none Administrative private-VLAN mapping: none Administrative private-VLAN trunk native VLAN: none Administrative private-VLAN trunk encapsulation: dot1q Administrative private-VLAN trunk normal VLANs: none Administrative private-VLAN trunk private VLANs: none 6/8
Operational private-VLAN: none Trunking VLANs Enabled: All Pruning VLANs Enabled: 2-1001 Capture Mode Disable Capture VLANs Allowed: All Protected: False Application Trust: none
After that PC1 TO PC2 Ping. PC 1 Pinging 172.16.10.4 with 32bytes of data Reply from 172.16.10.4 bytes=32 time =2 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128 PC 2 7/8
Pinging 172.16.10.1 with 32bytes of data Reply from 172.16.10.4 bytes=32 time =11 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128 Reply from 172.16.10.4 bytes=32 time =0 ms TTL=128
Full Article “Configuring L2 Access Switch port” Thank you Full Article.
8/8