Sample Configuration – Access and Trunking
Now, it’s time for us to give sample configurations for Access mode switchports and Trunk mode switchports.
Access Mode Switchport Configuration:
Switch#config terminal
Switch(config)#int fa0/1
Switch(config-if)# switchport
Switch(config-if)# switchport access vlan 10
Switch(config-if)# switchport mode access
*Note that this Access Mode Switchport Configuration is for Static VLAN configuration only. For Dynamic VLAN configuration, there should be an external VLAN Membership Policy Server (VMPS), and the configuration will be “switch port access vlan dynamic”
*The same configuration is used to assign a switchport to a VLAN. In this case, interface fa0/1 is assigned to VLAN 10
Trunk Mode Switchport Configuration:
Using Dot1q Tagging
Switch#config terminal
Switch(config)#int fa0/1
Switch(config-if)# switchport
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport trunk native 10
Switch(config-if)# switchport mode trunk
Using ISL Encapsulation
Switch#config terminal
Switch(config)#int fa0/1
Switch(config-if)# switchport
Switch(config-if)# switchport trunk encapsulation isl
Switch(config-if)# switchport mode trunk
On Trunk Mode Configuration, there are two other configuration options available:
Switch(config-if)#switchport trunk allowed vlan
This is to set allowed VLAN characteristics when interface is in trunking mode
Switch(config-if)#switchport trunk pruning vlan
This is to set pruning VLAN characteristics when interface is in trunking mode.
Lastly, if a switchport will be connected to another switchport (another Switch), the configuration on both switchports should be similar.
Tuesday, September 2, 2008
Lectures on LAN Switching – Part 09
[ Posted by Mark Ryan at 6:01 PM ][ Category: LAN Switching Lectures ]
Subscribe to:
Post Comments (Atom)

1 comments:
Sweet blog! I'm going for a Computer Networking Technician degree with the CCNA, and this is very interesting!
Post a Comment