10-12
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 10 Configuring LAN Ports for Layer 2 Switching
Configuring LAN Interfaces for Layer 2 Switching
To configure the list of prune-eligible VLANs on the Layer 2 trunk, perform this task:
When configuring the list of prune-eligible VLANs on a trunk, note the following information:
•
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.
Note
Complete the steps in the
“Completing Trunk Configuration” section on page 10-12
after performing the
tasks in this section.
Completing Trunk Configuration
To complete Layer 2 trunk configuration, perform this task:
Verifying Layer 2 Trunk Configuration
To verify Layer 2 trunk configuration, perform this task:
Command
Purpose
Router(config-if)#
switchport trunk pruning vlan
{
none
|{{
add
|
except
|
remove
}
vlan
[,
vlan
[,
vlan
[,...]]}}
(Optional) Configures the list of prune-eligible VLANs on the
trunk (see the
“Understanding VTP Pruning” section on
page 13-4
).
Router(config-if)#
no switchport trunk pruning vlan
Reverts to the default value (all VLANs prune-eligible).
Command
Purpose
Step 1
Router(config-if)#
no shutdown
Activates the interface. (Required only if you shut down
the interface.)
Step 2
Router(config-if)#
end
Exits configuration mode.
Command
Purpose
Step 1
Router#
show running-config interface
type
1
slot
/
port
1.
type
=
ethernet
,
fastethernet
,
gigabitethernet
, or
tengigabitethernet
Displays the running configuration of the interface.
Step 2
Router#
show interfaces
[
type
1
slot
/
port
]
switchport
Displays the switch port configuration of the interface.
Step 3
Router#
show interfaces
[
type
1
slot
/
port
]
trunk
Displays the trunk configuration of the interface.