9-20
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter9 Creating and Maintaining VLANs
VLANs in the VTP Database
To return an interface to its default configuration, use the default interface interface-id interface
configuration command.
This example shows how to configure Gigabit Ethernet interface 0/1 as an access port in VLAN 2:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 2
Switch(config-if)# end
Switch#
These examples show how to verify the configuration:
Switch# show running-config interface gigabitethernet0/1
Building configuration...
Current configuration : 74 bytes
!
interface GigabitEthernet0/1
no ip address
snmp trap link-status
end
Switch# show interfaces gigabitethernet0/1 switchport
Name: Gi0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: false
Unknown unicast blocked: false
Unknown multicast blocked: false
Broadcast Suppression Level: 100
Multicast Suppression Level: 100
Unicast Suppression Level: 100
Step6 show running-config interface interface-id Verify the VLAN membership mode of the interface.
Step7 show interfaces interface-id switchport Verify your entries in the Administrati ve Mode and the Access Mode
VLAN fields of the display.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose