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

HCNA vLan/Trunk/Hybrid Lab1-2

HCNA_(I)Lab1-2_1

S1
sys
sysname S1
int eth-trunk 1
mode lacp-static
trunkport g0/0/9
trunkport g0/0/10

S2
sys
sysname S2
int eth-trunk 1
mode lacp-static
trunkport g0/0/9
trunkport g0/0/10

S1
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all

S2
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all

S1
vlan batch 2 to 4
int g0/0/13
port link-type access
port default vlan 3
int g0/0/1
port link-type access
port default vlan 4

S2
vlan batch 2 to 4
int g0/0/3
port link-type access
port default vlan 4
int g0/0/18
port link-type access
port default vlan 2

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

S3
sys
sysname S3
int vlanif 1
ip add 10.0.4.2 24

R3
sys
sysname R3
int g0/0/2
ip add 10.0.4.3 24

S4
sys
sysname S4
int vlanif 1
ip add 10.0.4.4 24

vLan及Trunk已經成功建立

HCNA_(I)Lab1-2_2

HCNA_(I)Lab1-2_3

HCNA_(I)Lab1-2_4

使用Hybrid的untag功能令R1,R3,S4可以通訊

S1
int g0/0/1
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 4

S2
int g0/0/3
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 4
int g0/0/18
undo port default vlan
port link-type hybrid
port hybrid untagged vlan 2 4
port hybrid pvid vlan 2

HCNA_(I)Lab1-2_5 HCNA_(I)Lab1-2_6

HCNA_(I)Lab1-2_7

Hauwei Voice

hauwei4

[SWB]vlan 2
[SWB-GigabitEthernet0/0/1]voice-vlan 2 enable
[SWB-GigabitEthernet0/0/1]voice-vlan mode auto
[SWB-GigabitEthernet0/0/1]quit
[SWB]voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
[SWB]display voice-vlan status

Hauwei Hybrid

hauwei3

[SWA-GigabitEthernet0/0/5]port link-type hybrid
[SWA-GigabitEthernet0/0/5]port hybrid pvid vlan 3
[SWA-GigabitEthernet0/0/5]port hybrid untagged vlan 3
[SWA-GigabitEthernet0/0/7]port link-type hybrid
[SWA-GigabitEthernet0/0/7]port hybrid pvid vlan 2
[SWA-GigabitEthernet0/0/7]port hybrid untagged vlan 2
[SWA-GigabitEthernet0/0/1]port link-type hybrid
[SWA-GigabitEthernet0/0/1]port hybrid tagged vlan 2 to 3
[SWB-GigabitEthernet0/0/4]port link-type hybrid
[SWB-GigabitEthernet0/0/4]port hybrid pvid vlan 3
[SWB-GigabitEthernet0/0/4]port hybrid untagged vlan 2 to 3
[SWB]display vlan