Let Lao tan teach you how to easily configure common Huawei devices, simple instructions, you can quickly get started.
-----------Virtual Interface---------------------------
1) Manage Address
Interface VLANIF1
Description Management
IP address 192.168.250.197 255.255.255.0
DHCP Select Relay
DHCP relay Server-select dhcpgroup1
#
2) Core switching virtual Gateway Interface
Interface Vlanif2
Description Server
IP address 192.168.1.2 255.255.255.0
#
Interface Vlanif3
Description Office
IP address 192.168.0.2 255.255.255.0
DHCP Select Relay
DHCP relay Server-select dhcpgroup1
-----------Trunk------------------------------------
Interface GIGABITETHERNET0/0/24
Port Link-type Trunk
Port Trunk allow-pass VLAN 2 to 100
NTDP Enable
NDP enable
BPDUs Enable
-----------Eth Trunk-------------------------------
Interface Eth-trunk1
Port Link-type Trunk
Port Trunk Allow-pass VLAN 2 to 4094
Interface GIGABITETHERNET0/0/1
Eth-trunk 1
Interface GIGABITETHERNET0/0/2
Eth-trunk 1
-----------IP ROUTE---------------------
1) core switching static routing
IP route-static 0.0.0.0 0.0.0.0 10.16.0.1
IP route-static 1.1.1.0 255.255.255.0 192.168.9.101
IP route-static 10.0.0.0 255.255.0.0 192.168.9.100
1) Distribution Layer Access layer
IP route-static 0.0.0.0 0.0.0.0 192.168.250.1
-----------VLAN-----------------------------
VLAN 1
Description Management
VLAN 2
Description Server
VLAN 3
Description Office
Interface Gigabitethernet 0/0/11
-----------the DHCP server declaration-----------------------------
DHCP server group Dhcpgroup1
Dhcp-server 192.168.1.250 0
-----------Access Port------------------------------
1) defaule
Interface GIGABITETHERNET0/0/1
Port Link-type Access
Port default VLAN 3
STP Disable
STP Edged-port Enable
NTDP Enable
NDP enable
2) POE Config
Interface GIGABITETHERNET0/0/1
Port hybrid Pvid VLAN 2
Port Hybrid Tagged VLAN 9 92
Port hybrid untagged VLAN 2
STP Edged-port Enable
Undo Poe Enable
-----------Certification---------------------------------------------------
1) Global Configuration
Super Password Level 1 cipher * * *
Super Password Level 2 Cipher * * *
Super Password Level 3 Cipher * * *
2) Console Configuration
User-interface Con 0
Authentication-mode Password
Set authentication password cipher a:fl2/kx#^; Q=^q ' maf4<1!!
Idle-timeout 5 0
3) vty Configuration
User-interface vty 0 4
Authentication-mode Password
Idle-timeout 15 0
User Privilege Level 3
-----------STP---------------------------------------------------
1) Public configuration
STP Mode RSTP
STP Enable
STP Pathcost-standard Legacy
2) Core Layer switching
STP Instance 0 Root Primary
STP Enable
3) Distribution Layer switching
STP Instance 0 Priority 8192
STP Enable
4) Access Layer switching
STP Instance 0 Priority 16384
STP Enable
STP Mode MSTP
5) Access Port configuration
STP Edged-port Enable
-----------LLDP--------------------------------------------------
LLDP Enable
-----------VRRP--------------------------------------------------
Interface VLANIF1
Description Management_vlan
IP address 192.168.250.250 255.255.255.0
VRRP Vrid 1 Virtual-ip 192.168.250.1
VRRP Vrid 1 Priority 120
VRRP Vrid 1 Preempt-mode Timer delay 20
Interface VLANIF1
Description Management_vlan
IP address 192.168.250.251 255.255.255.0
VRRP Vrid 1 Virtual-ip 192.168.250.1
-----------SystemName------------------------------------------------------
SystemName XXXX 192.168.2.X
---------------------------------------------------------------
Storm-control Broadcast Min-rate Max-rate 2000
Storm-control Multicast Min-rate max-rate 2000
Storm-control Unicast min-rate max-rate 2000
Storm-control Interval 90
Storm-control Action Block
Storm-control Enable log
This article is from the "Old Tan Linux Blog" blog, please be sure to keep this source http://cmdschool.blog.51cto.com/2420395/1701719
Simple configuration of Huawei equipment