eNSP网络仿真——基于hybrid链路端口

eNSP网络仿真——基于hybrid链路端口

实验拓扑如下所示:
在这里插入图片描述

设备 IP地址 子网掩码 所属VLAN
PC-1 192.168.0.1 255.255.255.0 vlan10
PC-2 192.168.0.2 255.255.255.0 vlan20
PC-3 192.168.0.3 255.255.255.0 vlan30
PC-4 192.168.0.4 255.255.255.0 vlan40

实验描述:两个交换机间链路为trunk链路,允许所有帧通过。交换机和PC之间的链路为hybrid链路。最终要实现 vlan10 和 vlan30,vlan40通信。vlan20 和 vlan30,vlan40通信。vlan10 和 vlan20之间不能通信。

LSW5配置如下:

<Huawei>
<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int  g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all 
[Huawei-GigabitEthernet0/0/3]q
[Huawei]vlan batch 10 20 30 40
[Huawei]int  g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type hybrid
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 10 30 40
[Huawei-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int  g 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type hybrid
[Huawei-GigabitEthernet0/0/2]port hybrid untagged vlan 20 30 40
[Huawei-GigabitEthernet0/0/2]port hybrid pvid vlan 20
[Huawei-GigabitEthernet0/0/2]q

LSW6配置如下:

<Huawei>
<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int  g 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all 
[Huawei-GigabitEthernet0/0/3]q
[Huawei]vlan batch 10 20 30 40
[Huawei]int  g 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type hybrid
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 10 20 30 40
[Huawei-GigabitEthernet0/0/1]port hybrid pvid vlan 30
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int  g 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type hybrid
[Huawei-GigabitEthernet0/0/2]port hybrid untagged vlan 10 20 30 40
[Huawei-GigabitEthernet0/0/2]port hybrid pvid vlan 40
[Huawei-GigabitEthernet0/0/2]q

在PC-1端检验:
在这里插入图片描述在这里插入图片描述

Mission all over

展开阅读全文
©️2019 CSDN 皮肤主题: 深蓝海洋 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读