Configuring trunks: encapsulation, allowed VLANs and the native VLAN
Sign in to read this lesson
To connect the same VLAN on two switches, create the VLAN on both and make the link between them a trunk. On switches that also support ISL you first type "switchport trunk encapsulation dot1q" and then "switchport mode trunk". show interfaces trunk shows the trunk's mode, encapsulation, native VLAN and allowed VLANs. "switchport trunk allowed vlan" limits the VLANs on the trunk, and "switchport trunk native vlan" changes the native VLAN.
What you will learn
- Create the VLAN on both switches, then make the link between them a trunk:
switchport mode trunk. - On switches that also support ISL (3550/3560)
switchport mode trunkis rejected ("encapsulation is Auto"). Typeswitchport trunk encapsulation dot1qfirst. Switches that only support dot1q, such as the 2960/9200, do not have this command. show vlandoes not show trunk ports. Check trunks withshow interfaces trunk: Mode, Encapsulation, Status, Native vlan, Vlans allowed.switchport trunk allowed vlan 1-50replaces the list. To add to an existing list always useadd, or the other VLANs are cut off.switchport trunk native vlan 10changes the native VLAN. Do it on both ends, or you get a%CDP-4-NATIVE_VLAN_MISMATCHwarning and the VLANs get mixed.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.