Huawei 3300 vswitch ACL 2

Source: Internet
Author: User

 

Condition:Allow the 1.1.1.1 and 3.3.3.3 CIDR blocks of the Internet to access the 2.2.2.2 CIDR blocks under the vswitch. prohibit all other CIDR blocks from accessing the downstream server.

 

Acl number 3000 (define to allow external CIDR blocks to access the following CIDR blocks)

Rule permit ip sourse 1.1.1.1 0.0.255 dest 2.2.2.2 0.0.0.255

Rule permit ip sourse3.3.3.3 0.0.255 dest 2.2.2.2 0.0.0.255

 

 

Acl number 3001

Rule permit ip

 

Traffic class yunxu (name, can be defined at Will)

If-match acl 3000:

 

Traffic beha yunxu

Filter permit (or directly permit)

 

Traffic class jinzhi (name, which can be defined at Will)

If-match acl 3001:

 

Traffic beha jinzhi

Filter deny (or directly deny)

 

 

Traffic policy xianzhi

Class yunxu beha yunxu

 

Class xianzhi beha xianzhi

 

Finally, go to the uplink physical port

 

Interface ethe 0/0/1

Traffic-policy xianzhi inbound

 

This article is from the "ksk" blog, please be sure to keep this source http://86612.blog.51cto.com/76612/1060465

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.