Practice
So, our task today is to learn how to configure ports on Cisco switches in the modes:
VLANs are virtual networks that exist at the second layer of the OSI model. That is, a VLAN can be configured on a layer-2 switch.
We log in to the required Cisco and go into configuration mode:
Configuring a port for Access
In this example we specified that port FastEthernet 0/1 will operate in Access mode and packets passing through it will be assigned to VLAN 20.
Configuring a port for Trunk
(The command "switchport trunk encapsulation dot1q" may not be present on some switch models, for example on the 2950).
In this example we specified that port FastEthernet 0/1 will operate in Trunk mode and accept VLANs with numbers 1, 2, 3 and 4.
Configuring a port for Hybrid
There is no Hybrid mode as such (like, for example, on 3Com) in Cisco. It's a workaround of Trunk mode.
In this example port FastEthernet 0/1 will operate in Trunk mode with the ability to accept Access packets and place them into the 99th VLAN. In addition, tagged packets from VLANs 1, 2, 3 and 4 will be both received and sent.
PS. It should be noted that Cisco has no Hybrid mode - it will still accept untagged packets and assign them to the VLAN specified as Native. This can only be prevented by not including the Native VLAN in the Allowed list (the switchport trunk allowed line).
Comments