Configuring LAN Interfaces for Layer 2 Switching
•
•
•
Complete the steps in the
Note
tasks in this section.
Configuring the Access VLAN
Complete the steps in the
Note
performing the tasks in this section.
To configure the access VLAN, perform this task:
Command
Router(config-if)# switchport access vlan vlan_ID
Router(config-if)# no switchport access vlan
Complete the steps in the
Note
tasks in this section.
Configuring the 802.1Q Native VLAN
Complete the steps in the
Note
performing the tasks in this section.
To configure the 802.1Q native VLAN, perform this task:
Command
Router(config-if)# switchport trunk native vlan
vlan_ID
Router(config-if)# no switchport trunk native vlan
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
10-10
To support the switchport nonegotiate command, you must enter the switchport mode trunk
command.
Enter the switchport mode dynamic trunk command. See
about trunking modes.
Before entering the switchport nonegotiate command, you must configure the encapsulation (see
the
"Configuring the Layer 2 Switching Port as an ISL or 802.1Q Trunk" section on page
configure the port to trunk unconditionally with the switchport mode trunk command (see the
"Configuring the Layer 2 Trunk to Use DTP" section on page
"Completing Trunk Configuration" section on page 10-12
"Configuring a LAN Port for Layer 2 Switching" section on page 10-7
"Completing Trunk Configuration" section on page 10-12
"Configuring a LAN Port for Layer 2 Switching" section on page 10-7
Chapter 10
Configuring LAN Ports for Layer 2 Switching
Table 10-2 on page 10-4
10-9).
Purpose
(Optional) Configures the access VLAN, which is used if the
interface stops trunking. The vlan_ID value can be 1 through
4094, except reserved VLANs (see
Reverts to the default value (VLAN 1).
Purpose
(Optional) Configures the 802.1Q native VLAN.
Reverts to the default value (VLAN 1).
for information
10-8) and
after performing the
before
Table 14-1 on page
14-2).
after performing the
before
OL-4266-08