最佳答案
这是V5还是V7的设备
端口GigabitEthernet1/0/1、GigabitEthernet1/0/2、GigabitEthernet1/0/3和GigabitEthernet1/0/4属于同一VLAN。需要实现小区用户Host A、Host B和Host C彼此之间二层报文不能互通,但可以和外部网络通信。
图1-1 配置端口隔离组网图
# 将端口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
(0)
暂无评论
你好参考这个配置
· 小区用户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彼此之间二层报文不能互通,但可以和外部网络通信。
图1-1 配置端口隔离组网图
# 将端口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
· 小区用户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内彼此之间二层报文不能互通,但可以和外部网络通信。
图1-2 配置端口隔离组网图
# 在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
· 小区用户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单独一组,三组之间二层报文不能互通,但各组内可以网络通信。
图1-3 配置基于端口组VLAN的端口隔离组网图
# 创建三个端口组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
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论