華為交換機配置acl策略

东子的东發表於2024-03-05

[SX-12FS-CoreSW]acl name a1995 3001
[SX-12FS-CoreSW-acl-adv-a1995]dis
[SX-12FS-CoreSW-acl-adv-a1995]display thi
[SX-12FS-CoreSW-acl-adv-a1995]display this

acl name a1995 3001
rule 999 permit ip source 192.168.195.0 0.0.0.255 destination 172.25.82.63 0
rule 1000 deny ip source 192.168.195.0 0.0.0.255 destination 10.0.0.0 0.255.255.255
rule 2000 deny ip source 192.168.195.0 0.0.0.255 destination 172.16.0.0 0.15.255.255
rule 3000 deny ip source 192.168.195.0 0.0.0.255 destination 192.168.0.0 0.0.255.255
rule 60000 permit ip

return
[SX-12FS-CoreSW-acl-adv-a1995]rule 998 permit ip source 192.168.195.0 0.0.0.255 destination 172.26.85.39 0
[SX-12FS-CoreSW-acl-adv-a1995]dis
[SX-12FS-CoreSW-acl-adv-a1995]display thi
[SX-12FS-CoreSW-acl-adv-a1995]display this

acl name a1995 3001
rule 998 permit ip source 192.168.195.0 0.0.0.255 destination 172.26.85.39 0
rule 999 permit ip source 192.168.195.0 0.0.0.255 destination 172.25.82.63 0
rule 1000 deny ip source 192.168.195.0 0.0.0.255 destination 10.0.0.0 0.255.255.255
rule 2000 deny ip source 192.168.195.0 0.0.0.255 destination 172.16.0.0 0.15.255.255
rule 3000 deny ip source 192.168.195.0 0.0.0.255 destination 192.168.0.0 0.0.255.255

相關文章