The 10 most basic commands of Huawei switches are as follows: for example, the command of Huawei switches sets a logon password on an IOS-based switch, the Huawei switch command sets the host name/system name on the IOS-based switch.
◆ The Huawei switch command sets the host name/system name on the IOS-based switch:
Switch (config) # hostname
Set the host name/system name on the CLI-based switch:
Switch (enable) set system name-string
◆ Set the logon password for the Huawei switch command on the IOS-based switch:
Switch (config) # enable password level 1 password
Set the logon password on the CLI-based switch:
Switch (enable) set password
Switch (enable) set enalbepass
◆ The Huawei switch command sets remote access on the IOS-based switch:
Switch (config) # interface vlan 1
Switch (config-if) # ip address ip-address netmask
Switch (config-if) # ip default-gateway ip-address
Set remote access on a CLI-based switch:
Switch (enable) set interface sc0 ip-address netmask broadcast-address
Switch (enable) set interface sc0 vlan
Switch (enable) set ip route default gateway
◆ The Huawei switch command starts and browses CDP information on the IOS-based switch:
Switch (config-if) # cdp enable
Switch (config-if) # no cdp enable
To view CDP announcement information for Cisco adjacent devices:
Switch # show cdp interface [type modle/port]
Switch # show cdp neighbors [type module/port] [detail]
Enable and browse CDP information on a CLI-based switch:
Switch (enable) set cdp {enable | disable} module/port
To view CDP announcement information for Cisco adjacent devices:
Switch (enable) show cdp neighbors [module/port] [vlan | duplex | capabilities | detail]
◆ Port description of the IOS-based switch for the Huawei switch command:
Switch (config-if) # description-string
Description of the port of the CLI-based switch:
Switch (enable) set port name module/number description-string
◆ Set the port speed on the IOS-based switch:
Switch (config-if) # speed {10 | 100 | auto}
Set the port speed on the CLI-based switch:
Switch (enable) set port speed moudle/number {10 | 100 | auto}
Switch (enable) set port speed moudle/number {4 | 16 | auto}
◆ Set the Ethernet link mode on the IOS-based switch:
Switch (config-if) # duplex {auto | full | half}
Set the Ethernet link mode on a CLI-based switch:
Switch (enable) set port duplex module/number {full | half}
◆ The Huawei switch command configures the static VLAN on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vlan-num name vla
Switch (vlan) # exit
Switch # configure teriminal
Switch (config) # interface module/number
Switch (config-if) # switchport mode access
Switch (config-if) # switchport access vlan-num
Switch (config-if) # end
Configure static VLAN on a CLI-based switch:
Switch (enable) set vlan-num [name]
Switch (enable) set vlan-num mod-num/port-list
◆ Configure VLAN trunk lines on IOS-based switches:
Switch (config) # interface mod/port
Switch (config-if) # switchport mode trunk
Switch (config-if) # switchport trunk encapsulation {isl | dotlq}
Switch (config-if) # switchport trunk allowed vlan remove vlan-list
Switch (config-if) # switchport trunk allowed vlan add vlan-list
Configure VLAN trunk lines on a CLI-based switch:
Switch (enable) set trunk module/port [on | off | desirable | auto | nonegotiate]
Vlan-range [isl | dotlq | dotl0 | lane | negotiate]
◆ The Huawei switch command configures the VTP management domain on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp domain-name
Configure the VTP management domain on a CLI-based switch:
Switch (enable) set vtp [domain-name]