交换机常用命令

设置系统时间和时区

<Quidway>clock time Beijing  add 8

 <Quidway>clock datetime 12:00:00 2012-01-15

14.2设置交换机的名称

[Quidway]sysname TRAIN-3026-1

14.3设置文件系统提示符

<Quidway>system-view

[Quidway]file prompt { alert | quiet }

14.4执行批处理操作

步骤1 执行system-view 命令,进入系统视图。

步骤2 执行execute batch-filename 命令,执行批处理文件。

14.5查看端口信息

14.5.1 显示接口详情

[quidway_129]display interface GigabitEthernet 0/0/1

GigabitEthernet0/0/1 currentstate : UP

Line protocol current state :UP

Description:HUAWEI, QuidwaySeries, GigabitEthernet0/0/1 Interface

Switch Port,The Maximum FrameLength is 1600

IP Sending Frames' Format isPKTFMT_ETHNT_2, Hardware address is 5489-9803-b75f

Port Mode: COMMON COPPER

Speed : 1000,  Loopback: NONE

Duplex: FULL,  Negotiation: ENABLE

Mdi   : AUTO

Last 300 seconds input rate 0bits/sec, 0 packets/sec

Last 300 seconds output rate0 bits/sec, 0 packets/sec

Input peak rate 546328bits/sec,Record time: 2008-10-07 23:16:49

Output peak rate 12473768bits/sec,Record time: 2008-10-11 00:39:56

Input:  12 packets, 816 bytes

Unicast        :                   0,Multicast          :                   0

Broadcast      :                  12,Jumbo              :                   0

CRC            :                   0,Giants             :                   0

Jabbers        :                   0,Throttles          :                   0

Runts          :                   0,DropEvents         :                   0

Alignments     :                   0,Symbols            :                   0

Ignoreds       :                   0,Frames             :                   0

Discard        :                   0,Total Error        :                   0

Output:  0 packets, 0 bytes

Unicast        :                   0,Multicast          :                   0

Broadcast      :                   0,Jumbo              :                   0

Collisions     :                   0,Deferreds          :                   0

Late Collisions:                   0,ExcessiveCollisions:                   0

Buffers Purged :                   0

Discard        :                   0,Total Error        :                   0

    Input bandwidth utilization threshold :100.00%

    Output bandwidth utilization threshold:100.00%

    Input bandwidth utilization  : 0.00%

Output bandwidth utilization: 0.00%

14.5.2 查看VLAN接口的端口

 

[quidway_129]interface GigabitEthernet 0/0/1

[quidway_129-GigabitEthernet0/0/1]disp

[quidway_129-GigabitEthernet0/0/1]display this

#

interface GigabitEthernet0/0/1

 eth-trunk 1

#

return

14.5.3 查看Trunk端口配置

 [quidway_129]displaycurrent-configuration interface Eth-Trunk 1

#

interface Eth-Trunk1

port link-type trunk

 port trunk pvidvlan 100

port trunk allow-pass vlan 100 to 300

#

 

14.6查看交换机MAC地址表

 

交换机MAC地址表,它存储的是传输数据时真正标识发出数据的主机和接收数据的主机的地址,S5300交换机能够记忆1024MAC地址。在S5300交换机使用如下命令查看,

[quidway_129]display arp

IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE      VPN-INSTANCE

                                    VLAN

------------------------------------------------------------------------------

192.168.0.129  5489-9803-b75f         I -     MEth0/0/1

129.111.0.129  5489-9803-b75f         I -     Vlanif100

129.111.0.126  781d-ba30-5bd6  9      D-0   GE0/0/3

                                    100

129.111.0.131  00c0-dd1e-f456  9      D-0    GE0/0/3

                                    100

129.111.155.153 0022-a102-fd72  10    D-0     GE0/0/3

                                    100

129.111.111.118 0050-56b5-000d  4     D-0     GE0/0/3

                                    100

129.111.111.113 000c-2909-9eeb  13    D-0       GE0/0/3

                                    100

129.111.151.24 781d-baa4-026c  7      D-0    GE0/0/3

                                    100

129.111.111.120 000c-294e-62f6  1     D-0      GE0/0/3

                                    100

129.111.100.66 00e0-4c97-983c  9      D-0    GE0/0/3

                                    100

129.111.151.12 0018-829a-da2c  13     D-0     GE0/0/3

                                      100

129.111.0.218  00b0-c006-0f36  11     D-0    GE0/0/3

                                    100

129.111.153.92 00e0-4c86-35a9  7      D-0    GE0/0/3

                                    100

129.111.100.195 001e-90b0-2797  5     D-0     GE0/0/3

                                    100

129.111.151.156 90fb-a617-c407  17    D-0      GE0/0/3

                                    100

129.111.151.111 001b-21b3-cdf1  13    D-0      GE0/0/3

                                    100

129.111.100.216 00e0-4c84-154c  12    D-0      GE0/0/3

                                    100

129.111.150.52 0050-56b9-0015  4      D-0    GE0/0/3

                                     100

129.111.150.54 0050-56b9-0017  4      D-0    GE0/0/3

                                    100

129.111.15.202 0025-9eb4-302c  17     D-0    GE0/0/3

                                    100

 

------------------------------------------------------------------------------

Total:20       Dynamic:18      Static:0    Interface:2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值