9-4
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter9 Configuring the Switch Interfaces
Using the Interface Command
Figure9-1 Connecting VLANs with Layer 2 Switches
Using the Interface 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.
Type—Fast Ethernet (fastethernet or fa) for 10/100 Ethernet or Gigabit Ether net
(gigabitethernetor gi).
Slot—The slot number on the switch (always 0 on this switch).
Port number—The interface number on the switch. The port numbers always begin at 1, starting at
the left when facing the front of the switch; for example, fastet he rnet 0 /1, fastet h erne t 0/ 2. If t here
is more than one media type (for example, 10/100 ports and Gigab it Ethernet ports), the port number
starts again with the second medium: gigabitethernet 0/1.
You can identify physical interfaces by physically checking the interface location on the switch. You can
also use the Cisco IOS show privileged EXEC commands to display information about a specific
interface or all the interfaces on the switch. The re ma ind er of t his ch ap t er pr i mari ly provid es phys ica l
interface configuration procedures.
This section describes how to configure all types of interfaces and ho w to c onfi gure a ran ge of interf aces:
Procedures for Configuring Interfaces, page 9-5
Configuring a Range of Interfaces, page 9-6
Configuring and Using Interface-Range Macros, page 9-8
Host A
Switch
Cisco router
VLAN 20
Host B
VLAN 30
87812