cc/td/doc/product/lan/cat2900
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring the Fast Ethernet Software

Configuring the Fast Ethernet Software

This chapter describes how to configure the Ethernet ports on the supervisor engine module, the 10/100 Fast Ethernet switching module, and the Fast Ethernet 100F switching module using the command line interface.


Note For definitions of all commands discussed in this chapter, refer to the "Command Reference" chapter of the publication Catalyst 2900 Configuration Guide and Command Reference.

Configuration Task List

As the default configuration, all Ethernet ports are enabled. To configure the Ethernet ports, complete the tasks in the following sections:

See the end of this chapter for a single switch configuration example.

Set Port Name

Assign a name to each port. To set a port name, perform the following tasks in privileged mode:

Task Command
Configure a name for a port. Figure 6-1 shows an example of the set port name command. set port name mod_num/port_num [name_string]
Verify that the port name is correct. Figure 6-2 shows a sample display of the show port command. Port names are listed in the Name column. show port mod_num/port_num

Figure 6-1: set port name Command Example Console> (enable) set port name 1/1 Router Connection Port 1/1 name set. Console> (enable) set port name 1/2 Server 1 Port 1/2 name set. Console> (enable)
Figure 6-2:
show port Command Display Example

Console> (enable) show port

Port Name Status Vlan Level Duplex Speed Type

---- -------------------- -------- -------- ------ ------ ----- ---------------

1/1 Router Connection ready 2 high half a-100 100 BASE-TX

1/2 Server 1 ready 1 high half a-100 100 BASE-TX

2/1 ready 10 normal half 10 10 BASE-T

2/2 disabled 10 normal half 10 10 BASE-T

2/3 connect 10 normal half 10 10 BASE-T

2/4 connect 10 normal half 10 10 BASE-T

.

.

.

Port Align-Err FCS-Err Xmit-Err Rcv-Err

---- ---------- ---------- ---------- ----------

1/1 0 0 0 0

1/2 0 0 0 0

2/1 0 14 0 0

2/2 0 0 0 0

2/3 0 0 0 0

2/4 0 0 0 0

.

.

.

Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sens Giants

---- ---------- ---------- ---------- ---------- ---------- ----------

1/1 0 0 0 0 0 1

1/2 0 0 0 0 0 -

2/1 0 0 0 0 0 0

2/2 0 0 0 0 0 0

2/3 0 0 0 0 0 0

2/4 0 0 0 0 0 0

.

.

.

Last-Time-Cleared

--------------------------

Thu Mar 8 1996, 07:58:06

Console> (enable)

Set Port Priority Level

Configure the priority level of each port. When ports request simultaneous access to the switching bus, the Catalyst 2900 uses the port priority level to determine the order in which ports have access to the switching bus. To set the priority level, perform the following tasks in privileged mode:

Task Command
Configure the priority level for each port. Figure 6-3 shows an example of the set port level command. set port level mod_num/port_num normal | high
Verify that the port priority level is correct. Figure 6-2 shows a sample display of the show port command. Port priority levels are listed in the Level column. show port mod_num/port_num

Figure 6-3:
set port level Command Example Console> (enable) set port level 1/1 high Port 1/1 level set to high. Console> (enable) set port level 1/2 high Port 1/2 level set to high.

Set Port Transmission Type

Set the transmission type to full or half duplex for the ports that will be used. To set the transmission type of a port, perform the following tasks in privileged mode:

Task Command
Set the transmission type of a port. Figure 6-4 shows an example of the set port duplex command. set port duplex mod num/port num full | half
Verify that the transmission type has been set correctly. Figure 6-2 shows a sample display of the show port command. The transmission type is listed in the Duplex column. show port mod_num/port_num

Figure 6-4: set port duplex Command Example Console> (enable) set port duplex 2/1 half Port 2/1 set to half-duplex. Console> (enable) set port duplex 2/2 half Port 2/2 set to half-duplex.

Set Virtual LANs (VLANs)

VLANs enable ports on the same or different switches to be grouped so that traffic is confined to members of that group only. This feature restricts broadcast, unicast, and multicast traffic to only ports included in a certain VLAN.

The set vlan command groups ports. The default configuration has all switched Ethernet ports. However, you can enter groups of ports as individual entries; for example, 1/1,2/1,2/2,2/3. You can also use a hyphenated format such as 1/1,2/1-3.

To create a VLAN, perform the following tasks in privileged mode:

Task Command
Define the VLAN and indicate the included ports. Figure 6-5 shows an example of the set vlan command. Figure 6-6 shows a diagram of the established VLANs. In the example in Figure 6-5, VLAN 10, the engineering department, includes module 2, Ethernet ports 1 through 4. VLAN 20, the accounting department, includes module 2, Ethernet ports 5 through 12. The accounting and engineering departments are totally isolated from each other in this configuration. set vlan vlan_num mod/ports
Verify that the VLAN configuration is correct. Figure 6-7 shows a sample display of the show vlan command. show vlan

