Port Isolation

1. Introduction

为了实现端口间的二层隔离,可以将不同的端口加入不同的VLAN,但VLAN资源有限。采用端口隔离特性,用户只需要将端口加入到隔离组中,就可以实现隔离组内端口之间二层隔离,而不关心这些端口所属VLAN,从而节省VLAN资源。

隔离组内的端口与未加入隔离组的端口之间二层流量双向互通。

VXLAN组网中,如果AC(以太网服务实例)关联的VSI配置了选择性泛洪的MAC地址(selective-flooding mac-address)并将AC所在端口加入同一隔离组,则AC可以将目的MAC地址匹配该泛洪MAC地址的数据帧转发给隔离组中的其他端口,不受隔离组影响。

VXLAN组网中,如果同时配置AC链路为信任接口(dhcp snooping trust)并将AC所在端口加入同一隔离组,则AC可以将DHCP报文转发给隔离组中的其他端口,不受隔离组影响。

2. 配置隔离组

隔离组内可以加入的端口数量没有限制。

port-isolate group group-id // 创建隔离组

缺省情况下,不存在隔离组

interface interface-type interface-number // 进入二层以太网接口视图

interface bridge-aggregation interface-number // 进入二层聚合接口视图

二层聚合接口视图下的配置对当前接口及其成员端口生效,若某成员端口配置失败,系统会跳过该端口继续配置其他成员端口,若二层聚合接口配置失败,则不会再配置成员端口

port-isolate enable group group-id // 将端口加入到隔离组中

缺省情况下,当前端口不属于任何隔离组,一个端口最多只能加入一个隔离组

display port-isolate group [ group-id ] // 显示隔离组的信息

3. 端口隔离典型配置

小区用户Host A、Host B、Host C分别与Device的端口GigabitEthernet1/0/1、GigabitEthernet1/0/2、GigabitEthernet1/0/3相连,Device设备通过GigabitEthernet1/0/4端口与外部网络相连。现需要实现小区用户Host A、Host B和Host C彼此之间二层报文不能互通,但可以和外部网络通信。

image-20230710090117692

# 创建隔离组2。

<Device> system-view

[Device] port-isolate group 2

[Device-port-isolate-group2] quit

# 将端口GigabitEthernet1/0/1、GigabitEthernet1/0/2、GigabitEthernet1/0/3加入隔离组2。

[Device] interface gigabitethernet 1/0/1

[Device-GigabitEthernet1/0/1] port-isolate enable group 2

[Device-GigabitEthernet1/0/1] quit

[Device] interface gigabitethernet 1/0/2

[Device-GigabitEthernet1/0/2] port-isolate enable group 2

[Device-GigabitEthernet1/0/2] quit

[Device] interface gigabitethernet 1/0/3

[Device-GigabitEthernet1/0/3] port-isolate enable group 2

[Device-GigabitEthernet1/0/3] quit

# 显示隔离组2中的信息。

[Device] display port-isolate group 2

 Port isolation group information:

 Group ID: 2

 Group members:

    GigabitEthernet1/0/1     GigabitEthernet1/0/2

    GigabitEthernet1/0/3

 Community VLAN ID: None
posted @ 2023-07-11 23:58  LandonXing  阅读(228)  评论(0)    收藏  举报