ACL简单运用

本文介绍了华为ACL的配置和使用,通过具体场景展示了如何实现不同VLAN间通信的控制,包括允许特定IP互访及报文过滤策略。通过对traffic classifier、traffic behavior和traffic policy的设置,实现了ACL规则的精细控制。
摘要由CSDN通过智能技术生成

ACL简单运用


SW1 : VLAN 10 IP:10.10.1.1/30  SW2 :VLAN10 IP :10.10.1.2/30

SW1 : VLAN 20 IP:10.10.2.1/30  SW2 :VLAN20 IP :10.10.2.2/30

SW1配置:

#
interface Vlanif10
 ip address 10.10.1.1 255.255.255.252
#
interface Vlanif20
 ip address 10.10.2.1 255.255.255.252
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20
#

#
acl number 3000
 rule 5 permit icmp source 10.10.1.2 0 destination 10.10.1.1 0
acl number 3001
 rule 5 permit ip
#
traffic classifier deny operator and
 if-match acl 3000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值