上海罗宸信息技术有限公司
上海罗宸信息技术有限公司
华为交换机基础操作手册
联系人: 任晓博 手 机:15991723639
上海地址:上海市仙霞路 319号远东国际广场 A 座 21 楼 2111室 200051
西安地址:西安市东关正街 70 号招商局广场 9 楼 A 座 710048
电话:021—32221218 029—82498586
传真:021—32221218 *800 029—82498186
客服热线:400—883—0116
目录
查看系统版本及运行时间 ................................................................................................. 3
查看设备 CPU 利用情况 .................................................................................................... 3
查看设备内存利用情况..................................................................................................... 3
查看当前系统时间............................................................................................................ 4
修改系统时间................................................................................................................... 4
查看设备 ARP 表............................................................................................................... 4
查看设备 MAC 地址表....................................................................................................... 5
查看设备日志................................................................................................................... 5
查看设备接口基本信息..................................................................................................... 6
查看指定接口的配置信息 ................................................................................................. 6
查看指定接口的祥细信息 ................................................................................................. 6
查看设备配置文件............................................................................................................ 7
查看设备当前 VLAN 信息 ................................................................................................ 11
进入系统配置模式.......................................................................................................... 11
修改系统主机名为 sxdl-h3c ............................................................................................. 11
创建本地用户及密码 ...................................................................................................... 11
进入 VLAN 接口模式 ....................................................................................................... 11
创建 VLAN ...................................................................................................................... 12
将接口划入 VLAN ........................................................................................................... 12
查看系统文档结构.......................................................................................................... 12
接口的开启和关闭.......................................................................................................... 13
华为交换机基础配置手册
查看系统版本及运行时间
display version
H3C Comware Platform Software
Comware Software, Version 3.10, Release 1510P09 //设备软件版本
Copyright (c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights reserved.
S3600-52P-SI uptime is 0 week, 4 days, 8 hours, 27 minutes //设备正常运行时间
S3600-52P-SI with 1 MIPS Processor
64M bytes DRAM
8196K bytes Flash Memory
Config Register points to FLASH
Hardware Version is REV.C
CPLD Version is CPLD 001
Bootrom Version is 320
[Subslot 0] 48 FE Hardware Version is REV.C
[Subslot 1] 4 GE Hardware Version is REV.C
查看设备 CPU 利用情况
dis cpu
Unit 1
Board 0 CPU busy status:
13% in last 5 seconds
12% in last 1 minute
11% in last 5 minutes
查看设备内存利用情况
dis memory
Unit 1
System Available Memory(bytes): 34653696
System Used Memory(bytes): 13204064
Used Rate: 38%
查看当前系统时间
dis clock
08:22:54 UTC Thu 04/06/2000
Time Zone : add 00:00:00
修改系统时间
clock datetime 17:26:00 2011/07/11 //将系统当前时间修改为 2011-7-11 17:26
dis clock //查看修改后的秕当前时间
17:26:03 UTC Mon 07/11/2011
Time Zone : add 00:00:00
查看设备 ARP 表
display arp
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Port Name / AL ID Aging Type
--- 0 entry found --- //设备暂无记录
查看设备 MAC 地址表
display mac-address
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
0000-0010-2031 3 Learned Ethernet1/0/1 AGING
0002-b9b5-a320 3 Learned Ethernet1/0/1 AGING
000e-0c84-e1b9 3 Learned Ethernet1/0/1 AGING
000f-e207-f2e0 3 Learned Ethernet1/0/1 AGING
000f-e220-95d8 3 Learned Ethernet1/0/1 AGING
0011-0aeb-b31e 3 Learned Ethernet1/0/1 AGING
查看设备日志
dis logbuffer
Logging buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 175
%Apr 1 23:55:06:301 2000 H3C IC/7/SYS_RESTART:
System restarted --
H3C Comware Software
%Apr 1 23:55:13:165 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:sysname
H3C
%Apr 1 23:55:13:165 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:undo
irf-fabric authentication-mode
%Apr 1 23:55:13:166 2000 H3C HTTPD/5/Log:- 1 -Starting HTTP server.
%Apr 1 23:55:23:400 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:vlan 1
%Apr 1 23:55:23:400 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:vlan 3
%Apr 1 23:55:23:401 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:interface
Aux1/0/0
%Apr 1 23:55:23:401 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:interface
Ethernet1/0/1
%Apr 1 23:55:23:401 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:interface
Ethernet1/0/2
%Apr 1 23:55:23:401 2000 H3C SHELL/5/CMD:- 1 -task:CFM ip:** user:** command:interface
Ethernet1/0/3
查看设备接口基本信息
display ip interface brief
*down: administratively down
(l): loopback
(s): spoofing
Interface IP Address Physical Protocol Description
//仅显示三层接口的相关信息,此处暂无显示
查看指定接口的配置信息
dis cu int GigabitEthernet 1/1/1 //查看接口 g1/1/1 的当前配置信息
#
interface GigabitEthernet1/1/1
#
return
查看指定接口的祥细信息
dis int g1/1/1 //查看接口 g1/1/1 的详细配置信息
GigabitEthernet1/1/1 current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-e268-cda1
Media type is not sure, loopback not set
Port hardware type is 1000_SFP_NO_CONNECTOR
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 9216
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC
0 frame, - overruns, 0 aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier
查看设备配置文件
dis cu
#
sysname H3C
#
radius scheme system
#
domain system
#
vlan 1
#
vlan 3
#
interface Aux1/0/0
#
interface Ethernet1/0/1
port access vlan 3
#
interface Ethernet1/0/2
port access vlan 3
#
interface Ethernet1/0/3
port access vlan 3
#
interface Ethernet1/0/4
port access vlan 3
#
interface Ethernet1/0/5
port access vlan 3
#
interface Ethernet1/0/6
port access vlan 3
#
interface Ethernet1/0/7
port access vlan 3
#
interface Ethernet1/0/8
port access vlan 3
#
interface Ethernet1/0/9
port access vlan 3
#
interface Ethernet1/0/10
port access vlan 3
#
interface Ethernet1/0/11
port access vlan 3
#
interface Ethernet1/0/12
port access vlan 3
#
interface Ethernet1/0/13
port access vlan 3
#
interface Ethernet1/0/14
port access vlan 3
#
interface Ethernet1/0/15
port access vlan 3
#
interface Ethernet1/0/16
port access vlan 3
#
interface Ethernet1/0/17