華為hybrid接口應用


注:本實驗使用兩台S3700交換機和3台PC機

 

實驗拓撲如下:

 

實驗目的:使得vlan 5 和vlan 10可以訪問vlan 15,但vlan 5和vlan 10之間不可以訪問

 

一、對交換機LSW1進行操作

命令:

[S1]vlan batch 5 10 15
Info: This operation may take a few seconds. Please wait for a moment...done.
[S1]int
Apr 10 2020 14:42:53-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 5, the ch
ange loop count is 0, and the maximum number of records is 409
[S1]
[S1]int e0/0/1
[S1-Ethernet0/0/1]port h
[S1-Ethernet0/0/1]port hybrid p
[S1-Ethernet0/0/1]port hybrid pvid v
[S1-Ethernet0/0/1]port hybrid pvid vlan 5
[S1-Ethernet0/0/1]port h
[S1-Ethernet0/0/1]port hybrid
Apr 10 2020 14:43:13-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 6, the ch
ange loop count is 0, and the maximum number of records is 4095.
[S1-Ethernet0/0/1]port hybrid un
[S1-Ethernet0/0/1]port hybrid untagged v
[S1-Ethernet0/0/1]port hybrid untagged vlan 5 15
[S1-Ethernet0/0/1]

 

[S1-Ethernet0/0/1]int e0/0/2
[S1-Ethernet0/0/2]port h
[S1-Ethernet0/0/2]port hybrid p
[S1-Ethernet0/0/2]port hybrid pvid v
[S1-Ethernet0/0/2]port hybrid pvid vlan 10
[S1-Ethernet0/0/2]port h
[S1-Ethernet0/0/2]port hybrid un
[S1-Ethernet0/0/2]port hybrid untagged v
[S1-Ethernet0/0/2]port hybrid untagged vlan
Apr 10 2020 14:45:23-08:00 S1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 8, the ch
ange loop count is 0, and the maximum number of records is 4095.10 15
[S1-Ethernet0/0/2]port hybrid untagged vlan 10 15

 

[S1-Ethernet0/0/2]int e0/0/3
[S1-Ethernet0/0/3]port h
[S1-Ethernet0/0/3]port hybrid t
[S1-Ethernet0/0/3]port hybrid tagged v
[S1-Ethernet0/0/3]port hybrid tagged vlan 5 10 15
[S1-Ethernet0/0/3]

 

 

 

二、對交換機LSW2進行操作

命令:

[S2]vlan batch 5 10 15
Info: This operation may take a few seconds. Please wait for a moment...done.
[S2]int e0/0/1
[S2-Ethernet0/0/1]port
Apr 10 2020 14:47:45-08:00 S2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 5, the ch
ange loop count is 0, and the maximum number of records is 4095.h
[S2-Ethernet0/0/1]port hybrid p
[S2-Ethernet0/0/1]port hybrid pvid v
[S2-Ethernet0/0/1]port hybrid pvid vlan 15
[S2-Ethernet0/0/1]
Apr 10 2020 14:47:55-08:00 S2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.
191.3.1 configurations have been changed. The current change number is 6, the ch
ange loop count is 0, and the maximum number of records is 4095.port h
[S2-Ethernet0/0/1]port hybrid un
[S2-Ethernet0/0/1]port hybrid untagged v
[S2-Ethernet0/0/1]port hybrid untagged vlan 5 10 15

 

[S2-Ethernet0/0/1]int e0/0/3
[S2-Ethernet0/0/3]port h
[S2-Ethernet0/0/3]port hybrid t
[S2-Ethernet0/0/3]port hybrid tagged v
[S2-Ethernet0/0/3]port hybrid tagged vlan 5 10 15
[S2-Ethernet0/0/3]

 

PC間驗證:

 

 注:此篇為原創,未經允許,謝絕轉載!!!

 

 想要了解更多ensp實驗配置,可以關注下面的公眾號哦!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM