- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- LAN Routing
- >
- Help to written a subnet in ACLs
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-20-2017 04:59 AM
11-20-2017 04:59 AM
Help to written a subnet in ACLs
Hello everyone!
I'm having troubles when going to configure ACLs in Switch 1920 and 5120.
E.g: I need to apply an ACL like this:
rule permit ip source (192.168.50.128/28 - 255.255.255.240) destination any
how do I write the subnet in the correct format? I know /24 is written this way 0.0.0.255 and how /30 /29 /28 /27 are written?
Thanks!
- Tags:
- ACLs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-06-2017 12:18 AM
12-06-2017 12:18 AM
Re: Help to written a subnet in ACLs
Basically you write the hostbits as a 1 and the network bits as a 0.
So it is as you said the exact oposite of a subnet mask.
/24 = 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = 255 = 0.0.0.255
for a /30 this means that you have 2 host bits 1 and 2 1+2 = 3 That means a /30 would be 0.0.0.3
/29 = 1 + 2 + 4 = 7 = 0.0.0.7
/28 = 1 + 2 + 4 + 8 = 15 = 0.0.0.15
/27 = 1 + 2 + 4 + 8 + 16 = 31 = 0.0.0.31
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP