|
|
This chapter describes the basic interface configuration for the Catalyst 2948G-L3 switch router to help you get your switch router up and running. For more information about the Cisco IOS commands used in this chapter, refer to the Cisco IOS Command Reference publication. This chapter includes the following sections:
A switch router's main function is to relay packets from one data link to another. To do that, the characteristics of the interfaces through which the packets are received and sent must be defined. Interface characteristics include, but are not limited to, IP address, address of the port, data encapsulation method, and media type.
Many features are enabled on a per-interface basis. Interface configuration mode contains commands that modify the interface operation, for example, of an Ethernet port. When you issue the interface command, you must specify the interface type and number.
Layer 3 interfaces have both a Media Access Control (MAC) address and an interface port ID. The router keeps track of these designators and uses them to route traffic.
![]() | Tips To find the MAC address for a device, use the show interfaces command. |
The interface port ID designates the physical location of the Layer 3 interface within the switch router. This is the name that you use to identify the interface when configuring it. The system software uses interface port IDs to control activity within the switch router and to display status information. Interface port IDs are not used by other devices in the network; they are specific to the individual switch router and its internal components and software.
The port IDs for the 48 Fast Ethernet interfaces are f1 through f48 and the port IDs for the 2 Gigabit Ethernet interfaces are g49 and g50. You can use Cisco IOS show commands to display information about a specific interface, or all the interfaces, in the switch router.
The following general configuration instructions apply to all interfaces. Before you configure interfaces, be sure to have the interface network (IP or IPX) addresses and the corresponding subnet mask information. If you do not have this information, consult your network administrator.
To configure an interface, follow these steps:
Step 1 Use the configure EXEC command at the privileged EXEC prompt to enter global configuration mode.
2948G-L3> enable 2948G-L3# configure terminal 2948G-L3(config)#
Step 2 From global configuration mode, enter the interface command, followed by the interface type (for example, Fast Ethernet or Gigabit Ethernet) and its interface port ID (see the "Interface Port ID" section).
For example, to configure a Gigabit Ethernet port, use this command:
2948G-L3(config)# interface g49
Step 3 Follow each interface command with the interface configuration commands required for your particular interface.
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, a command that is not an interface configuration command, or you enter Ctrl-Z to return to privileged EXEC mode.
Step 4 Once an interface is configured, you can check its status by using the EXEC show commands.
2948G-L3# show interface g49 Gigabit Ethernet49 is up, line protocol is up Hardware is xpif_port, address is 0050.3e7b.e907 (bia 0050.3e7b.e907) Internet address is 11.0.0.2/8 MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) Full-duplex, 1000Mb/s, GBIC connected, Force link-up ARP type:ARPA, ARP Timeout 04:00:00 Last input 03:27:17, 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 945 packets input, 320796 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 abort 0 watchdog, 927 multicast 0 input packets with dribble condition detected 943 packets output, 319527 bytes, 0 underruns(0/0/0) 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
The Catalyst 2948G-L3 switch router supports 48 Fast Ethernet and 2 Gigabit Ethernet interfaces. This section provides some examples of configurations for both interface types.
Use the following commands to configure an IP address on either a Fast Ethernet interface or a Gigabit Ethernet interface starting in global configuration mode.
| Step | Command | Purpose | ||
|---|---|---|---|---|
| | Enters interface configuration mode to configure either the Gigabit Ethernet interface or the Fast Ethernet interface. | ||
| | Enters the IP address and IP subnet mask to be assigned to the interface. | ||
| | Enables the interface. | ||
| | Returns to global configuration mode. Repeat steps 1 to 3 to configure the other interfaces on the Catalyst 2948G-L3 switch router. | ||
| 2948G-L3(config)# Ctrl-Z | Returns to privileged EXEC mode. | ||
| | Saves configuration changes to NVRAM. |
![]() | Tips Before you configure interfaces, be sure to have the interface network (IP or IPX) addresses and the corresponding subnet mask information. If you do not have this information, consult your network administrator. |
| Step | Command | Purpose | ||
|---|---|---|---|---|
| | Enters interface configuration mode to configure the Fast Ethernet interface. | ||
| | Configures the transmission speed for 10 or 100 Mbps. If you set the speed for auto, you enable autonegotiation on the system---the switch router matches the speed and duplex mode of the partner node. | ||
| | Configures for full or half duplex. | ||
| | Enables the interface. | ||
| | Returns to privileged EXEC mode. | ||
| | Saves your configuration changes to NVRAM. |
| Step | Command | Purpose | ||
|---|---|---|---|---|
| | Enters interface configuration mode to configure the Gigabit Ethernet interface. | ||
| | Sets negotiation mode to auto. The Gigabit Ethernet port attempts to negotiate the link with the partner port. The partner port should have the same configuration. When you set the Gigabit Ethernet interface to no negotiation auto, the port forces the link up no matter what the partner port setting is. | ||
| | Enables the interface. | ||
| | Returns to global configuration mode. Repeat steps 1 to 3 to configure the second Gigabit Ethernet interface. | ||
| 2948G-L3(config)# Ctrl-Z | Returns to privileged EXEC mode. | ||
| | Saves configuration changes to NVRAM. |
The 48 Fast Ethernet and 2 Gigabit Ethernet interfaces can be configured as trunk ports, non-trunking ports, routed ports, or bridged ports. You can configure the Fast Ethernet and the Gigabit Ethernet ports into a bridge group, which is the recommended configuration, or use the ports as routed interfaces.
For additional configuration considerations, see the "About Integrated Routing and Bridging" section.
2948G-L3# show interfaces FastEthernet 1 FastEthernet1 is administratively down, line protocol is down Hardware is epif_port, address is 0050.3e7b.6c07 (bia 0050.3e7b.6c07) MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) Auto-duplex, Auto Speed, 100BaseTX ARP type:ARPA, ARP Timeout 04:00:00 Last input never, 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 0 packets input, 0 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 abort 0 watchdog, 0 multicast 0 input packets with dribble condition detected 0 packets output, 0 bytes, 0 underruns(0/0/0) 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Fri Apr 14 09:49:41 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.