 
						
						如图所示,sw1网关是192.168.0.1/24,sw1和sw2、sw3、sw4均属于二层通信,要实现0段不能与1段、2段互访,有什么方法?二层acl能实现吗
(0)
最佳答案
 
				
				做端口隔离,把不需要互通的接口加到一个隔离组内
# 将端口GigabitEthernet1/0/1、GigabitEthernet1/0/2、GigabitEthernet1/0/3加入隔离组。
<Device> system-view //进入系统视图
[Device] interface GigabitEthernet1/0/1 //进入g1/0/1接口
[Device-GigabitEthernet1/0/1] port-isolate enable //将接口加入隔离组
[Device-GigabitEthernet1/0/1] quit //退出当前视图
[Device] interface GigabitEthernet1/0/2 //进入g1/0/2接口
[Device-GigabitEthernet1/0/2] port-isolate enable //将接口加入隔离组
[Device-GigabitEthernet1/0/2] quit //退出当前视图
[Device] interface GigabitEthernet1/0/3 //进入g1/0/3接口
[Device-GigabitEthernet1/0/3] port-isolate enable //将接口加入隔离组
[Device-GigabitEthernet1/0/3]quit //退出当前视图
# 保存配置
[Device] save force //保存配置
# 显示隔离组中的信息。
<Device> display port-isolate group
Port-isolate group information:
Uplink port support: NO
Group ID: 1
GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3
(0)
 
							
							在sw2上行口使用packet-filter acl inbound 过滤
(0)
是三层acl配置吗
是三层acl配置吗
 
	 
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明