通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索

军衔等级:

  列兵

注册:2010-5-171
跳转到指定楼层
1#
发表于 2012-10-20 00:08:49 |只看该作者 |倒序浏览
交换机常用的命令
1.华为交换机S3528S6502S6503S3552查看端口有没有MAC地址命令:
dis mac-address interface Ethernet 1/0/4
MAC ADDR        VLAN ID    STATE            PORT INDEX             AGING
000f-e282-9dbe   311       Learned          Ethernet1/0/4          AGING
反之:
display mac-address interface Ethernet 0/44
No Mac address on the port! (说明没有用户上线)
2.查看交换机专线业务IP地址:
display current-configuration interface Vlan-interface XXX  
interface Vlan-interface500
ip address 222.223.13.254 255.255.255.252
3.查看交换机端口状态:
display interface Ethernet 1/0/4
Ethernet1/0/4 current state : UP 端口是不是UPDOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e23f-6149
Description: TangGangLuanXian_EG10021541479.ZX
The Maximum Transmit Unit is 1500
Media type is Twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, Full-duplex mode
Link speed type is autonegotiation, Link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1536
Allow jumbo frame to pass
PVID: 311
Mdi type: auto
Port link-type: access
  Tagged   VLAN ID : none
  Untagged VLAN ID : 311
Last 300 seconds input:  695 packets/sec 225896 bytes/sec  端口流量计算方法就是去掉后五位数就是实际的带宽
Last 300 seconds output:  792 packets/sec 512705 bytes/sec端口流量计算方法就是去掉后五位数就是实际的带宽
Input(total):  2559592595 packets, 1331798911173 bytes
         - broadcasts, - multicasts
Input(normal):  2559592594 packets, - bytes
         8720 broadcasts, 0 multicasts
Input:  - input errors, 0 runts, - giants,  0 throttles, 0 CRC 有没有误码。
         0 frame,  - overruns, - aborts, - ignored, - parity errors
Output(total): 2664165161 packets, 1572737004453 bytes
         - broadcasts, - multicasts, - pauses
Output(normal): 2664165152 packets, - bytes
         1118341 broadcasts, 140057 multicasts, 0 pauses
Output: 9 output errors,  - underruns, - buffer failures
         9 aborts, 0 deferred, 0 collisions, 0 late collisions
         - lost carrier, - no carrier
4.查看端口的描述还有就是查看端口是不是手动DOWN
display current-configuration interface Ethernet 1/0/4
interface Ethernet1/0/4
description TangGangLuanXian_EG10021541479.ZX
port access vlan 311
shut down  手动DOWN)
qos
traffic-limit inbound link-group match_all rule 0 system-index 13057 4(带宽限速为4M)
line-rate 4
5.华为交换机S9306S3352查看端口有没有MAC地址命令:
[HE-TS-QA-S-1.MAN]dis mac-address dynamic Ethernet1/0/2
MAC address table of slot 1:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/        
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
00e0-4c61-0b90 1080        -      -      Eth1/0/2        dynamic   -           
0022-1507-fbc8 1080        -      -      Eth1/0/2        dynamic   -           
0010-5cc2-8fa1 1080        -      -      Eth1/0/2        dynamic   -           
001d-92f8-137d 1080        -      -      Eth1/0/2        dynamic   -           
0810-7415-993d 1080        -      -      Eth1/0/2        dynamic   -   
反之:
[HE-TS-QA-S-1.MAN]dis mac-address dynamic Ethernet1/0/2
No Mac address on the port! (说明没有用户上线)
6.查看交换机专线业务IP地址:
[HE-TS-QA-S-1.MAN]display current-configuration interface Vlanif
#
interface Vlanif10
description To HE-TS-FRSN-SC-1.MAN G2/2/4
ip address 219.148.65.170 255.255.255.252
7.查看交换机端口状态:
[HE-TS-QA-S-1.MAN]dis int Ethernet1/0/2
Ethernet1/0/2 current state : UP   端口是不是UPDOWN
Description:to_ChangQing_3550_E1/24
Switch Port,PVID :    1,The Maximum Frame Length is 1536
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-82db-6d91
Port Mode: COMMON COPPER
Speed :  100,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi   : AUTO
Last 300 seconds input rate 30111992 bits/sec, 7725 packets/sec 端口流量
Last 300 seconds output rate 42123344 bits/sec, 7672 packets/sec端口流量
Input:  5501464786 packets, 2602740308401 bytes
  Unicast: 5490035845,  NUnicast:   11428941
  Discard:     210103,  Error   :          0
  Jumbo  :          0
Output: 5790323122 packets, 3875353436754 bytes
  Unicast: 5763345567,  NUnicast:   26977555
  Discard:          0,  Error   :          0
  Jumbo  :          0
8.查看端口的描述还有就是查看端口是不是手动DOWN
[HE-TS-QA-S-1.MAN]dis cu interface Ethernet1/0/2
#
interface Ethernet1/0/2
shut down       ( 手动DOWN)
description to_ChangQing_3550_E1/24
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 101 200 300 401 1036 1080

举报本楼

本帖有 2 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-11-19 17:34 , Processed in 1.032305 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部