用1台s5560做核心按照下面的拓扑图该怎么配置呢?小白一名望指教,谢谢。
(0)
最佳答案
举例:不让1.1.1.1和1.1.2.1以及 1.1.3.1网段互访
[H3C]acl number 2000
[H3C-acl-basic-2000]rule 0 deny source 1.1.1.1 0.0.0.255
[H3C-acl-basic-2000]rule 5 deny source 1.1.2.1 0.0.0.255
[H3C-acl-basic-2000]rule 10 permit
[H3C]int Vlan-interface 3
[H3C-Vlan-interface3]packet-filter 2000 outbound
[H3C]acl number 2002
[H3C-acl-basic-2000]rule 0 deny source 1.1.1.1 0.0.0.255
[H3C-acl-basic-2000]rule 5 deny source 1.1.3.1 0.0.0.255
[H3C-acl-basic-2000]rule 10 permit
[H3C]int Vlan-interface 2
[H3C-Vlan-interface2]packet-filter 2000 outbound
[H3C]acl number 2001
[H3C-acl-basic-2000]rule 0 deny source 1.1.3.1 0.0.0.255
[H3C-acl-basic-2000]rule 5 deny source 1.1.2.1 0.0.0.255
[H3C-acl-basic-2000]rule 10 permit
[H3C]int Vlan-interface 1
[H3C-Vlan-interface1]packet-filter 2002 outbound
(0)
谢谢帮助我现在配置好了,测试通过。
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]acl number 3001
[H3C-acl-adv-3001]rule 0 deny ip source 192.168.100.0 0.0.0.255 destination 172.
21.191.0 0.0.0.255
[H3C-acl-adv-3001]qu
[H3C]int e1/0/1
[H3C-Ethernet1/0/1]packet-filter 3001 inbound
[H3C-Ethernet1/0/1]qu
[H3C]int e1/0/2
[H3C-Ethernet1/0/2]packet-filter 3001 inbound
[H3C-Ethernet1/0/2]qu
[H3C]int e1/0/3
[H3C-Ethernet1/0/3]packet-filter 3001 inbound
[H3C-Ethernet1/0/3]qu
[H3C]int e1/0/4
[H3C-Ethernet1/0/4]packet-filter 3001 inbound
[H3C-Ethernet1/0/4]qu
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论