Configuring LAN Interfaces for Layer 2 Switching
To configure the list of prune-eligible VLANs on the Layer 2 trunk, perform this task:
Command
Router(config-if)# switchport trunk pruning vlan
{none |{{add | except | remove}
vlan [, vlan [, vlan [,...]]}}
Router(config-if)# no switchport trunk pruning vlan
When configuring the list of prune-eligible VLANs on a trunk, note the following information:
•
•
•
Complete the steps in the
Note
tasks in this section.
Completing Trunk Configuration
To complete Layer 2 trunk configuration, perform this task:
Command
Step 1
Router(config-if)# no shutdown
Step 2
Router(config-if)# end
Verifying Layer 2 Trunk Configuration
To verify Layer 2 trunk configuration, perform this task:
Command
Step 1
Router# show running-config interface type
slot / port
Step 2
Router# show interfaces [ type
switchport
Step 3
Router# show interfaces [ type
1.
type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
10-12
The vlan parameter is either a single VLAN number from 1 through 4094, except reserved VLANs
(see
Table 14-1 on page
14-2), or a range of VLANs described by two VLAN numbers, the lesser
one first, separated by a dash. Do not enter any spaces between comma-separated vlan parameters
or in dash-specified ranges.
The default list of VLANs allowed to be pruned contains all VLANs.
Network devices in VTP transparent mode do not send VTP Join messages. On Cisco 7600 series routers
with trunk connections to network devices in VTP transparent mode, configure the VLANs used by the
transparent-mode network devices or that need to be carried across the transparent-mode network devices
as pruning ineligible.
"Completing Trunk Configuration" section on page 10-12
1
slot / port ]
1
slot / port ] trunk
Chapter 10
Purpose
(Optional) Configures the list of prune-eligible VLANs on the
trunk (see the
"Understanding VTP Pruning" section on
page
13-4).
Reverts to the default value (all VLANs prune-eligible).
Purpose
Activates the interface. (Required only if you shut down
the interface.)
Exits configuration mode.
Purpose
1
Displays the running configuration of the interface.
Displays the switch port configuration of the interface.
Displays the trunk configuration of the interface.
Configuring LAN Ports for Layer 2 Switching
after performing the
OL-4266-08