Huawei Switch Stack Lab 2

Add stack:
SW1
int stack-p 0/1
port int g0/0/8 enable
int stack-p 0/2
port int g0/0/7 enable
quit
stack slot 0 priority 200

SW2
int stack-p 0/1
port int g0/0/7 enable
int stack-p 0/2
port int g0/0/8 enable
quit
stack slot 0 renumber 1

save & reboot, and then plug stack cable(SW1 g0/0/8 to SW2 g0/0/8, SW1 g0/0/7 to SW2 g0/0/7)

Delete stack:
SW1
int stack-p 0/1
shut int g0/0/8
undo port int g0/0/8 enable
int stack-p 0/2
shut int g0/0/7
undo port int g0/0/7 enable
quit
stack slot 0 priority 100

SW2
int stack-p 1/1
shut int g1/0/7
undo port int g1/0/7 enable
int stack-p 1/2
shut int g1/0/8
undo port int g1/0/8 enable
quit
stack slot 1 renumber 0

Huawei Switch Stack Lab 1

Add stack:
SW1
int stack-p 0/1
port int g0/0/12 enable
stack slot 0 priority 200

SW2
int stack-p 0/2
port int g0/0/11 enable
quit
stack slot 0 renumber 1

save & reboot, and then plug stack cable

Delete stack:
SW1
int stack-p 0/1
shut int g0/0/12
undo port int g0/0/12 enable
stack slot 0 priority 100

SW2
int stack-p 1/2
shut int g1/0/11
undo port int g1/0/11 enable
quit
stack slot 1 renumber 0

Huawei STP

STP1

POE for CCTV

LSW7 G0/0/2 – LSW6 G0/0/2及LSW1 G0/0/1 – LSW2 G0/0/1為後備

LSW5
stp root primary

LSW8
stp root secondary

LSW1
int g0/0/1
stp cost 100

LSW6
int g0/0/2
stp cost 20

HCNA STP Lab3-1

S1
sys
sysname S1
stp mode stp
stp root pri

S2
sys
sysname S2
stp mode stp
stp root sec

S1
undo stp root
stp pri 8192

S2
undo stp root
stp pri 4096

S2
int g0/0/9
stp port pri 32
int g0/0/10
stp port pri 16

HCNA Static Route Lab4-1

R1
sys
sysname R1
int g0/0/0
ip add 10.0.13.1 24
int g0/0/1
ip add 10.0.12.1 24
int lo0
ip add 10.0.1.1 24

R2
sys
sysname R2
int g0/0/1
ip add 10.0.12.2 24
int g0/0/2
ip add 10.0.23.2 24
int lo0
ip add 10.0.2.2 24

R3
sys
sysname R3
int g0/0/0
ip add 10.0.13.3 24
int g0/0/2
ip add 10.0.23.3 24
int lo0
ip add 10.0.3.3 24

R2
ip route-s 10.0.13.0 24 10.0.23.3
ip route-s 10.0.3.0 24 10.0.23.3

R1
ip route-s 10.0.3.0 24 10.0.13.3

R2
ip route-s 10.0.13.0 255.255.255.0 10.0.12.1 pre 80
ip route-s 10.0.3.0 24 10.0.12.1 pre 80

R3
ip route-s 10.0.12.0 24 10.0.13.1

R1
ip route-s 0.0.0.0 0.0.0.0 10.0.13.3
ip route-s 0.0.0.0 0.0.0.0 10.0.12.2 pre 80

R3
ip route-s 10.0.12.0 24 10.0.23.2 pre 80

HCNA vLan Routing Lab1-4

R1
sys
sysname R1
int g0/0/1
ip add 10.0.4.1 24

R3
sys
sysname R3
int g0/0/1
ip add 10.0.8.1 24

S1
sys
sysname S1
vlan batch 4 8
int g0/0/1
port link-t acc
port default vlan 4
int g0/0/3
port link-t acc
port default vlan 8
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 4 8

R2
sys
sysname R2
int g0/0/1.1
ip add 10.0.4.254 24
dot ter vid 4
arp broad enable
int g0/0/1.3
ip add 10.0.8.254 24
dot ter vid 8
arp broad en

R1
ip route-s 0.0.0.0 0.0.0.0 10.0.4.254

R3
ip route-s 0.0.0.0 0.0.0.0 10.0.8.254

Hauwei Hybrid 測試

HauweiHybrid1

R1
sys
sysname R1
int g0/0/0
ip add 10.100.30.1 23

R2
sys
sysname R2
int g0/0/0
ip add 10.100.31.1 23

SW1
sys
sysname SW1
vlan 2
vlan 3
port-group vlan2
group-member e0/0/1 to e0/0/21
port link-type hybrid
port hybrid pvid vlan 2
port hybrid untagged vlan 2
quit
int e0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3

SW2
sys
sysname SW2
vlan 2
vlan 3
port-group vlan3
group-member g0/0/1 to g0/0/21
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3
quit
int g0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3
int g0/0/24
port link-type hybrid
port hybrid tagged vlan 2 to 3

SW3
sys
sysname SW3
vlan 2
vlan 3
port-group vlan3
group-member g0/0/1 to g0/0/21
port link-type hybrid
port hybrid pvid vlan 3
port hybrid untagged vlan 3
quit
int g0/0/22
port link-type hybrid
port hybrid tagged vlan 2 to 3
int g0/0/24
port link-type hybrid
port hybrid tagged vlan 2 to 3

當vLan2, vLan3需要連通時
SW1
port-group vlan2
port hybrid untagged vlan 3

SW2
port-group vlan3
port hybrid untagged vlan 2

SW3
port-group vlan3
port hybrid untagged vlan 2

還原
SW1
port-group vlan2
undo port hybrid vlan 3

SW2
port-group vlan3
undo port hybrid vlan 2

SW3
port-group vlan3
undo port hybrid vlan 2

HCNA GVRP Lab1-3

HCNA_(I)Lab1-3_1

S1
sys
sysname S1
int g0/0/13
port link-type trunk
port trunk allow-pass vlan all

S3
sys
sysname S3
int e0/0/13
port link-type trunk
port trunk allow-pass vlan all
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all

S2
sys
sysname S2
int g0/0/18
port link-type trunk
port trunk allow-pass vlan all

S4
sys
sysname S4
int e0/0/18
port link-type trunk
port trunk allow-pass vlan all
int e0/0/1
port link-type trunk
port trunk allow-pass vlan all

S1
gvrp
int g0/0/13
gvrp

S3
gvrp
int e0/0/13
gvrp
int e0/0/1
gvrp

S2
gvrp
int g0/0/18
gvrp

S4
gvrp
int e0/0/18
gvrp
int e0/0/1
gvrp

S1
vlan batch 2 100

S2
vlan batch 2 200

S3
vlan 2

S4
vlan 2

HCNA_(I)Lab1-3_2

S1
vlan 200

S2
vlan 100

HCNA_(I)Lab1-3_3