
Configuring the Cisco Gigabit EtherSwitch EHWIC
How to Configure Gigabit EtherSwitch EHWICs
16
Configuring the Cisco Gigabit EtherSwitch EHWIC
OL-23155-01
DETAILED STEPS
Note Ports do not support Dynamic Trunk Protocol (DTP). Ensure that the neighboring switch is set to a mode
that does not send DTP.
Verifying a GigabitEthernet Interface as a Layer 2 Trunk
Use the following show commands to verify the configuration of a GigabitEthernet interface as a Layer
2 trunk:
router#show running-config interface gigabitethernet 0/1/2
Building configuration...
Current configuration: 71 bytes
Command Purpose
Step 1
interface gigabitethernet 0/slot/port
Example:
Router(config)#interface gigabitethernet 0/1/2
Selects the interface to configure.
Step 2
shutdown
Example:
Router(config-if)#shutdown
(Optional) Shuts down the interface to prevent traffic
flow until configuration is complete.
Step 3
switchport mode trunk
Example:
Router(config-if)#switchport mode trunk
Configures the interface as a Layer 2 trunk.
Note Encapsulation is always dot1q.
Step 4
switchport trunk native vlan vlan-num
Example:
Router(config-if)#switchport trunk native vlan 1
(Optional) For 802.1Q trunks, specifies the native
VLAN.
Step 5
switchport trunk allowed vlan {add | except | none |
remove} vlan1[,vlan[,vlan[,...]]
Example:
Router(config-if)#switchport trunk allowed vlan
{add | except | none | remove}
vlan1[,vlan[,vlan[,...]]
(Optional) Configures the list of VLANs allowed on the
trunk. All VLANs are allowed by default. You cannot
remove any of the default VLANs from a trunk.
Step 6
no shutdown
Example:
Router(config-if)#no shutdown
Activates the interface. (Required only if you shut down
the interface.)
Step 7
end
Example:
Router(config-if)#end
Exits interface configuration mode.
Comentarios a estos manuales