Table Of Contents
show port broadcast
Use the show port broadcast command to display broadcast information.
show port broadcast [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
On the 1000BaseX switching module, when you specify a port for broadcast suppression, the traffic is suppressed only in the network-to-Catalyst 5000, 2926G, and 2926 series switches bus direction.
This command is not supported by the Catalyst 4000 and 2948G series switches.
Example
This example shows how to display broadcast information for port 2 on module 1:
Console> show port broadcast 1/2Port Broadcast-Limit Broadcast-Drop-------- --------------- --------------1/2 - -1/2 - -Console>describes the possible fields in the show port broadcast command output.
show port capabilities
Use the show port capabilities command to display the capabilities of the modules and ports in a switch.
show port capabilities [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows how to show the port capabilities for module 1, port 1:
Console> (enable) show port capabilities 1/1Model WS-X5509Port 1/1Type 100BaseTXSpeed 100Duplex half,fullTrunk encap type ISLTrunk mode on,off,desirable,auto,nonegotiateChannel 1/1-2Broadcast suppression percentage(0-100)Flow control noSecurity yesMembership static,dynamicFast start yesRewrite noConsole> (enable)describes the possible fields (depending on the type of port queried) and the values in the show port capabilities command output.
Table 2-50
Field DescriptionModel
Module model number.
Port
Module number and port number.
Type1
Port type, for example, 100BaseFX MM, 100BaseFX SM, or 10/100BaseTX.
Speed1
Port speed setting (for example, auto, 100, or 1000).
Duplex
Duplex mode (half, full, auto, fdx, hdx, or no).
Trunk encap type
Trunk encapsulation type (ISL, 802.1Q, 802.10, or no).
Trunk mode
Trunk administrative status of the port (on, off, auto, desirable, nonegotiate, or no).
Channel
Status of which ports can form a channel group. The ports are shown in mod_num/port_num format. For example, 3/1-2 indicates module 3, ports 1 and 2. Also, any ports in range [mod/1-mod/high_port] or no ports may be indicated.
Broadcast suppression
Number of packets-per-second (pps) of broadcast/multicast traffic allowed on the port (0-150000) or the percentage of total available bandwidth that can be used by broadcast/multicast traffic (0-100).
Flow control
Flow-control options you can set (receive-[off, on, desired], send-[off, on, desired], or no).
Security
Status of whether port security is enabled (yes, no).
Membership
Method of membership assignment of a port or range of ports to a VLAN (static, dynamic).
Fast Start
Status of whether the spanning-tree port fast-start feature on the port is enabled (yes, no).
Rewrite
Status of whether the port supports inline rewrite (yes, no).
1 These fields will change depending on the system configuration.
show port capabilities Command Output Fields
Related Commands
set port channel
set port broadcast
set port security
set port speed
set spantree portfast
set trunkshow port cdp
Use the show port cdp command to display port CDP enable state and message interval on the port.
show port cdp [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
If you do not specify a mod_num, the ports on all modules are shown. If you do not specify a /port_num, all the ports on the module are shown.
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows how to display CDP information for all ports:
Console> show port cdpPort CDP Status Message-Interval-------- ---------- ----------------1/1 enabled 601/2 enabled 602/1 enabled 603/1 enabled 60Console>describes the fields in the show port cdp command output.
show port channel
Use the show port channel command to display EtherChannel information for a specific module or port.
show port channel [mod] [info | statistics]
show port channel mod/port [info | statistics]Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
If mod or mod/port is not specified, EtherChannel information is shown for all channeling ports on all modules.
This command is not supported by the three-port Gigabit Ethernet switching module (WS-X5403).
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod/port 1/N, an error message will be displayed.
Examples
This example shows how to display Ethernet channeling information for Fast Ethernet module 4:
Console> show port channel 4Port Status Channel Channel Neighbor Neighbormode status device port----- ---------- ------- ----------- ------------------------- ----------4/1 connected on channel WS-C5000 012345678 5/54/2 connected on channel WS-C5000 012345678 5/6----- ---------- ------- ----------- ------------------------- ----------4/3 connected off not channel4/4 connected off not channel4/5 notconnect desirable not channel4/6 notconnect desirable not channel4/7 notconnect desirable not channel4/8 notconnect desirable not channel----- ---------- ------- ----------- ------------------------- ----------4/9 connected on channel WS-C5000 987654321 3/14/10 connected on channel WS-C5000 987654321 3/24/11 notconnect on channel4/12 connected on channel WS-C5000 987654321 3/4----- ---------- ------- ----------- ------------------------- ----------Console>This example shows show port channel with the statistics parameter:
Console> show port channel 1 statisticsPort PAgP Pkts PAgP PktsTransmitted Received----- ----------- ---------1/1 0 01/2 0 0Console>This example shows show port channel with the info parameter:
>Console> show port channel 5/1 info>Port Speed Duplex Vlan Port Secure port\ Trunk status VLANs> priority Dynamic port>----- ----- ------ ---- -------- ------------ ------------ ------------------>> 5/1 a-100 a-full 1 32 trunking 1-1005> 5/2 a-100 a-full 1 32 trunking 1-1005>----- ----- ------ ---- -------- ------------ ------------ ------------------>>Port ifIndex Group Neighbor Neighbor Neighbor> capability device-id port-id capability>----- ---------- ---------- ----------------- -------- ----------> 5/1 530 1 00-e0-1e-52-1a-44 17 1> 5/2 530 1 00-e0-1e-52-1a-44 18 1>----- ---------- ---------- ----------------- -------- ----------Console>describes the possible fields (depending on the type of port queried) and the values in the show port channel command output.
Related Command
show port counters
Use the show port counters command to show all the counters for a port.
show port counters [mod_num/port_num]
Syntax Description
mod_num
(Optional) Number of the module for which to show port counter information.
/port_num
(Optional) Number of the port on the module for which to show port counter information.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows the output of the show port counters command:
Console> show port countersPort Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize----- ---------- ---------- ---------- ---------- ---------1/1 0 0 0 0 01/2 0 0 0 0 04/1 0 0 0 0 04/2 0 0 0 0 04/3 0 0 0 0 04/4 0 0 0 0 0Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants----- ---------- ---------- ---------- ---------- --------- --------- ---------1/1 12 0 0 0 0 0 -1/2 0 0 0 0 0 0 04/1 0 0 0 0 0 0 04/2 0 0 0 0 0 0 04/3 0 0 0 0 0 0 04/4 0 0 0 0 0 0 0LerPort CE-State Conn-State Type Neig Con Est Alm Cut Lem-Ct Lem-Rej-Ct Tl-Min----- -------- ---------- ---- ---- --------------- ---------- ---------- ------3/1 isolated connecting A U no 9 9 7 0 0 1023/2 isolated connecting B U no 9 8 7 0 0 40Last-Time-Cleared--------------------------Fri Aug 11 1998, 14:58:19describes the possible fields (depending on the port type queried) in the show port counters command output.
Related Command
show port filter
Use the show port filter command to view MAC addresses and protocol filters that have been configured on the Token Ring module ports.
show port filter [mod_num] [canonical]
show port filter mod_num/port_num [canonical]
show port filter mac_addr [canonical]Syntax Description
Default
By default, MAC addresses are shown in noncanonical format.
Command Type
Switch command.
Command Mode
Normal.
Usage Guideline
This command is not supported on the Catalyst 4000 and 2948G series switches.
Example
This example shows how to display the filters configured for a port on the Token Ring module:
Console> show port filter 3/1Port Mac-Addr Type----- ----------------- ------3/1 00:00:00:00:00:00 deny00:00:00:00:00:00 deny00:00:00:00:00:00 deny00:00:00:00:00:00 deny00:00:00:00:00:00 deny00:00:00:00:00:00 denyPort Protocol Type----- ----------------- ------3/1 0x8038 deny0xf0f0 denydescribes the fields in the show port filter command output.
Related Commands
clear port filter
set port filtershow port flowcontrol
Use the show port flowcontrol command to display per-port status information and statistics related to flow control.
show port flowcontrol [mod_num[/port_num]]
Syntax Description
mod_num
(Optional) Number of the module.
/port_num
(Optional) Number of the port on the module. If you do not specify a number, filters configured on all the ports on the module are shown.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guideline
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows how to display the flow-control port status and statistics:
Console> show port flowcontrolPort Send-Flowcontrol Receive-Flowcntl RxPause TxPauseAdmin Oper Admin Oper----- ---------------- ---------------- ------- ------3/1 on disagree on disagree 0 03/2 off off off off 0 03/3 desired on desired off 10 10Table 2-55 describes the fields in the show port flowcontrol command output.
Related Command
show port ifindex
Use the show port ifindex command to view IfIndex information on a per-port or per-module basis.
show port ifindex [mod_num]
show port ifindex mod_num/port_numSyntax Description
Default
This command has no default settings.
Command Type
Switch command.
Command Mode
Normal.
Usage Guideline
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows how to display IfIndex information for all the ports:
Console> show port ifindexPort ifIndex----- -------1/1 31/2 43/1 3833/2 3844/1 3854/2 3864/3 3874/4 3884/5 3894/6 3904/7 3914/8 3924/9 3934/10 3944/11 3954/12 3964/13 397Console>show port negotiation
Use the show port negotiation command to display the link negotiation protocol setting for the specified port.
show port negotiation [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
This command only applies to Gigabit Ethernet ports.
Example
This example shows how to display the link negotiation protocol settings on module 3, port 1:
Console> show port negotiation 3/1Port Link Negotiation------- --------------------3/1 enabledConsole>Related Commands
show port flowcontrol
set port negotiationshow port protocol
Use the show port protocol command to view protocol filters configured on the ports.
show port protocol [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
If you do not specify a /port_num, filters configured on all the ports on the module are shown.
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
Example
This example shows how to view protocol filters on configured ports:
Console> show port protocolPort Vlan IP IP Hosts IPX IPX Hosts Group Group Hosts-------- ---------- -------- -------- -------- --------- -------- -----------1/1 1 on 0 on 0 on 01/2 1 on 0 on 0 on 02/1 1 on 3 auto-on 0 auto-on 02/2 1 on 0 on 0 on 02/3 1 on 0 on 0 on 02/4 1 on 0 on 0 on 02/5 1 on 0 on 0 on 02/6 1 on 0 on 0 on 02/7 1 on 0 on 0 on 02/8 1 on 0 on 0 on 02/9 1 on 0 on 0 on 02/10 1 on 0 on 0 on 0Console>Related Command
show port status
Use the show port status command to display port status information.
show port status [mod_num[/port_num]]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guidelines
The Catalyst 2948G is a fixed configuration switch. All ports are located on module 2; for this reason, if you enter mod_num/port_num 1/N, an error message will be displayed.
If you do not specify a mod_num, the ports on all modules are shown.
If you do not specify a /port_num, all the ports on the module are shown.
Example
This example shows how to display port status information for all ports:
Console> show port statusPort Name Status Vlan Level Duplex Speed Type----- ------------------ ---------- ---------- ------ ------ ----- ------------1/1 connected 523 normal half 100 100BaseTX1/2 notconnect 1 normal half 100 100BaseTX2/1 connected trunk normal half 400 Route Switch3/1 notconnect trunk normal full 155 OC3 MMF ATM5/1 notconnect 1 normal half 100 FDDI5/2 notconnect 1 normal half 100 FDDIConsole>describes the fields in the show port status command output.
Table 2-56 show port status Command Output Fields
Field DescriptionPort
Module and port number.
Name
Name (if configured) of the port.
Status
Status of the port (connected, notconnect, connecting, standby, faulty, inactive, shutdown, disabled, or monitor).
Vlan
VLANs to which the port belongs.
Level
Level setting for the port (normal or high).
Duplex
Duplex setting for the port (auto, full, fdx, half, hdx, a-half, a-hdx, a-full, or a-fdx).
Speed
Speed setting for the port (auto, 10, 100,155, a-10, a-100, 4, 16, a-14,or a-16).
Type1
Port type, for example, 10BaseT, 10BaseFL MM, 100BaseTX, 100BaseT4, 100BaseFX MM, 100BaseFX SM, 10/100BaseTX, TokenRing, FDDI, CDDI, or RSM.
1 These fields will change according to the system configuration.
show protocolfilter
Use the show protocolfilter command to list whether protocol filtering is enabled or disabled.
show protocolfilter
Syntax Description
This command has no keywords or arguments.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guideline
This command is not supported by the three-port Gigabit Ethernet switching module (WS-X5403).
Example
This example shows how to display whether protocol filtering is enabled or disabled:
Console> show protocolfilterProtocol filtering is enabled on this switch.Console>Related Command
show rif
Use the show rif command to display RIF information.
show rif [vlan_num]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Examples
These examples show how to display RIF information for the system and for a VLAN:
Console> show rifMAC VLAN RIF-------------------- -------- --------------------00:00:30:e2:cf:00 on 401 via 0610.001a.002000:05:77:01:bc:4a on 1020 via 0690.00d1.00e200:05:77:01:bc:4b on 1020 via 0690.00d1.00e200:05:77:01:bc:48 on 1020 via 0690.00d1.00e2Console> show rif 401MAC VLAN RIF-------------------- -------- --------------------00:00:30:e2:cf:00 on 401 via 0610.001a.0020Console>
