cc/td/doc/product/l3sw/2948g-l3/rel_12_0
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring Interfaces

Configuring Interfaces

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:


Note You are at Step 3 in the suggested process for configuring the Catalyst 2948G-L3 switch router (see Table 2-1). You should have already initially configured your switch router before proceeding with configuring interfaces.

Overview of Interface Configuration

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.

The following general guidelines apply to all physical and virtual interface configuration processes.

A subinterface is a mechanism that allows a single physical interface to support multiple logical interfaces or networks---that is, several logical interfaces or networks can be associated with a single hardware interface. Configuring multiple virtual interfaces, or subinterfaces, on a single physical interface allows greater flexibility and connectivity on the network.

About Interface Addresses and Names

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.

Media Access Control Address

The MAC address, also referred to as the hardware address, is required for every port or device that connects to a network. Other devices in the network use MAC addresses to locate specific ports in the network and to create and update routing tables and data structures.

Tips To find the MAC address for a device, use the show interfaces command.

Interface Port ID

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.

General Instructions for Configuring Interfaces

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

About Layer 3 Switching Interfaces

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

1 . 

2948G-L3(config)# interface type number

2948G-L3(config-if)#

Enters interface configuration mode to configure either the Gigabit Ethernet interface or the Fast Ethernet interface.

2 . 

2948G-L3(config-if)# ip address ip-address subnet-mask

Enters the IP address and IP subnet mask to be assigned to the interface.

3 . 

2948G-L3(config-if)# no shutdown

Enables the interface.

4 . 

2948G-L3(config-if)# exit

2948G-L3(config)#

Returns to global configuration mode. Repeat steps 1 to 3 to configure the other interfaces on the Catalyst 2948G-L3 switch router.

5 . 

2948G-L3(config)# Ctrl-Z

2948G-L3#

Returns to privileged EXEC mode.

6 . 

2948G-L3# copy running-config startup-config

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.

Configuring the Fast Ethernet Interfaces

Use the following commands to configure autonegotiation on a Fast Ethernet interface starting in global configuration mode.


Note The default setting for the negotiation mode is auto for the Fast Ethernet and Gigabit Ethernet interfaces.

Step Command Purpose

1 . 

2948G-L3(config)# interface f1

2948G-L3(config-if)#

Enters interface configuration mode to configure the Fast Ethernet interface.

2 . 

2948G-L3(config-if)# [no] speed [10 | 100 | auto]

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.

3 . 

2948G-L3(config-if)# [no] duplex [full | half | auto]

Configures for full or half duplex.

4 . 

2948G-L3(config-if)# no shutdown

Enables the interface.

5 . 

2948G-L3(config-if)# Ctrl-Z

2948G-L3#

Returns to privileged EXEC mode.

6 . 

2948G-L3# copy running-config startup-config

Saves your configuration changes to NVRAM.

Configuring the Gigabit Ethernet Interfaces

Use the following commands to configure autonegotiation on a Gigabit Ethernet interface starting in global configuration mode.


Note The default setting for the negotiation mode is auto for the Gigabit Ethernet and Fast Ethernet interfaces. The Gigabit Ethernet port always operates at 1000 Mbps in full duplex mode.

Step Command Purpose

1 . 

2948G-L3(config)# interface g49

2948G-L3(config-if)#

Enters interface configuration mode to configure the Gigabit Ethernet interface.

2 . 

2948G-L3(config-if)# [no] negotiation auto

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.

3 . 

2948G-L3(config-if)# no shutdown

Enables the interface.

4 . 

2948G-L3(config-if)# exit

2948G-L3(config)#

Returns to global configuration mode. Repeat steps 1 to 3 to configure the second Gigabit Ethernet interface.

5 . 

2948G-L3(config)# Ctrl-Z

2948G-L3#

Returns to privileged EXEC mode.

6 . 

2948G-L3# copy running-config startup-config

Saves configuration changes to NVRAM.

Additional Configurations on the Fast Ethernet and Gigabit Ethernet Interfaces

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.

Monitoring Operations on the Fast Ethernet and Gigabit Ethernet Interfaces

To verify the settings after you have configured Fast Ethernet or Gigabit Ethernet interfaces, use the show interface command. The following output from the show interface command displays the interface's status and global parameters and includes port speed and duplex operation.

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
 

hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Apr 14 09:49:41 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.