交换机查看端口流量的常用命令如下:

1. show interface [interface-id]
- 这个命令可以查看指定端口的流量统计,包括输入输出的字节数、包数等。
- 例如:show interface Gi0/1
2. show interface [interface-id] counters
- 这个命令可以单独查看指定端口的输入输出流量计数器。
- 例如:show interface Gi0/1 counters
3. show interface [interface-id] | include rate
- 这个命令可以直接查看指定端口的当前带宽利用率。
- 例如:show interface Gi0/1 | include rate
4. show interfaces [interface-id] accounting
- 这个命令可以查看指定端口的流量统计,包括输入输出流量、包数等。
- 例如:show interfaces Gi0/1 accounting
这些是常用的查看交换机端口流量的命令,可以根据需要选择合适的命令使用。同时也可以结合其他命令,比如加入正则表达式等来获取更详细的信息。