|
|
This chapter describes the basic interface configuration for the Catalyst 6000 family switches. This chapter consists of these sections:
Many features are enabled on a per-interface basis. When you enter the interfaces command, you must specify the interface type, slot, and number.
You can identify interfaces by physically checking the slot/interface location on the switch. You can also use the IOS show commands to display information about a specific interface, or all the interfaces, in the switch.
These general instructions apply to all interface configuration processes. Begin interface configuration in global configuration mode.
1. Enter the configure terminal command at the privileged EXEC prompt to enter global configuration mode:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#
2. Once in the global configuration mode, enter the interfaces command. Identify the interface type and the number of the connector or interface card. As in the following example, Fast Ethernet, slot 5, interface 1 is selected:
Router(config)# interfaces fastethernet 5/1 Router(config-if)#
Router# show interfaces fastethernet 5/5
FastEthernet5/5 is up, line protocol is up
Hardware is Cat6K 100Mb Ethernet, address is 0050.f0ac.3058 (bia 0050.f0ac.3059)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:16, output never, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
3362 packets input, 608765 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
2829 packets output, 986824 bytes, 0 underruns
0 output errors, 0 collisions, 3 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
--More--
(Information Deleted)
Router# show hardware Cisco Internetwork Operating System Software IOS (tm) draco-mp Software (draco_mp-JSDBG-M), Version 12.0(6.5)XE1(0.39) INTERI M TEST SOFTWARE Copyright (c) 1986-1999 by cisco Systems, Inc. Compiled Fri 24-Sep-99 02:23 by Image text-base: 0x60020900, data-base: 0x61110000 ROM: System Bootstrap, Version 12.0(3)XE, RELEASE SOFTWARE BOOTFLASH: draco-mp Software (draco_mp-BOOTDBG-M), Version 12.0(5.4)XE1(0.15) IN TERIM TEST SOFTWARE Router uptime is 4 days, 18 hours, 15 minutes System returned to ROM by abort at PC 0x600EB19C System image file is "sup:draco" cisco Cat6k-MSFC (R5000) processor with 57344K/8192K bytes of memory. Processor board ID 3024158973 R5000 CPU at 200Mhz, Implementation 35, Rev 2.1, 512KB L2 Cache Last reset from power-on Bridging software. X.25 software, Version 3.0.0. SuperLAT software (copyright 1990 by Meridian Technology Corp). TN3270 Emulation software. 48 FastEthernet/IEEE 802.3 interface(s) 2 Gigabit Ethernet/IEEE 802.3 interface(s) 123K bytes of non-volatile configuration memory. 4096K bytes of packet SRAM memory. 16384K bytes of Flash internal SIMM (Sector size 256K). Configuration register is 0x0 Router#
In the following example, to begin configuring Fast Ethernet interface 5/5, enter the interface keyword, interface type, and slot number/interface number at the privileged EXEC prompt:
Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface fastethernet 5/5 Router(config-if)#
4. 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 command until you enter another interface command or press Ctrl-Z to get out of interface configuration mode and return to privileged EXEC mode.
5. After you configure an interface, check its status by using the EXEC show commands listed in "Monitoring and Maintaining the Interface" section.
The interface range configuration mode allows you to configure multiple interfaces with the same configuration parameters. Once you enter the interface range configuration mode, all command parameters you enter are attributed to all interfaces within that range until you exit out of the interface range configuration mode.
To configure a range of interfaces with the same configuration, perform this task:
| Command | Purpose |
|---|---|
Router(config)# interface range {vlan vlan_ID - vlan_ID} | {{ethernet | fastethernet | gigabitethernet | macro macro_name} slot/interface - interface} [, {{ethernet | fastethernet | gigabitethernet | macro macro_name} slot/interface - interface}] | Select the range of interfaces to be configured.
|
This example shows how to reenable all Fast Ethernet interfaces 5/1 to 5/5:
Router(config)# interface range fastethernet 5/1 - 5 Router(config-if)# no shutdown Router(config-if)# *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/2, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 3, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 4, changed state to up Router(config-if)#
This example shows how to use a comma to add different interface type strings to the range to reenable all Fast Ethernet interfaces in the range 5/1 to 5/5 and both Gigabit Ethernet interfaces 1/1 and 1/2:
Router(config-if)# interface range fastethernet 5/1 - 5, gigabitethernet 1/1 - 2 Router(config-if)# no shutdown Router(config-if)# *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/2, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/4, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet1/2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 5, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 3, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5/ 4, changed state to up Router(config-if)#
If you enter multiple configuration commands while you are in interface range mode, each command is executed as it is entered. The commands are not batched together and executed after you exit interface range mode. If you exit interface range configuration mode while the commands are being executed, some commands may not be executed on all interfaces in the range. Wait until the command prompt reappears before exiting interface range configuration mode.
You can create an interface range macro to automatically select a range of interfaces for configuration. Before you can use the macro keyword in the interface range macro command string, you must define the macro.
To define an interface range macro, perform this task:
| Command | Purpose |
|---|---|
Router(config)# define interface-range macro_name {vlan vlan_ID - vlan_ID} | {{ethernet | fastethernet | gigabitethernet} slot/interface - interface} [, {{ethernet | fastethernet | gigabitethernet} slot/interface - interface}]
| Define the interface-range macro and save it in NVRAM. |
This example shows how to define an interface-range macro named enet_list to select Fast Ethernet interfaces 5/1 through 5/4:
Router(config)# define interface-range enet_list fastethernet 5/1 - 4
To show the defined interface range macro configuration, perform this task:
| Command | Purpose |
|---|---|
Router# show running-config | Show the defined interface range macro configuration. |
This example shows how to display the defined interface-range macro named enet_list:
Router# show running-config | include define define interface-range enet_list FastEthernet5/1 - 4 Router#
To use an interface-range macro in the interface range command, perform this task:
| Command | Purpose |
|---|---|
Router(config)# interface range macro macro_name | Select the interface range to be configured using the values saved in the interface-range macro called. |
This example shows how to change to the interface configuration mode using the interface-range macro enet_list:
Router(config)# interface range macro enet_list Router(config-if)#
These sections describe optional tasks that you can perform on most interfaces:
These sections describe how to configure the interface speed and duplex mode:
You will usually configure the interface speed and duplex mode parameters to auto and allow the Catalyst 6000 family switch to negotiate the interface speed and duplex mode between interfaces. If you decide to configure the interface speed and duplex commands manually, consider the following:
![]() | Caution Changing the interface speed and duplex mode configuration might shut down and reenable the interface during the reconfiguration. |
To set the port speed for a 10/100-Mbps Ethernet interface, perform this task:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config)# interface fasterthernet slot/interface | Select the interface to be configured. | ||
| Router(config-if)# speed [10 | 100 | auto] | Set the interface speed of the interface. |
This example shows how to set the interface speed to 100 Mbps on the Fast Ethernet interface 5/4:
Router(config)# interface fastethernet 5/4 Router(config-if)# speed 100
To set the duplex mode of an Ethernet or Fast Ethernet interface, perform this task:
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config)# interface fasterthernet slot/interface | Select the interface to be configured. | ||
| Router(config-if)# duplex [auto | full | half] | Set duplex mode of the interface. |
This example shows how to set the interface duplex mode to full on Fast Ethernet interface 5/4:
Router(config)# interface fastethernet 5/4 Router(config-if)# duplex full
To display the interface speed and duplex mode configuration for an interface, perform this task:
| Command | Purpose |
|---|---|
Router# show interfaces [ethernet |fastethernet | gigabitethernet] slot/interface | Display the interface speed and duplex mode configuration. |
This example shows how to display the interface speed and duplex mode of Fast Ethernet interface 5/4:
Router# show interfaces fastethernet 5/4
FastEthernet5/4 is up, line protocol is up
Hardware is Cat6K 100Mb Ethernet, address is 0050.f0ac.3058 (bia 0050.f0ac.3058)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:33, output never, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1238 packets input, 273598 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
1380 packets output, 514382 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Router#
You can add a description about an interface to help you remember its function. The description appears in the output of the following commands: show configuration, show running-config, and show interfaces.
To add a description for an interface, perform this task:
| Command | Purpose |
|---|---|
Router(config-if)# description string | Add a description for an interface. |
This example shows how to add a description on Fast Ethernet interface 5/5:
Router(config)# interface fastethernet 5/5 Router(config-if)# description Channel-group to "Marketing"
The online insertion and removal (OIR) feature supported on the Catalyst 6000 family switches allows you to remove and replace interface processors while the system is online. You can shut down the interface processor before removal and restart it after insertion without causing other software or interfaces to shut down.
You do not need to notify the software that you are going to remove or install an interface processor. When the route processor is notified by the system that an interface processor has been removed or installed, it stops routing and scans the system for a configuration change. All interface processors are initialized, and each interface type is verified against the system configuration; then the system runs diagnostics on the new interface. There is no disruption to normal operation during interface processor insertion or removal.
Only an interface of a type that has been configured previously will be brought online; others require configuration. If a newly installed interface processor does not match the system configuration, the interface is left in an administratively down state until the system operator configures the system with the new interfaces.
Storage of hardware addresses in EEPROM allows interfaces to be replaced online without requiring the system to update switching tables and data structures. Regardless of the types of interfaces installed, the hardware addresses do not change unless you replace the system supervisor engine. If you do replace the supervisor engine, the hardware addresses of all interfaces change to those specified in the address allocator on the new supervisor engine.
You can perform the tasks in the following sections to monitor and maintain the interfaces:
The software contains commands that you can enter at the EXEC prompt to display information about the interface including the version of the software and the hardware, the controller status, and statistics about the interfaces. The following table lists some of the interface monitoring commands. (You can display the full list of show commands by using the show ? command at the EXEC prompt.) These commands are fully described in the Cisco IOS Interface Command Reference publication.
To display information about the interface, perform these tasks:
| Command | Purpose |
|---|---|
Router# show ibc | Display current internal status information for the interfaces. |
Router# show eobc | Display current internal out-of-band controller information for the interfaces. |
Router# show interfaces [type slot/interface] | Display the status and configuration of all or a specific interface. |
Router# show running-config | Display the currently running configuration in RAM. |
Router# show rif | Display the current contents of the routing information field (RIF) cache. |
Router# show protocols [type slot/interface] | Display the global (system-wide) and interface-specific status of any configured protocol. |
Router# show version | Display the hardware configuration, software version, the names and sources of configuration files, and the boot images. |
This example shows how to display the status of Fast Ethernet interface 5/5:
Router# show protocols fastethernet 5/5 FastEthernet5/5 is up, line protocol is up Router#
To clear the interface counters shown with the show interfaces command, perform this task:
| Command | Purpose |
|---|---|
Router# clear counters {type slot/interface} | Clear interface counters. |
This example shows how to clear and reset the counters on Fast Ethernet interface 5/5:
Router# clear counters fastethernet 5/5 Clear "show interface" counters on this interface [confirm] y Router# *Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet5/5 by vty1 (171.69.115.10) Router#
The clear counters command clears all the current interface counters from the interface unless the optional arguments are specified to clear only a specific interface type from a specific slot and interface number.
To clear and reset interfaces, perform this task (under normal circumstances, you do not need to clear the hardware logic on interfaces):
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router# clear interface type number | |||
| Router# clear line [number | console 0 | vty number] | Reset the hardware logic on an asynchronous serial line. |
This example shows how to clear and reset Fast Ethernet interface 5/5:
Router# clear interface fastethernet 5/5 Router#
You can disable an interface. Doing so disables all functions on the specified interface and marks the interface as unavailable on all monitoring command displays. This information is communicated to other network servers through all dynamic routing protocols. The interface will not be mentioned in any routing updates. On serial interfaces, shutting down an interface causes the DTR signal to be dropped.
To shut down an interface and then restart it, perform this task:
This example shows how to shut down Fast Ethernet interface 5/5:
Router(config)# interface fastethernet 5/5 Router(config-if)# shutdown Router(config-if)# *Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet5/5, changed state to a administratively down Router(config-if)#
This example shows how to reenable Fast Ethernet interface 5/5:
Router(config-if)# no shutdown Router(config-if)# *Sep 30 08:36:00: %LINK-3-UPDOWN: Interface FastEthernet5/5, changed state to up Router(config-if)#
To check if an interface is disabled, enter the show interfaces EXEC command. An interface that has been shut down is shown as administratively down in the show interfaces command display.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Jan 3 14:23:35 PST 2000
Copyright 1989-1999©Cisco Systems Inc.