Hybrid实验

Posted on 2020-06-16 12:08  留不住的时间  阅读(375)  评论(0编辑  收藏  举报

 

 

 

 

1、 pc机配置ip地址

2、 创建vlan

S1

<Huawei>sy

[Huawei]sysname S1

[S1]vlan batch 2 3 10

 

S2:

<Huawei>sy

[Huawei]sysname S2

[S2]vlan batch 2 3 10

3、 配置hybrid

S1

[S1]int g0/0/1

[S1-GigabitEthernet0/0/1]port link-type hybrid

[S1-GigabitEthernet0/0/1]port hybrid pvid vlan 1

[S1-GigabitEthernet0/0/1]port hybrid untagged vlan 1 to 2

[S1-GigabitEthernet0/0/1]int g0/0/2

[S1-GigabitEthernet0/0/2]port link-type hybrid

[S1-GigabitEthernet0/0/2]port hybrid pvid vlan 1

[S1-GigabitEthernet0/0/2]port hybrid untagged vlan 1 to 2

[S1-GigabitEthernet0/0/2]int g0/0/3

[S1-GigabitEthernet0/0/3]port link-type hybrid

[S1-GigabitEthernet0/0/3]port hybrid pvid vlan 10

[S1-GigabitEthernet0/0/3]port hybrid untagged vlan 3 10

[S1-GigabitEthernet0/0/3]int g0/0/4

[S1-GigabitEthernet0/0/4]port link-type hybrid

[S1-GigabitEthernet0/0/4]port hybrid pvid vlan 1

[S1-GigabitEthernet0/0/4]port hybrid untagged vlan 1 to 2

[S1-GigabitEthernet0/0/4]port hybrid tagged vlan 3 10

[S1-GigabitEthernet0/0/4]quit

 

S2

[S2]int g0/0/1

[S2-GigabitEthernet0/0/1]port link-type hybrid

[S2-GigabitEthernet0/0/1]port hybrid pvid vlan 1

[S2-GigabitEthernet0/0/1]port hybrid untagged vlan 1 to 2

[S2-GigabitEthernet0/0/1]port hybrid tagged vlan 3 10

[S2-GigabitEthernet0/0/1]int g0/0/2

[S2-GigabitEthernet0/0/2]port link-type hybrid

[S2-GigabitEthernet0/0/2]port hybrid pvid vlan 2

[S2-GigabitEthernet0/0/2]port hybrid untagged vlan 1 to 2

[S2-GigabitEthernet0/0/2]int g0/0/3

[S2-GigabitEthernet0/0/3]port link-type hybrid

[S2-GigabitEthernet0/0/3]port hybrid pvid vlan 3

[S2-GigabitEthernet0/0/3]port hybrid untagged vlan 3 10

[S2-GigabitEthernet0/0/3]quit