9-4
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 9 Configuring the Switch Interfaces
Using the Inter fa ce Comma nd
Figure 9-1 Connecting VLANs with Layer 2 Switches

Using the Interf ace Command

To configure a physical interface (port), use the interface global configuration command to enter interface
configuration mode and to specify the interface type, slot, and number.
TypeFast Ethernet (fastethernet or fa) for 10/100 Ethernet or Gigabit Ethernet (gigabitethernet or
gi)
SlotThe slot number on the switch (always 0 on this swi tch).
Port numberThe interfa ce numbe r on the swit ch. Th e po rt nu mber s always begin at 1, sta rti ng at
the left when facing the front of the switch, for example, fastethernet 0/1, fastethernet 0/2. If there
is more than one media type (for example, 10/100 ports and Gigabit Ethernet ports), the port number
starts again with the second media: gigabitethernet 0/1, gigabitethernet 0/2.
You can identify physical interfaces by physically checking the interface location on the switch. You can
also use t he IO S show privileged EXE C co mm and s to displa y in forma ti on abou t a spe cific int erfac e o r
all the i nterfaces on the switch . The rema inder of this ch apter pr imaril y provides physic al inter face
configurat ion pr oced ure s.
This sec tion describes h ow t o conf igure all types of in terfaces and ho w to c onfi gure a rang e of interf aces:
Procedur es for Configuri ng Inter faces, page 9-4
Configuring a Range of Interfaces, page 9-6
Configuring and Using Inte rface-Ra nge Mac ros, page 9-8

Procedures for Configuring Interfaces

These general instructions apply to all interface configuration processes.
Step 1 Ente r th e configure terminal com mand at the pr ivileged EXEC prompt:
Switch# configure terminal
Host A
Switch
Cisco router
VLAN 20
Host B
VLAN 30
46647