Switch command-Huawei

Source: Internet
Author: User

Switch command-Huawei
1. Set 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
2. Set the logon password 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
3. Set 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
4. Enable and browse CDP information on an 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]
5. Description of the port of the IOS-based switch:
Switch (config-if) # description-string
Description of the port of the CLI-based switch:
Switch (enable) set port name module/number description-string
6. 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}
7. 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}
8. Configure 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
9. 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]
10. Configure 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]

11. Configure The VTP mode on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp domain-name
Switch (vlan) # vtp {sever | cilent | transparent}
Switch (vlan) # vtp password
Configure the VTP mode on a CLI-based switch:
Switch (enable) set vtp [domain-name] [mode {sever | cilent | transparent}] [password]
12. Configure The VTP version on the IOS-based switch:
Switch # vlan database
Switch (vlan) # vtp v2-mode
Configure the VTP version on the CLI-based switch:
Switch (enable) set vtp v2 enable
13. Enable VTP tailoring on IOS-based switches:
Switch # vlan database
Switch (vlan) # vtp pruning
Start VTP tailoring on the cl I-based switch:
Switch (enable) set vtp pruning enable
14. Configure the Ethernet channel on the IOS-based switch:
Switch (config-if) # port group-number [distribution {source | destination}]
Switch (enable) set port channel moudle/port-range mode {on | off | desirable | auto}
15. Adjust the root path cost on the IOS-based switch:
Switch (config-if) # spanning-tree [vlan-list] cost
Adjust the root path cost on a CLI-based switch:
Switch (enable) set spantree portcost moudle/port cost
Switch (enable) set spantree portvlancost moudle/port [cost] [vlan-list]
16. Adjust the port ID on the IOS-based switch:
Switch (config-if) # spanning-tree [vlan-list] port-priority
Adjust the port ID on the CLI-based switch:
Switch (enable) set spantree portpri {mldule/port} priority
Switch (enable) set spantree portvlanpri {module/port} priority [vlans]
17. Modify the STP clock on the IOS-based switch:
Switch (config) # spanning-tree [vlan-list] hello-time seconds
Switch (config) # spanning-tree [vlan-list] forward-time seconds
Switch (config) # spanning-tree [vlan-list] max-age seconds
Modify the STP clock on a CLI-based switch:
Switch (enable) set spantree hello interval [vlan]
Switch (enable) set spantree fwddelay delay [vlan]
Switch (enable) set spantree maxage agingtiame [vlan]
18. enable or disable the Port Fast feature on the IOS-based switch Port:
Switch (config-if) # spanning-tree portfast
Enable or disable the Port Fast feature on the CLI-based Switch Port:
Switch (enable) set spantree portfast {module/port} {enable | disable}
19. enable or disable UplinkFast features on IOS-based switch ports:
Switch (config) # spanning-tree uplinkfast [max-update-rate pkts-per-second]
Enable or disable UplinkFast features on CLI-based switch ports:
Switch (enable) set spantree uplinkfast {enable | disable} [rate update-rate] [all-protocols off | on]


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.