- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- LAN Routing
- >
- Help to written a subnet in ACLs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- 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