文档中心 > 硬件运维 > 在华为交换机上配置基于子网的vlan实现vlan的动态划分

在华为交换机上配置基于子网的vlan实现vlan的动态划分

最近更新时间:2021-09-25 01:28:43

拓扑如下图所示:

具体配置:

SW1: int vlan 10 ip-subnet-vlan 1 ip 192.168.1.0 255.255.255.0 int vlan 20 ip-subnet-vlan 1 ip 192.168.2.0 255.255.255.0 nterface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface Ethernet0/0/2 port link-type hybrid port hybrid untagged vlan 2 to 4094 ip-subnet-vlan enable interface Ethernet0/0/3 port link-type hybrid port hybrid untagged vlan 2 to 4094 ip-subnet-vlan enable SW2: int vlan 10 ip-subnet-vlan 1 ip 192.168.1.0 255.255.255.0 int vlan 20 ip-subnet-vlan 1 ip 192.168.2.0 255.255.255.0 nterface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094 interface Ethernet0/0/2 port link-type hybrid port hybrid untagged vlan 2 to 4094 ip-subnet-vlan enable interface Ethernet0/0/3 port link-type hybrid port hybrid untagged vlan 2 to 4094 ip-subnet-vlan enable

如果您的问题还未解决,可以提交工单寻求帮助。

免费试用30+款云服务产品 即刻开始您的上云之旅
免费试用
Baidu
map