|
|
Table Of Contents
Basic Fast Ethernet, Gigabit Ethernet, and POS Interface Configuration
Configuring the Fast Ethernet Interfaces (ML100T-12)
Configuring the Gigabit Ethernet Interface (ML1000-2)
Configuring the POS Interfaces (ML100T-12 and ML1000-2)
Monitoring Operations on the Fast Ethernet and Gigabit Ethernet Interfaces
Configuring Interfaces
This chapter describes basic interface configuration for the ML-Series card to help you get your ML-Series card up and running. Advanced POS interface configuration is covered in Chapter 5, "Configuring POS." For more information about the Cisco IOS commands used in this chapter, refer to the Cisco IOS Command Reference publication.
This chapter contains the following major sections:
•
General Interface Guidelines
•
Basic Interface Configuration
•
Basic Fast Ethernet, Gigabit Ethernet, and POS Interface Configuration
•
Monitoring Operations on the Fast Ethernet and Gigabit Ethernet Interfaces
Note
Complete the initial configuration of your ML-Series card before proceeding with configuring interfaces.
General Interface Guidelines
The main function of the ML-Series card is to relay packets from one data link to another. Consequently, you must configure the characteristics of the interfaces, which receive and send packets. 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 enter the interface command, you must specify the interface type and number.
The following general guidelines apply to all physical and virtual interface configuration processes:
•
All interfaces have a name that is composed of an interface type (word) and a Port ID (number). For example, FastEthernet 2.
•
Configure each interface with a bridge-group or IP address and IP subnet mask.
•
VLANs are supported through the use of subinterfaces. The subinterface is a logical interface configured separately from the associated physical interface.
•
Each physical interface, including the internal packet-over-SONET/SDH (POS) interfaces, has an assigned MAC address.
MAC Addresses
Every port or device that connects to an Ethernet network needs a MAC address. 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.
To find MAC addresses for a device, use the show interfaces command, as follows:
Router# sh interfaces fastEthernet 0FastEthernet0 is up, line protocol is upHardware is epif_port, address is 0005.9a39.6634 (bia 0005.9a39.6634)MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Full-duplex, Auto Speed, 100BaseTXARP type: ARPA, ARP Timeout 04:00:00Last input 00:00:01, output 00:00:18, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue :0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec11 packets input, 704 bytesReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog, 11 multicast0 input packets with dribble condition detected3 packets output, 1056 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped outInterface Port ID
The interface port ID designates the physical location of the interface within the ML-Series card. It is the name that you use to identify the interface you are configuring. The system software uses interface port IDs to control activity within the ML-Series card and to display status information. Interface port IDs are not used by other devices in the network; they are specific to the individual ML-Series card and its internal components and software.
The ML100T-12 port IDs for the 12 Fast Ethernet interfaces are Fast Ethernet 0 through 11. The ML1000-2 port IDs for the two Gigabit Ethernet interfaces are Gigabit Ethernet 0 and 1. Both ML-Series cards feature two POS ports, and the ML-Series port IDs for the two POS interfaces are POS 0 and 1. You can use user-defined abbreviations such as f0 through f11 to configure the 12 Fast Ethernet interfaces, gi0 or gi1 to configure the two Gigabit Ethernet interfaces, and POS0 and POS1 to configure the two POS ports.
You can use Cisco IOS show commands to display information about any or all the interfaces of the ML-Series card.
CautionDo not use the g0 or g1 for a Gigabit Ethernet user-defined abbreviation. This creates an unsupported group asynchronous interface.
Basic Interface Configuration
The following general configuration instructions apply to all interfaces. Before you configure interfaces, develop a plan for a bridge or routed network.
To configure an interface, do the following:
Step 1
Enter the configure EXEC command at the privileged EXEC prompt to enter global configuration mode.
Router> enablePassword:Router# configure terminalRouter(config)#Step 2
Enter the interface command, followed by the interface type (for example, fastethernet, gigabitethernet, or pos), and its interface port ID (see the "Interface Port ID" section).
For example, to configure a Gigabit Ethernet port, enter this command:
Router(config)#interface gigabitethernet numberStep 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
ML-Series card collects and applies commands to the interface command until you enter another interface command or a command that is not an interface configuration command. You can also enter end to return to privileged EXEC mode.Step 4
Check the status of the configured interface by entering the EXEC show interface command.
Router# sh interface fastEthernet 0FastEthernet0 is up, line protocol is upHardware is epif_port, address is 0005.9a39.6634 (bia 0005.9a39.6634)MTU 1500 bytes, BW 100000 Bit, DLY 100 use,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Full-duplex, Auto Speed, 100BaseTXARP type: ARPA, ARP Timeout 04:00:00Last input 00:00:01, output 00:00:18, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue :0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec11 packets input, 704 bytesReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog, 11 multicast0 input packets with dribble condition detected3 packets output, 1056 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped out
Basic Fast Ethernet, Gigabit Ethernet, and POS Interface Configuration
ML-Series cards support Fast Ethernet, Gigabit Ethernet, and POS interfaces. This section provides some examples of configurations for all interface types.
To configure an IP address or bridge-group number on a Fast Ethernet, Gigabit Ethernet, or POS interface, perform the following procedure, beginning in global configuration mode:
Configuring the Fast Ethernet Interfaces (ML100T-12)
To configure the IP address or bridge-group number, autonegotiation, and flow control on a Fast Ethernet interface, perform the following procedure, beginning in global configuration mode:
Example 4-1 shows how to do the initial configuration of a Fast Ethernet interface with an IP address, autonegotiated speed, and autonegotiated duplex.
Example 4-1 Initial Configuration of a Fast Ethernet Interface
Router(config)# interface fastethernet 1Router(config-if)# ip address 10.1.2.4 255.0.0.0Router(config-if)# speed autoRouter(config-if)# duplex autoRouter(config-if)# no shutdownRouter(config-if)# endRouter# copy running-config startup-configConfiguring the Gigabit Ethernet Interface (ML1000-2)
To configure IP address or bridge-group number, autonegotiation, and flow control on a Gigabit Ethernet interface, perform the following procedure, beginning 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.
Example 4-2 shows how to do an initial configuration of a Gigabit Ethernet interface with autonegotiation and an IP address.
Example 4-2 Initial Configuration of a Gigabit Ethernet Interface
Router(config)# interface gigabitethernet 0Router(config-if)# ip address 10.1.2.3 255.0.0.0Router(config-if)# negotiation autoRouter(config-if)# no shutdownRouter(config-if)# endRouter# copy running-config startup-configConfiguring the POS Interfaces (ML100T-12 and ML1000-2)
Encapsulation changes on POS ports are allowed only when the interface is in a manual shutdown (ADMIN_DOWN). For advanced POS interface configuration, see Chapter 5, "Configuring POS."
To configure the IP address, bridge group, or encapsulation for the POS interface, perform the following procedure, beginning in global configuration mode:
Monitoring Operations on the Fast Ethernet and Gigabit Ethernet Interfaces
To verify the settings after you have configured the interfaces, enter the show interface command. For additional information on monitoring the operations on POS interfaces, see the "Configuring POS" chapter.
Example 4-3 shows the output from the show interface command, which displays the status of the interface including port speed and duplex operation.
Example 4-3 show interface Command Output
Router# show interface fastEthernet 0FastEthernet1 is administratively down, line protocol is downHardware is epif_port, address is 000d.bd5c.4c85 (bia 000d.bd5c.4c85)MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Auto-duplex, Auto Speed, 100BaseTXARP type: ARPA, ARP Timeout 04:00:00Last input never, output never, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytesReceived 0 broadcasts (0 IP multicast)0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog, 0 multicast0 input packets with dribble condition detected0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier0 output buffer failures, 0 output buffers swapped outEnter the show controller command to display information about the Fast Ethernet controller chip.
Example 4-4 shows the output from the show controller command, which shows statistics, including information about initialization block information.
Example 4-4 show controller Command Output
Router# show controller fastEthernet 0IF Name: FastEthernet0Port Status DOWNSend Flow Control : DisabledReceive Flow Control : EnabledMAC registersCMCR : 0x0000042D (Tx Enabled, Rx Disabled)CMPR : 0x150B0A80 (Long Frame Disabled)FCR : 0x0000A00B (Rx Pause detection Enabled)MII registers:Control Register (0x0): 0x4000 (Auto negotiation disabled)Status Register (0x1): 0x7809 (Link status Down)PHY Identification Register 1 (0x2): 0x40PHY Identification Register 2 (0x3): 0x61D4Auto Neg. Advertisement Reg (0x4): 0x1E1 (Speed 100, Duplex Full)Auto Neg. Partner Ability Reg (0x5): 0x0 (Speed 10, Duplex Half)Auto Neg. Expansion Register (0x6): 0x4100Base-X Aux Control Reg (0x10): 0x2000100Base-X Aux Status Register(0x11): 0x0100Base-X Rcv Error Counter (0x12): 0x0100Base-X False Carr. Counter(0x13): 0x0Enter the show run interface [type number] command to display information about the configuration of the Fast Ethernet interface. The command is useful when there are multiple interfaces and you want to look at the configuration of a specific interface.
Example 4-5 shows output from the show run interface [type number] command, which includes information about the IP or lack of IP address and the state of the interface.
Example 4-5 show run interface Command Output
daytona# show run interface FastEthernet 1Building configuration...Current configuration : 56 bytes!interface FastEthernet1no ip addressshutdownend
Posted: Tue Nov 27 08:24:44 PST 2007
All contents are Copyright © 1992--2007 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.