![]() |
Catalyst 2900 Series XL Command Reference, Release 11.2(8)SA4
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Using the Command-Line Interface
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsUsing the Command-Line InterfaceConfiguration Tasks
Type of Memory Platforms Assigning IP Information to the Switch Setting Port Features Blocking Unicast and Multicast Flooding
Managing the Switch Address TableEntering the Speed and Duplex Settings for a Port Enabling Broadcast-Storm Control Defining a Network Port Enabling Port Security Creating Fast EtherChannel or Gigabit EtherChannel Port Groups Displaying the Contents of the Address Table
Entering Spanning-Tree Protocol ParametersAdding Secure Addresses Adding Static Addresses Defining the Aging Time Enabling STP Port Fast Enabling CGMP Fast Leave Configuring VLANs Using the Command-Line InterfaceThe Catalyst 2900 series XL switches, hereafter referred to as the Catalyst 2900 series switches, are supported by Cisco IOS software. The current release is Cisco IOS Release 11.2(8)SA4. This chapter describes how to use the switch command-line interface (CLI) to configure those features that have been added for the switch. For a complete description of the commands that support these features, see "Cisco IOS Commands." For more information on Cisco IOS Release 11.2(8), refer to the Cisco IOS Release 11.2 Command Summary. The switches are preconfigured and begin forwarding packets as soon as they are attached to compatible devices. All ports belong by default to virtual LAN (VLAN) 1. Access to the switch itself is also through VLAN 1. For management purposes, only devices connected to ports assigned to VLAN 1 can communicate with the switch. This applies to Telnet, web-based management, and SNMP. Note This manual describes commands used in the standard and Enterprise Edition Software packages. Commands and features that are available only in the Enterprise Edition Software are identified; otherwise, the command and feature is supported in both the standard and Enterprise Edition Software. Configuration TasksThis chapter describes how to complete the following configuration tasks:
Using the Enterprise Edition Software, you can complete the following configuration tasks:
Type of MemoryThe switch Flash memory stores the Cisco IOS software image, the startup configuration file, and helper files. PlatformsCisco IOS Release 11.2(8)SA4-A and SA4-EN run on a variety of Catalyst 2900 series switches and modules. For a complete list, see the Release Notes for the Catalyst 2900 Series XL Cisco IOS Release 11.2(8)SA4. Assigning IP Information to the SwitchIf no IP information has been entered for the switch, the setup program prompts you for the IP address, subnet mask, and default gateway the first time you access the CLI. You can enter or change this information at any time through the CLI. For management purposes, the switch belongs to VLAN 1, and the switch IP address and subnet mask are associated with VLAN 1. Beginning in privileged EXEC mode, follow these steps to enter the IP information:
Setting Port FeaturesThe port commands control switch features that manage packet flooding, port security, EtherChannel port groups, and other switch activities. This section describes how to use the port commands to complete the following tasks:
Blocking Unicast and Multicast FloodingNote For information on configuration restrictions and usage guidelines, see the "port block" section. Beginning in privileged EXEC mode, follow these steps to disable the flooding of multicast and unicast packets to a port:
Entering the Speed and Duplex Settings for a PortAutonegotiation is still enabled when one of the parameters has been manually set. The mix of autonegotiation and explicitly set parameters can produce unexpected results that affect performance. To maximize the performance of your switch, follow one of these guidelines when setting the speed and duplex parameters:
Beginning in privileged EXEC mode, follow these steps to set the speed and duplex parameters on a port:
Enabling Broadcast-Storm ControlBroadcast-storm control blocks the forwarding of packets created by broadcast storms, the bursts of broadcast traffic that ports can generate. When you enable broadcast-storm control on a port, two threshold parameters define the beginning and the end of a broadcast storm. The rising parameter determines when the forwarding of broadcast packets from the port is blocked. The falling parameter determines when normal forwarding resumes. You can set the port to generate a trap when these thresholds are crossed, and you can disable the port during a broadcast storm. Beginning in privileged EXEC mode, follow these steps to enable broadcast-storm control:
Defining a Network PortEnabling a network port can reduce flooded traffic on your network. The network port receives all traffic with unknown destination addresses instead of the switch flooding them to all ports in the same VLAN. Space is then conserved in the dynamic address table because a network port does not learn source addresses from received packets. Note For information on configuration restrictions and usage guidelines, see the "port network" section. Beginning in privileged EXEC mode, complete these tasks to define a port as the network port:
Enabling Port SecuritySecured ports restrict the use of a port to a user-defined group of stations. When you assign secure addresses to a secure port, the switch does not forward any packets with source addresses outside the group. A secure address is associated with one port per VLAN. You can enter these addresses, or the switch can learn them. See "Adding Secure Addresses" section for more information. When you secure a port, you can also define the number of addresses that the switch can learn. The switch does not learn addresses on this port after it has reached the number you enter. Note For information on configuration restrictions and usage guidelines, see the "port security" section. Beginning in privileged EXEC mode, follow these steps to enable security on a port:
Creating Fast EtherChannel or Gigabit EtherChannel Port GroupsFast EtherChannel and Gigabit EtherChannel port groups are high-speed links. The switch considers the group to be a single port, and protocols such as STP enable and disable the group as if it were a single port. All ports in the group have the same VLAN configuration. You can create a port group that forwards based on the source or destination address of the received packet. Source-based forwarding groups can have up to eight ports. Destination-based forwarding groups can have any number of ports. For more information on the difference between these two methods, see the Catalyst 2900 Series XL Installation and Configuration Guide. Note For information on configuration restrictions and usage guidelines, see the "port group" section. Beginning in privileged EXEC mode, complete these tasks to create a two-port group:
Managing the Switch Address TableThe switch uses the MAC address tables to forward traffic between ports. These MAC tables include dynamic, secure, and static addresses. The address tables list the destination MAC address and the associated VLAN ID, module, and port number associated with the address. Each switch maintains an address table of ports that belong to the VLAN and their associated addresses. An address can be learned in more than one VLAN, and a dynamic address learned in one VLAN can be entered as a secure address in another VLAN. An address that is learned in one VLAN is unknown in another VLAN until it is entered or learned. You can also enter addresses and their ports and VLANs in the address table. The switch supports three kinds of MAC addresses:
This section describes how to use the CLI to complete the following address-table tasks:
Displaying the Contents of the Address TableTo display the contents of the address table, enter the show mac-address-table command in privileged EXEC mode: switch# show mac-address-table Dynamic Addresses Count: 45 Secure Addresses (User-defined) Count: 1 Static Addresses (User-defined) Count: 0 System Self Addresses Count: 37 Total MAC addresses: 83 Non-static Address Table: Destination Address Address Type VLAN Destination Port ------------------- ------------ ---- -------------------- 0000.0c07.ac01 Dynamic 1 FastEthernet0/16 0000.0c07.ac01 Dynamic 2 FastEthernet0/16 0000.0c07.ac01 Dynamic 3 FastEthernet0/16 0010.0b3f.ac80 Dynamic 1 FastEthernet0/5 0010.0b3f.ac85 Dynamic 1 FastEthernet0/5 0010.0de1.c9c0 Dynamic 1 FastEthernet0/3 0010.0de1.c9c3 Dynamic 1 FastEthernet0/3 0020.afd0.ea97 Dynamic 1 FastEthernet0/16 Adding Secure AddressesA secure address is forwarded to one port per VLAN. Secure addresses do not age and can be either manually entered into the address table or learned. You can enter a secure port address even when the port does not yet belong to the VLAN. When the port is later assigned to the VLAN, packets destined for that address are forwarded to the port. Note For information on configuration restrictions and usage guidelines, see the "mac-address-table secure" section. Beginning in privileged EXEC mode, follow these steps to enter a secure address:
Adding Static AddressesNote If the in-port and out-port-list parameters are all access ports in a single VLAN, you can omit the VLAN identification. In this case, the switch recognizes the VLAN as that associated with the in-port VLAN. Otherwise, you must supply the VLAN ID. Note For information on configuration restrictions and usage guidelines, see the "mac-address-table static" section. Beginning in privileged EXEC mode, follow these steps to enter a static address in the address table:
Defining the Aging TimeThe address table retains dynamic addresses for a configurable amount of time (the aging time). This value is valid for all dynamic addresses in all VLANs, and the default is 300 seconds. Beginning in privileged EXEC mode, complete the following tasks to define the aging time for the address table.
Entering Spanning-Tree Protocol ParametersThe following parameters are entered in global configuration mode per VLAN:
The following parameters are entered on a per-port, per-VLAN basis in interface configuration mode:
Enabling STP Port Fast
Note For information on configuration restrictions and usage guidelines, see the "spanning-tree portfast" section. Disable Port Fast with the no version of this command. Beginning in privileged EXEC mode, follow these steps to enable Port Fast option:
Enabling CGMP Fast LeaveCGMP reduces flooding by limiting the forwarding of IP multicast and broadcast packets. The Fast Leave option reduces the amount of time required for CGMP to remove groups that are no longer active. Beginning in privileged EXEC mode, complete these tasks to enable CGMP Fast Leave option:
Configuring VLANsA VLAN is an administratively defined broadcast domain. Stations can receive packets sent by other stations in the same VLAN. A VLAN enhances performance by limiting traffic; it allows the transmission of traffic among stations that belong to it and blocks traffic from stations in other VLANs. The Catalyst 2900 series switch locally supports up to 64 active VLANs with IDs from 1 to 1001. Table 1-1 shows the VLAN features supported in this IOS software release.
In the standard edition software, all ports are static-access ports and are assigned to VLAN 1 by default. Static-access ports can belong to only one VLAN; multi-VLAN ports can belong to more than one VLAN. You use the switchport mode, switchport access, and switchport multi commands to assign ports to VLANs. These VLANs exist without the use of the VTP database. Using Enterprise Edition Software, you can assign ports as static-access, multi-VLAN, dynamic-access, or trunks. A dynamic-access port can belong only to one VLAN at a time. A trunk port is by default a member of every VLAN known to VTP and carries the traffic of multiple VLANs. Unlike in the standard edition software, you should use the vlan command to create a new VLAN (except for the default VLANs 1 and 1002 to 1005) in the VTP database. If you use the switchport command to add a static-access or multi-VLAN port to a VLAN, the new VLAN is automatically added to the database. However, trunk ports are not automatically added to the database using the switchport command. For a dynamic-access port, you must configure a VLAN Membership Policy Server (VMPS) on another switch, such as a Catalyst 5000, to hold a database of MAC address-to-VLAN mappings. You must also use vmps commands to locally configure the VMPS server address. When the Catalyst 2900 series switch receives the first packet from a new host on its dynamic-access port, the switch uses the VLAN Query Protocol (VQP) to send the source MAC address to the VMPS. The VMPS provides the VLAN name to which this port must be assigned. The VLAN name must exist in the local VTP database before the dynamic-access port can be assigned to the VLAN. Trunk ports become a member of a VLAN if the VLAN is in both the allowed list and in the VTP database. The allowed VLAN list contains the VLAN IDs that receive and transmit traffic on the trunk. By default, all possible VLANs (VLAN IDs 1-1005) are allowed in the list, but the trunk port can only transmit and receive packets on 64 of these VLANs at once. You can configure the allowed VLAN list for more control over VLAN membership of a trunk port. This section describes how to use the CLI to complete the following VLAN tasks:
Assigning Ports for Static-Access VLAN MembershipAll ports are static-access ports. A static-access port belongs to VLAN 1 by default. Beginning in privileged EXEC mode, follow these steps to assign a port for static-access VLAN membership:
Assigning Ports for Multi-VLAN MembershipA multi-VLAN port belongs to more than one VLAN. The switch does not encapsulate packets on a multi-VLAN port. Note A multi-VLAN port and trunk port cannot coexist on the same switch.
Note For information on configuration restrictions and usage guidelines, see the "switchport multi" section. Beginning in privileged EXEC mode, follow these steps to assign ports for multi-VLAN membership:
Configuring VLAN Trunk ProtocolVTP is a Layer-2 messaging protocol that maintains VLAN configuration consistency throughout the network. VTP manages the addition, deletion, and modification of VLANs network-wide by allowing each device to send advertisements on its trunk ports. These advertisements include the VTP management domain of the device, its configuration revision number, the VLANs it received advertisements about, and certain VLAN parameters. By receiving these advertisements, all devices in the same management domain learn about new VLANs now configured in the transmitting device. These advertisements automatically communicate the changes you make to all the other switches in the network. VTP minimizes configuration inconsistencies that can arise when changes are made. These inconsistencies can result in security violations because VLANs cross-connect when duplicate names are used and internally disconnect when VLANs are incorrectly mapped between one LAN type and another. Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Beginning in privileged EXEC mode, follow these steps to configure VTP:
Adding VLANs to the DatabaseThe VLAN database includes VLAN 1 and 1002 through 1005 by default. You can add VLAN configurations to the database by entering the VLAN database configuration mode. Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Beginning in privileged EXEC mode, follow these steps to add Ethernet VLANs to the database:
Modifying VLANs in the DatabaseYou can modify VLAN characteristics in the database. Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Beginning in privileged EXEC mode, follow these steps to modify an existing Ethernet VLAN in the database:
Deleting VLANs from the DatabaseYou can remove VLANs from the database. However, you cannot delete VLAN 1 or 1002 to 1005. Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Beginning in privileged EXEC mode, follow these steps to remove an Ethernet VLAN from the database:
Configuring a VLAN TrunkA trunk is a point-to-point link between two switches or between a switch and a router. Trunks carry the traffic of multiple VLANs and allow you to extend VLANs from one switch to another. On a trunk port, the switch encapsulates all packets to identify (or tag) the VLAN to which the traffic belongs. By default, a Catalyst 2900 series trunk port is a member of all active Ethernet VLANs up to 64 VLANs. You can further control the VLAN membership of a trunk port by modifying the allowed list to restrict the traffic a trunk carries. This list of allowed VLANs does not affect any port but the trunk port associated with it. Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Note Trunk ports and multi-VLAN ports cannot coexist on the same switch. For information on configuration restrictions and usage guidelines, see the"switchport mode" section and the "switchport trunk encapsulation" section. Beginning in privileged EXEC mode, follow these steps to configure a VLAN trunk:
Assigning Ports for Dynamic VLAN MembershipBy assigning ports to dynamic VLAN membership, you can move a connection from a port on one switch to a port on another switch in the network without reconfiguring the port. Before configuring dynamic-access ports, you must configure a VLAN Membership Policy Server (VMPS), such as the Catalyst 5000 switch, so that it is active and accessible by the Catalyst 2900 series switches. A dynamic-access port can only belong to only one VLAN at a time.
Note This feature is available only in the Enterprise Edition Software. For more information, see the Catalyst 2900 Series XL Enterprise Edition Software Configuration Guide. Note For information on configuration restrictions and usage guidelines, see the "switchport access" section. Beginning in privileged EXEC mode, follow these steps to configure dynamic VLAN membership:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|