注:本实验使用两台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实验配置,可以关注下面的公众号哦!