• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

S7006 端口隔离 如何配置

2025-03-12提问
  • 0关注
  • 0收藏,608浏览
粉丝:0人 关注:0人

问题描述:

S7006  端口隔离 如何配置

2 个回答
粉丝:109人 关注:9人

这是V5还是V7的设备


1.4  端口隔离典型配置举例

1. 组网需求

端口GigabitEthernet1/0/1、GigabitEthernet1/0/2、GigabitEthernet1/0/3和GigabitEthernet1/0/4属于同一VLAN。需要实现小区用户Host A、Host B和Host C彼此之间二层报文不能互通,但可以和外部网络通信。

2. 组网图

图1-1 配置端口隔离组网图

 

3. 配置步骤

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

<Device> system-view

[Device] interface gigabitethernet 1/0/1

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

[Device-GigabitEthernet1/0/1] quit

[Device] interface gigabitethernet 1/0/2

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

[Device-GigabitEthernet1/0/2] quit

[Device] interface gigabitethernet 1/0/3

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

# 显示隔离组中的信息。

<Device> display port-isolate group

Port-isolate group information:

 Uplink port support: NO

 Group ID: 1

 Group members:

    GigabitEthernet1/0/1     GigabitEthernet1/0/2     GigabitEthernet1/0/3

暂无评论

粉丝:32人 关注:1人

你好参考这个配置

1.6  配置基于隔离组的端口隔离典型配置举例

1. 组网需求

·     小区用户Host A、Host B、Host C分别与Device的端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3相连;

·     设备通过Ethernet1/0/4端口与外部网络相连;

·     端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3和Ethernet1/0/4属于同一VLAN;请实现小区用户Host A、Host B和Host C彼此之间二层报文不能互通,但可以和外部网络通信。

2. 组网图

图1-1 配置端口隔离组网图

 

3. 配置步骤

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

<Device> system-view

[Device] interface ethernet1/0/1

[Device-Ethernet1/0/1] port-isolate enable

[Device-Ethernet1/0/1] quit

[Device] interface ethernet1/0/2

[Device-Ethernet1/0/2] port-isolate enable

[Device-Ethernet1/0/2] quit

[Device] interface ethernet1/0/3

[Device-Ethernet1/0/3] port-isolate enable

# 显示隔离组中的信息。

<Device> display port-isolate group

 Port-isolate group information:

 Uplink port support: NO

 Group ID: 1

 Group members:

Ethernet1/0/1     Ethernet1/0/2     Ethernet1/0/3

1.7  配置基于VLAN的端口隔离典型配置举例

1. 组网需求

·     小区用户Host A、Host B、Host C分别与Device的端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3相连;

·     设备通过Ethernet1/0/4端口与外部网络相连;

·     端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3和Ethernet1/0/4都属于VLAN2;请实现小区用户Host A和Host B在VLAN2内彼此之间二层报文不能互通,但可以和外部网络通信。

2. 组网图

图1-2 配置端口隔离组网图

 

3. 配置步骤

# 在VLAN2将端口Ethernet1/0/1、Ethernet1/0/2配置为端口隔离。

<Device> system-view

[Device] vlan 2

[Device-vlan2] vlan-isolate port Ethernet 1/0/1 to Ethernet 1/0/2

# 显示隔离组中的信息。

[Device-vlan2] display this

#

vlan 1

#

vlan 2

 vlan-isolate port Ethernet1/0/1 to Ethernet1/0/2

#

vlan 3 to 4094

#

return

1.8  配置基于端口组VLAN的端口隔离典型配置举例

1. 组网需求

·     小区用户Host A、Host B、Host C、Host D、Host E分别与Device A的端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3、Ethernet1/0/4、Ethernet1/0/5相连;

·     设备通过Ethernet1/0/6端口与外部网络相连;

·     所有端口属于同一VLAN;请实现将小区用户分为三组,Host A和Host B一组,Host C和Host D一组,Host E单独一组,三组之间二层报文不能互通,但各组内可以网络通信。

2. 组网图

图1-3 配置基于端口组VLAN的端口隔离组网图

 

3. 配置步骤

# 创建三个端口组VLAN,并将端口Ethernet1/0/1、Ethernet1/0/2、Ethernet1/0/3、Ethernet1/0/4、Ethernet1/0/5分别加入到三个端口组VLAN。

<Device> system-view

[Device] port-group-vlan 2 to 4

[Device] port-group-vlan 2 Ethernet 1/0/1 to Ethernet 1/0/2

[Device] port-group-vlan 2 Ethernet 1/0/6

[Device] port-group-vlan 3 Ethernet 1/0/3 to Ethernet 1/0/4

[Device] port-group-vlan 3 Ethernet 1/0/6

[Device] port-group-vlan 4 Ethernet 1/0/5

[Device] port-group-vlan 4 Ethernet 1/0/6

[Device] undo port-group-vlan 1 Ethernet 1/0/1 to Ethernet 1/0/5

# 显示端口组VLAN的信息。

<Device> display port-group-vlan all

 Port-group-vlan ID: 1

 Port-group-group Ports:

    Ethernet1/0/6            Ethernet1/0/7            Ethernet1/0/8

    Ethernet1/0/9            Ethernet1/0/10           Ethernet1/0/11

    Ethernet1/0/12           Ethernet1/0/13           Ethernet1/0/14

    Ethernet1/0/15           Ethernet1/0/16           Ethernet1/0/17

    Ethernet1/0/18           Ethernet1/0/19           Ethernet1/0/20

    Ethernet1/0/21           Ethernet1/0/22           Ethernet1/0/23

    Ethernet1/0/24           GigabitEthernet1/0/25    GigabitEthernet1/0/26

 Port-group-vlan ID: 2

 Port-group-group Ports:

    Ethernet1/0/1            Ethernet1/0/2            Ethernet1/0/6

 Port-group-vlan ID: 3

 Port-group-group Ports:

    Ethernet1/0/3            Ethernet1/0/4            Ethernet1/0/6

 Port-group-vlan ID: 4

 Port-group-group Ports:

    Ethernet1/0/5            Ethernet1/0/6


暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明