通信人家园
标题: 数据交换机常用命令 [查看完整版帖子] [打印本页]
时间: 2012-10-20 00:08
作者: 无粮瘦佛
标题: 数据交换机常用命令
交换机常用的命令
1.华为交换机S3528、S6502、S6503、S3552查看端口有没有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 端口是不是UP或DOWN
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.华为交换机S9306、S3352查看端口有没有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 端口是不是UP或DOWN
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
时间: 2012-12-24 08:29
作者: 兰帕德NO1
正在找
时间: 2016-4-3 23:31
作者: 那天deyu
这个可以看看
通信人家园 (https://www.txrjy.com/) |
Powered by C114 |