-
Trunk Encapsulation
-
IEEE 802.1Q
- Inserts VLAN tag between Source MAC and Type field
- Header Size: 4 bytes
- Max VLANs: 4094
-
Cisco ISL
- Adds ISL header before Dest MAC and ISL FCS after Type field
- Header Size: 26 bytes
- Trailer Size: 4 bytes
- Max VLANs: 1000
-
Untagged
-
Normal Ethernet Frame:
- Dest MAC (6 bytes)
- Source MAC (6 ytes)
- Type (2 bytes)
-
Terminology
-
Trunking
- Carrying multiple VLANs over the same
physical connection
-
Native VLAN
- IEEE 802.1Q) By default, frames in this VLAN are untagged when sent across a trunk
-
Access VLAN
- The VLAN to which an access port is assigned
-
Voice VLAN
- If configured, enables minimal trunking to
support voice traffic in addition to data traffic
on an access port
-
Dynamic Trunking Protocol (DTP)
- Can be used to automatically establish trunks
between capable ports (insecure)
-
Switched Virtual Interface (SVI)
- A virtual interface which provides a routed
gateway into and out of a VLAN
-
VLAN Configuration
-
Create VLAN
- Switch(config)# vlan <vlan-num>
- Switch(config-vlan)# name <vlan-name>
-
Assign port to VLAN
- Switch(config)# interface <interface>
- Switch(config-if)# switchport mode access
- Switch(config-if)# switchport access vlan <vlan-num>
-
Configure trunk
- Switch(config)# interface type member/module/number
- Switch(config-if)# switchport trunk encapsulation {isl | dot1q | negotiate}
- Switch(config-if)# switchport trunk native vlan vlan-id
- Switch(config-if)# switchport trunk allowed vlan {vlan-list | all | {add | except | remove} vlan-list}
- Switch(config-if)# switchport mode {trunk | dynamic {desirable | auto}}
-
Define the trunking on a port to a Cisco IP phone.
- Switch(config-if)# switchport voice vlan {vlan-id | dot1p | untagged | none}
-
VLAN Troubleshooting
-
Displays the contents of the MAC address table
- show mac address-table [dynamic]
-
Clears dynamically learned MAC addresses to determine whether a previously learned MAC address is relearned.
- clear mac address-table dynamic
-
Shows to which VLANs the ports of a switch belong.
- show vlan brief
-
Displays which VLANs are permitted on the trunk ports of a switch and which switchports are configured as trunks.
- show interfaces trunk
-
Displays VLAN and trunk information related to a switchport.
- show interfaces interface_type interface_number switchport