Figure 6-5: set vlan Command Example system1> (enable) set vlan 10 2/1-4 VLAN 10 modified. VLAN 1 modified. VLAN Mod/Ports 10 2/1-4 system1> (enable) set vlan 20 2/5-12 VLAN 20 modified. VLAN 1 modified. VLAN Mod/Ports 20 2/5-12
Figure 6-6:
VLAN Configuration




Figure 6-7:
show vlan Command Example system1> (enable) show vlan VLAN Mod/Ports --------------------------------------------------------------------- 1 1/1-2 10 2/1-4 20 2/5-12 system1> (enable)

Set Trunks

Use the set trunk command to configure trunks on ports. To establish a trunk, the port on each Catalyst 2900 must be configured as a trunk port. To establish trunks, perform the following tasks in privileged mode:

Task Command
Establish trunks on specific ports. Figure 6-8 shows an example of the set trunk command. Port 1 on module 1 is configured as a trunk. set trunk mod_num/port_num vlans...
Verify that the trunk configuration is correct. Figure 6-9 shows a sample display of the show trunk command. show trunk

Figure 6-8: set trunk Command Example Console> (enable) set trunk 1/1 10,20,30 Trunk Port 1/1 created. Port VLANs allowed 1/1 10,20,30
Figure 6-9:
show trunk Command Example Console> show trunk Port VLANs allowed --------------------------------------------------------------------- 1/1 10,20,30 Console>

Catalyst 2900 Configuration Example

A Catalyst 2900 configuration example is shown in Figure 6-10. The configuration shows a network with the following elements:

Although some Fast Ethernet connections are half-duplex, each port on each module can be independently configured for either full- or half-duplex operation. All ports are in VLAN 1 as a default setting, and no VLAN customization is necessary.


Figure 6-10: Single Catalyst 2900 Configuration



Port Name Examples

The following example illustrates how to establish the port name for the Catalyst 2900 provided in the single switch configuration example and shown in Figure 6-10:

system1 (enable) set port name 1/1 Router Connection Port 1/1 name set. system1 (enable) set port name 1/2 Server 1 Port 1/2 name set. system1 (enable) set port name 2/1 PC 1 Port 2/1 name set. system1 (enable) set port name 2/2 PC 2 Port 2/2 name set. . . .

Port Priority Level Example

The following example illustrates how to establish the port priority level for the Catalyst 2900 in the configuration example shown in Figure 6-10:

system1 (enable) set port level 1/1 high Port 1/1 level set to high. system1 (enable) set port level 1/2 high Port 1/2 level set to high. system1 (enable) set port level 2/1 high Port 2/1 level set to high. system1 (enable) set port level 2/2 high Port 2/2 level set to high. system1 (enable) set port level 2/3 high Port 2/3 level set to high. . . . system1 (enable) set port level 2/12 high Port 2/12 level set to high.

Port Transmission Type Example

The following example illustrates how to set the port transmission type (half- or full-duplex) for the Catalyst 2900 provided in the configuration example shown in Figure 6-10:

system1 (enable) set port duplex 1/1 full Port 1/1 set to full-duplex. system1 (enable) set port duplex 1/2 full Port 1/2 set to half-duplex. system1 (enable) set port duplex 2/1 half Port 2/1 set to half-duplex. system1 (enable) set port duplex 2/2 half Port 2/2 set to half-duplex. system1 (enable) set port duplex 2/3 half Port 2/3 set to half-duplex. . . . system1 (enable) set port duplex 2/12 half Port 2/12 set to half-duplex.

Multiple Switch VLAN Configuration Example

VLAN groups can be set up across multiple Catalyst 2900s if the switches have any two ports of the same VLAN connected, as shown in the example in Figure 6-11. You need to configure the VLANs individually for both switches using the set vlan command.

The VLANs for the Catalyst 2900 on the first floor were configured as follows:

system1> (enable) set vlan 10 2/1-4 VLAN 10 modified. VLAN 1 modified. VLAN Mod/Ports 10 2/1-4 system1> (enable) set vlan 20 2/5-12 VLAN 20 modified. VLAN 1 modified. VLAN Mod/Ports 20 2/5-12


Figure 6-11: Multiple Catalyst 2900 VLAN Configuration



VLANs for the Catalyst 2900 on the second floor were configured as follows:

system2> (enable) set vlan 10 2/1-7 VLAN 10 modified. VLAN 1 modified. VLAN Mod/Ports 10 2/1-7 system2> (enable) set vlan 30 2/8-12 VLAN 30 modified. VLAN 1 modified. VLAN Mod/Ports 30 2/8-12

hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.