Cisco Catalyst 4500 series Administration Manual page 598

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Configuring Ethernet Interfaces for Layer 2 Switching
Command
Step 8
Switch(config-if)# switchport trunk
pruning vlan {add | except | none |
remove}
vlan_num[,vlan_num[,vlan_num[,....]]
Step 9
Switch(config-if)# no shutdown
Step 10
Switch(config-if)# end
Step 11
Switch# show running-config interface
{fastethernet | gigabitethernet |
tengigabitethernet} slot/port
Step 12
Switch# show interfaces [fastethernet |
gigabitethernet | tengigabitethernet]
slot/port switchport
Step 13
Switch# show interfaces [{fastethernet |
gigabitethernet | tengigabitethernet}
slot/port] trunk
This example shows how to configure the Fast Ethernet interface 5/8 as an 802.1Q trunk. This example
assumes that the neighbor interface is configured to support 802.1Q trunking and that the native VLAN
defaults to VLAN 1:
Switch# configure terminal
Enter configuration commands, one per line.
Switch(config)# interface fastethernet 5/8
Switch(config-if)# shutdown
Switch(config-if)# switchport mode dynamic desirable
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# no shutdown
Switch(config-if)# end
Switch# exit
This example shows how to verify the running configuration:
Switch# show running-config interface fastethernet 5/8
Building configuration...
Current configuration:
!
interface FastEthernet5/8
switchport mode dynamic desirable
switchport trunk encapsulation dot1q
end
This example shows how to verify the switch port configuration:
Switch# show interfaces fastethernet 5/8 switchport
Name: Fa5/8
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Enabled
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
18-6
Chapter 18
Purpose
(Optional) Configures the list of VLANs allowed to be pruned
from the trunk (see the
"VLAN Trunking Protocol" section on
page
16-7). The default list of VLANs allowed to be pruned
contains all VLANs, except for VLAN 1.
Activates the interface. (Required only if you shut down the
interface.)
Exits interface configuration mode.
Displays the running configuration of the interface.
Displays the switch port configuration of the interface.
Displays the trunk configuration of the interface.
End with CNTL/Z.
Configuring Layer 2 Ethernet Interfaces
OL_28731-01

Advertisement

Table of Contents
loading

Table of Contents