Cisco 3560x-24p 参考指南

下载
页码 1188
 
C-7
Catalyst 3750-X and 3560-X Switch Command Reference
OL-21522-02
Appendix C      Catalyst 3750-X and 3560-X Show Platform Commands
show platform forward
show platform forward
Use the show platform forward privileged EXEC command for an interface to specify how the 
hardware would forward a frame that matches the specified parameters. 
show platform forward interface-id [vlan vlan-idsrc-mac dst-mac [l3protocol-id] [ipv6 | sap | 
snap] [cos cos] [ip src-ip dst-ip [frag field] [dscp dscp] {l4protocol-id | icmp icmp-type 
icmp-code | 
igmp igmp-version igmp-type | sctp src-port dst-port | tcp src-port dst-port flags | 
udp src-port dst-port]} [ | {begin | exclude | includeexpression]
Syntax Description
interface-id
The input physical interface, the port on which the packet comes in to the 
switch (including type, stack member, module, and port number).
vlan vlan-id
(Optional) Input VLAN ID. The range is 1 to 4094. If not specified, and 
the input interface is not a routed port, the default is 1. 
src-mac
48-bit source MAC address.
dst-mac
48-bit destination MAC address.
l3protocol-id
(Optional) The Layer 3 protocol used in the packet. The number is a 
value 0 to 65535.
ipv6
(Optional) IPv6 frame. This keyword is available only if the switch or 
switch stack is running the dual-ipv4-and-ipv6 SDM template.
sap
(Optional) Service access point (SAP) encapsulation type.
snap 
(Optional) Subnetwork Access Protocol (SNAP) encapsulation type.
cos cos
(Optional) Class of service (CoS) value of the frame. The range is 0 to 7.
ip src-ip dst-ip
(Optional, but required for IP packets) Source and destination IP 
addresses in dotted decimal notation.
frag field
(Optional) The IP fragment field for a fragmented IP packet. The range 
is 0 to 65535.
dscp dscp
(Optional) Differentiated Services Code Point (DSCP) field in the IP 
header. The range is 0 to 63.
l4protocol-id
The numeric value of the Layer 4 protocol field in the IP header. The 
range is 0 to 255. For example, 47 is generic routing encapsulation 
(GRE), and 89 is Open Shortest Path First (OSPF). If the protocol is TCP, 
User Datagram Protocol (UDP), Internet Control Message Protocol 
(ICMP), or Internet Group Management Protocol (IGMP), you should 
use the appropriate keyword instead of a numeric value.
icmp icmp-type
 
icmp-code
ICMP parameters. The icmp-type and icmp-code ranges are 0 to 255.
igmp igmp-version 
igmp-type
IGMP parameters. The igmp-version range is 1 to 15; the igmp-type 
range is 0 to 15. 
sctp src-port dst-port 
Stream Control Transmission Protocol (SCTP) parameters. The ranges 
for the SCTP source and destination ports are 0 to 65535.
tcp src-port dst-port
 
flags
TCP parameters: TCP source port, destination port, and the numeric 
value of the TCP flags byte in the header. The src-port and dst-port 
ranges are 0 to 65535. The flag range is 0 to 1024.
udp src-port dst-port
UDP parameters. The src-port and dst-port ranges are 0 to 65535.
| begin
(Optional) Display begins with the line that matches the expression.