华为sub-vlan用法配置案例

2024-01-02 15:55:57

在这里插入图片描述

SW1

vlan batch 10 20

interface GigabitEthernet0/0/1
port link-type access
port default vlan 10

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

interface GigabitEthernet0/0/12
port link-type trunk
port trunk allow-pass vlan 10 20

SW3

vlan batch 10 20 100 200

vlan 100
aggregate-vlan
access-vlan 10 20

interface Vlanif100
ip address 172.16.1.254 255.255.255.0

interface Vlanif200
ip address 172.16.200.1 255.255.255.0

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20

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

最终端pc1不能ping通pc2,但可以ping通网关和其它vlan,pc5

文章来源:https://blog.csdn.net/ydaxia110/article/details/135340546
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。