NO.2网工学习之VLAN间通信
注:以下实验及代码基于华为ENSP模拟器。
一、终端网关在同一台设备上,通过VLANIF接口实现VLAN间通信。
如图所示:PC1属于vlan10,PC2属于vlan20,PC1和PC2配置如下图:
LSW1配置如下:
<LSW1>disp cur
#
sysname LSW1
#
vlan batch 10 20
#
interface Vlanif10
ip add
注:以下实验及代码基于华为ENSP模拟器。
如图所示:PC1属于vlan10,PC2属于vlan20,PC1和PC2配置如下图:
LSW1配置如下:
<LSW1>disp cur
#
sysname LSW1
#
vlan batch 10 20
#
interface Vlanif10
ip add