
Configuring the Cisco Gigabit EtherSwitch EHWIC
How to Configure Gigabit EtherSwitch EHWICs
18
Configuring the Cisco Gigabit EtherSwitch EHWIC
OL-23155-01
Verifying a GigabitEthernet Interface as Layer 2 Access
Use the show running-config interface command to verify the running configuration of the interface,
as shown below:
Router#show running-config interface gigabitethernet 0/1/2
Building configuration...
Current configuration: 76 bytes
!
interface gigabitethernet 0/1/2
switchport access vlan 3
no ip address
end
Use the show interfaces command to verify the switchport configuration of the interface, as shown
below:
Router#show interfaces gigabitethernet 0/1/0 switchport
Name: Gi0/1/2
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: Disabled
Access Mode VLAN: 0 ((Inactive))
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Trunking VLANs Active: none
Protected: false
Priority for untagged frames: 0
Override vlan tag priority: FALSE
Voice VLAN: none
Appliance trust: none
router#
Step 3
switchport mode access
Example:
Router(config-if)#switchport mode access
Configures the interface as a Layer 2 access.
Step 4
switchport access vlan vlan_num
Example:
Router(config-if)#switchport access vlan 1
For access ports, specifies the access vlan.
Step 5
no shutdown
Example:
Router(config-if)#no shutdown
Activates the interface. (Required only if you shut down the
interface.)
Step 6
end
Example:
Router(config-if)#end
Exits interface configuration mode.
Command Purpose
Commentaires sur ces manuels