本文介绍: 【代码】华为三层交换机通 过VLANIF虚拟接口实现跨VLAN通信。

S1配置

vlan batch 2 to 3

interface Vlanif2
 ip address 192.168.2.254 255.255.255.0

interface Vlanif3
 ip address 192.168.3.254 255.255.255.0



interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 2

interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 3

PC2配置

PC3配置 

整体架构图 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注