Cisco Systems 2940 Switch User Manual


 
9-5
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter 9 Configuring the Switch Interfaces
Using the Interface Command
Procedures for Configuring Interfaces
These general instructions apply to all interface configuration processes.
Step 1 Enter the configure terminal command at the privileged EXEC prompt:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Step 2 Enter the interface global configuration command. Identify the interface type and the number of the
connector. In these examples, Fast Ethernet interface 0/4 is selected, and Gigabit Ethernet 0/1 is selected:
Switch(config)# interface fastethernet0/4
Switch(config-if)#
Switch(config)# interface gigabitethernet0/1
Switch(config-if)#
Note You do not need to add a space between the interface type and interface number. In the preceding
examples, you can specify either fastethernet 0/4, fa 0/4, or fa0/4; gigabitethernet 0/1, gi 0/1, or
gi0/1.
Step 3 Follow each interface command with the interface configuration commands your particular interface
requires. The commands you enter define the protocols and applications that will run on the interface.
The commands are collected and applied to the interface when you enter another interface command or
enter end to return to privileged EXEC mode.
You can also configure a range of interfaces by using the interface range or interface range macro
global configuration commands. Interfaces configured in a range must be the same type and must be
configured with the same feature options.
Step 4 After you configure an interface, verify its status by using the show privileged EXEC commands listed
in the “Monitoring and Maintaining the Interfaces” section on page 9-14.
Enter the show interfaces privileged EXEC command to see a list of all interfaces on or configured for
the switch. A report is provided for each interface that the device supports or for the specified interface:
Switch# show interfaces
Vlan1 is up, line protocol is up
Hardware is CPU Interface, address is 0003.fd62.8d40 (bia 0003.fd62.8d40)
Internet address is 172.20.139.142/27
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 2000 bits/sec, 4 packets/sec