H3C CLI

I will give examples of some commands for H3C switches.

An example of obtaining help on commands:

?
command subcommand ?

Switch to elevated privilege mode:

system-view

Setting up sending messages to syslog server:

info-center enable
info-center loghost 1.2.0.1 channel loghost facility local5
info-center source default channel loghost debug state off log state off trap state off
info-center source default channel loghost log level warning state on
(emergency, alert, critical, error, warning, notice, informational and debug)

Information display:

display interfaces
display connections
display current-configuration
display ip
display local-server
display local-user
display port
display users
display vlan
display web
display mac-address
display snmp-agent community

Password setting:

super password level 3 simple 123
ssh user username service-type stelnet authentication-type { password | { any | password-publickey | publickey } assign publickey keyname }
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE

User Setup:

local-user admin
service-type telnet level 3
password simple admin

Interface setup:

interface Vlan-interface 1
ip address 192.168.1.4 255.255.255.0

Turning the web server on and off:

ip http shutdown
undo ip http shutdown

Example configuration of a managed VLAN:

vlan 207
quit
management-vlan 207
interface vlan-interface 207
ip address 192.168.1.3 255.255.255.0
quit

Default route:

ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

Port Setup:

switcport mode trunk
switcport allowed vlan 25,26
switcport trunk native vlan 226

Loop protection:

display interface loopback interface_number
interface loopback interface_number
undo interface loopback interface_number

SNMP setup:

snmp-agent
undo snmp-agent
snmp-agent community

Saving settings:

save safely

Reset:

reset saved-configuration

See also my article:
Configuring Huawei Quidway S2326TP-EI

Leave a comment

Leave a Reply

Discover more from IT Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading