Think before you speak, read before you think.

H3C 5024P操作命令

by

in

两种权限模式

user-view和system-view,退出system-view输入quit或ctrl+z

user-view可以进行的操作很小,可用的命令有:

 debugging Enable system debugging functions
 display Display current system information
 ping Ping function
 quit Exit from current command view
 reboot Reset switch
 reset Reset operation
 save Save current configuration   #保存当前配置到EEPROM
 system-view Enter the system view
 undo Cancel current setting

进行配置基本上都在system-view下进行,可用的命令有:

 display Display current system information
 interface Specify the interface configuration view
 link-aggregation Ports aggregation mode
 mac-address Configure MAC address
 mirroring-port Specify mirroring port
 monitor-port Specify monitor port
 ping Ping function
 qos QOS configuration information
 queue-scheduler Specify queue scheduling mode and parameters
 quit Exit from current command view
 restore Restore configuration
 return Exit to user view
 super Modify super password parameters
 sysname Specify the host name
 storm-control Limit the rate of the specified packets of the switch
 snmp-agent Specify SNMP(Simple Network Management Protocol)
 configuration information
 undo Cancel current setting
 user-interface Enter user interface view
 vlan Configure VLAN

system-view下修改密码

super password bigadmin  这个是进入system-view及网页管理界面的密码
set authentication password admin  这个是telnet的密码

设置主机名

sysname hostnameofswitch

查看交换机运行信息

[SW4_R2_R2]display version
 H3C S5024P Product Version S5024P-R0109
 Copyright (c) 2004-2009 Hangzhou H3C Technologies Co., Ltd. All rights Reserved.
 H3C S5024P uptime is 8 week(s),2 day(s),15 hour(s),17 minute(s)

 H3C S5024P with 17M 8051 Processor
 128K bytes SDRAM
 2048K bytes Flash Memory
 Config Register points to EEPROM
 Hardware Version is Ver.1.0
 Bootrom Version is 100
 [Subslot 0] 24 GE(4 COMBO) Hardware Version is Ver.1.0

查看聚合信息

display link-aggregation GigabitEthernet 0/21

查看学习到的mac地址

display mac-address

设置snmp-agent信息

snmp-agent community read abcdefg

h3c s5024p重置交换机

system-view下

[H3C]restore default
This will restore the default configuration in the EEPROM memory
Are you sure?[Y/N]y
*** Restoring to default configuration...
*** Restore default configuration successfully!
Reboot the switch to activate the default configuration!

其他h3c交换机重置

reset saved-configuration
reboot

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *