DefaultThe default is auto. Command ModeInterface configuration Usage GuidelinesCertain interfaces can be configured to be either full duplex or half duplex. Applicability of this command depends on the device to which the switch is attached. All fixed ports can be configured for either full or half duplex. Setting the fixed ports to auto will have the same effect as specifying half if the attached device does not autonegotiate the duplex parameter. Note See the Catalyst 2900 Series XL Installation and Configuration Guide for guidelines on setting the switch speed and duplex parameters. ExampleThe following example shows how to set port 1 on module 2 to full duplex: Related Commandsspeed ip addressTo set a primary or secondary IP address for an interface, use the ip address interface configuration command. To remove an IP address or disable IP processing, use the no form of this command. Syntax Description
DefaultNo IP address is defined for the interface. Command ModeInterface configuration Usage GuidelinesAn interface can have one primary IP address. ExampleThe following shows how to configure the IP address for the switch on a subnetted class B network: mac-address-table aging-timeUse the mac-address-table aging-time configuration command to set the length of time that a dynamic entry can remain in the MAC address table, from the time the entry was used or last updated. Use the no form of this command to return to the default aging-time interval. Syntax Description
DefaultThe default is 300 seconds. Command ModeConfiguration Usage GuidelinesIf hosts do not transmit continuously, increase the aging time to record the dynamic entries for a longer time and thus reduce the possibility of flooding when the hosts transmit again. ExampleThe following example sets the aging time to 200 seconds: Related Commandsclear mac-address-table secure mac-address-table dynamicUse the mac-address-table dynamic configuration command to add entries to the MAC address table that are subject to aging. Use the no form of this command to remove entries from the MAC address table. Syntax Description
Command ModeConfiguration ExampleThe following example shows how to add a dynamic address to the address table: Related Commandsclear mac-address-table secure mac-address-table secureUse the mac-address-table secure configuration command to add entries to the MAC address table that are known to be secure addresses. Use the no form of this command to remove entries from the MAC address table. Syntax Description
Command ModeConfiguration Usage GuidelinesSecure addresses can only be assigned to one port at a time. Therefore, if a secure address table entry for the specified hw-addr already exists on another port, it is removed from that port and assigned to the specified interface. ExampleThe following example shows how to add a secure MAC address to the first port of the system: Related Commandsmac-address-table aging-time mac-address-table staticUse the mac-address-table static configuration command to add static entries to the MAC address table. Use the no form of this command to remove static entries from the MAC address table. Syntax Description
Command ModeConfiguration Usage GuidelinesStatic addresses are not assigned to a port, but instead to the system. Each static address has an associated forwarding table that contains one entry for each input port in the system. This allows the following algorithm to be used: when a packet is received on the in-port, it is forwarded to each port in the out-port-list. Different input ports can have different output-port lists for each static address. Adding a static address that is already defined as a static address only modifies that port map (out-port-list) for the port specified in the in-port. ExampleThe following example adds a static address with port 1 as an input port and port 2 and port 8 as output ports: Related Commandsmac-address-table aging-time port blockUse the port block interface configuration command to block the flooding of unknown unicast or multicast packets to a port. Use the no form of this command to resume normal forwarding. Syntax Description
DefaultFlood unknown unicast and multicast packets to all ports. Command ModeInterface configuration ExampleThe following example shows how to block the forwarding of multicast and unicast packets to a port: Related Commandsshow port block port groupUse the port group interface configuration command to assign a port to a Fast EtherChannel port group. There can be four groups defined for a switch, and any number of ports can belong to a port group. Use the no form of this command to remove the port from the port group. Syntax Description
DefaultPort does not belong to a port group. Command ModeInterface configuration Usage GuidelinesThis command cannot be used when Switched Port Analyzer (SPAN) port monitoring or port security is enabled for the port. ExampleThe following example shows how to add a port to a port group: Related Commandsshow port group port monitorUse the port monitor interface configuration command to enable Switched Port Analyzer (SPAN) port monitoring on a port. Use the no form of this command to return the interface to its default value. Syntax Description
DefaultPort does not monitor any other ports. Command ModeInterface configuration Usage GuidelinesThis command cannot be used when a port is part of a Fast EtherChannel port group or when port security is enabled. Specifying port monitoring without an interface causes all other ports to be monitored. ExampleThe following example shows how to enable port monitoring on a port: Related Commandsshow port monitor port securityUse the port security interface configuration command to enable port security on a port. Use the no form of this command to return the interface to its default value. Syntax Description
DefaultPort security is disabled. Command ModeInterface configuration Usage GuidelinesThis command cannot be used when a port is part of a Fast EtherChannel port group or when Switched Port Analyzer (SPAN) port monitoring is enabled. ExampleThe following example shows how to enable port security on a port. The maximum number of addresses that the port can learn is set to 8. Related Commandsshow port security port storm-controlUse the port storm-control interface configuration command to enable broadcast storm control on a port. Use the no form of this command to disable storm control on the interface. Syntax Description
DefaultBroadcast storm control is not enabled. Command ModeInterface configuration ExampleThe following example shows how to enable broadcast storm control on a port: Related Commandsshow port storm-control show mac-address-tableUse the show mac-address-table EXEC command to display the MAC address table. Syntax Description
DefaultNone Command ModeEXEC Usage GuidelinesThis command displays the global MAC address table. Specific views can be defined by using the optional keywords and values. If more than one optional keyword is used, then all of the conditions must be true in order for that entry to be displayed. ExampleThe following example shows how to display the switch MAC address table: Related Commandsclear mac-address-table show port blockTo display the blocking of unicast or multicast flooding to a port, use the show port block EXEC command. Syntax Description
DefaultNone Command ModeEXEC Usage GuidelinesNone ExampleThe following example shows how to display port block information for a fixed port: Related Commandsport block show port groupTo display port groups, use the show port group EXEC command. Syntax Descriptiongroup-number Port group to which the port is assigned. DefaultNone Command ModeEXEC Usage GuidelinesSwitched Port Analyzer (SPAN) port monitoring and port security cannot be enabled when a port belongs to a port group. ExampleThe following example shows how to display the members of a port group. Related Commandsport group show port monitorTo display the ports for which Switched Port Analyzer (SPAN) port monitoring is enabled, use the show port monitor EXEC command. Syntax Descriptioninterface The module and port number enabled for SPAN. DefaultNone Command ModeEXEC Usage GuidelinesSPAN port monitoring cannot be enabled when a port belongs to a Fast EtherChannel group or when port security is enabled. ExampleThe following example shows how to display the ports that are being monitored by a fixed port: Related Commandsport monitor show port securityTo show the port security parameters defined for the port, use the show port security EXEC command. Syntax Descriptioninterface The module and port number to be displayed. DefaultNone Command ModeEXEC ExampleThe following example shows how to display the port security information for a fixed port: Exampleport security show port storm-controlTo display the rising and falling threshold for broadcast storm control, use the show port storm-control EXEC command. This command also displays the action that the switch takes when the thresholds are reached. Syntax Descriptioninterface (Optional) Show storm-control parameters for this port. DefaultNone Command ModeEXEC ExampleThe following example shows how to display storm-control information for the switch: Related Commandsport storm-control shutdownTo disable an interface, use the shutdown interface configuration command. To restart a disabled interface, use the no form of this command. Syntax DescriptionThis command has no arguments or keywords. DefaultNone Command ModeInterface configuration Usage GuidelinesUse shutdown Vlan1 to disable communication with the switch. The shutdown interface command causes the port to stop forwarding but maintains communication with the switch. For example, you can still enable the port with no shutdown. ExampleThe following example shows how to disable a fixed port and how to reenable it: spantree disableTo disable the Spanning-Tree Protocol, use the spantree disable interface configuration command. Syntax DescriptionThis command has no arguments or keywords. DefaultSTP is enabled Command ModeInterface configuration Usage GuidelinesShutting down the Spanning-Tree Protocol causes the switch to stop participating in STP. Ports that are administratively down remain down. Ports in the blocking state behave as if they are in the forwarding state and could cause a loop. Received BPDUs are forwarded like any other multicast frame. ExampleThe following example shows how to disable STP on the switch: Related Commandsspantree forwarding-time spantree forwarding-timeUse the spantree forwarding-time interface configuration command to specify the forward delay interval for the switch. Use the no form of this command to return to the default interval. Syntax Descriptionseconds A number from 10 to 200. Default15-second delay Command ModeInterface configuration Usage GuidelinesThe forward delay interval is the amount of time the switch spends listening for topology information and learning addresses after an interface activates and before forwarding actually begins. ExampleThe following example shows how to set the forward-delay interval to 60 seconds Related Commandsspantree disable spantree hello-timeUse the spantree hello-time interface configuration command to specify the interval between Hello Bridge Protocol Data Units (BPDUs). Use the no form of this command to return to the default interval. Syntax Descriptionseconds A number between 1 and 10. DefaultThe default is 2 seconds. Command ModeInterface configuration Usage GuidelinesEach switch in a spanning tree adopts the hello-time, forward-time, and max-age parameters of the root bridge. For this reason, this parameter only applies when this switch is the root switch. ExampleThe following example show how to set the interval to 5 seconds: Related Commandsspantree disable spantree max-ageUse the spantree max-age interface configuration command to change the interval the switch waits to hear bridge protocol data units (BPDUs) from the root bridge. If a switch does not hear BPDUs from the root bridge within the specified interval, it assumes that the network has changed and recomputes the spanning-tree topology. Use the no form of this command to return to the default interval. Syntax Descriptionseconds A number from 6 to 200. DefaultThe default is 20 seconds. Command ModeInterface configuration Usage GuidelinesEach switch in a spanning tree adopts the hello-time, forward-time, and max-age parameters of the root bridge. ExampleThe following example shows how to increase the maximum idle interval to 20 seconds: Related Commandsspantree disable spantree costUse the spantree cost interface configuration command to set a different path cost. Use the no form of this command to choose the default path cost for the interface. Syntax Description
DefaultThe default is 1000/interface-speed-Mbps. Thus, a 100-Mbps interface has a default path cost of 10, and a 10-Mbps interface has a default path cost of 100. Command ModeInterface configuration Usage GuidelinesBy convention, the path cost is 1000/data rate of the attached LAN (IEEE), or 10000/data rate of the attached LAN (Digital), in Mbps. This parameter is automatically adjusted for, unless overridden by this command. ExampleThe following example changes the default path cost for a fixed port: Related Commandsspantree disable spantree portfastUse the spantree portfast interface configuration command to decrease the amount of time it takes STP to bring a port into the forwarding state. Use the no form of this command to disable PortFast. Syntax DescriptionThis command has no parameters. DefaultPortFast is disabled. Command ModeInterface configuration Usage GuidelinesThis command should only be used when a port is connected to a workstation or server. If PortFast is enabled on a port connected to another switch or hub, it can prevent STP from detecting and avoiding loops in the network. ExampleThe following example shows how to enable PortFast on a fixed port: Related Commandsspantree disable spantree priorityUse the spantree priority interface configuration command to configure the priority of an individual bridge. Syntax Descriptionnumber A number from 0 through 65535. DefaultWhen the IEEE Spanning-Tree Protocol is enabled on the switch: 32768 Command ModeInterface configuration Usage GuidelinesWhen two bridges tie for position as the root bridge, a bridge priority determines which bridge serves as the root bridge. The lower the number, the more likely the bridge is chosen as root. Use the spantree priority interface configuration command to control an interface priority. ExampleThe following example establishes this switch as a likely candidate to be the root bridge: Related Commandsspantree disable spantree priorityUse the spantree priority interface configuration command to set an interface priority when two bridges tie for position as the root bridge. The priority you set breaks the tie. Use the no form of this command to return to the default priority. Syntax Description
Default32768 - IEEE spanning-tree protocol Command ModeInterface configuration Usage GuidelinesThe lower the number, the more likely it is that the bridge on the interface will be chosen as the root. The switch-based version of this command sets the priority for the switch. ExampleThe following example increases the likelihood that the root bridge will be the one on FastEthernet interface 0 on port 1: Related Commandsspantree forwarding-time spantree protocolUse the protocol interface configuration command to define the type of Spanning-Tree Protocol. Use the no protocol command to set the protocol to its default value of IEEE. Syntax Description
DefaultThe IEEE 802.1d Spanning-Tree Protocol is enabled by default. Command ModeInterface configuration Usage GuidelinesThe IEEE 802.1d Spanning-Tree Protocol is the preferred way to run the switch. Use the other protocols only for backward compatibility. ExampleThe following example shows how to set the switch (vlan1) to use the IEEE 802.1d Spanning-Tree Protocol: Related Commandsspantree disable speedUse the speed interface configuration command to specify the speed of the interface. Use the no form of this command to return the interface to its default value. Syntax Description
DefaultThe default is auto. Command ModeInterface configuration Usage GuidelinesCertain interfaces can be configured to be either 10 or 100 Mbps. Applicability of this command is hardware-dependent. All fixed ports can be configured for either 10- or 100-Mbps operation. Note See the Catalyst 2900 Series XL Installation and Configuration Guide for guidelines on setting the switch speed and duplex parameters. ExampleThe following example shows how to set port 1 on module 2 to 100 Mbps: Related Commandsduplex All article contents are Copyright © 1992-2005 Cisco Systems, Inc. All rights reserved. |
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



