| IP Address | |
| Network / CIDR | |
| Subnet Mask | |
| Wildcard Mask | |
| Broadcast | |
| First Usable Host | |
| Last Usable Host | |
| Usable Hosts |
| Wildcard | CIDR | Subnet Mask | Hosts | Common Use |
|---|
Convert between CIDR prefix notation and Cisco ACL wildcard masks, bidirectional. Auto-generates ready-to-paste Cisco IOS access-list and OSPF syntax.
| IP Address | |
| Network / CIDR | |
| Subnet Mask | |
| Wildcard Mask | |
| Broadcast | |
| First Usable Host | |
| Last Usable Host | |
| Usable Hosts |
| Wildcard | CIDR | Subnet Mask | Hosts | Common Use |
|---|
CIDR (Classless Inter-Domain Routing) notation expresses a network address and its prefix length together, for example 192.168.1.0/24. The prefix length tells you how many bits are the network portion. A /24 means the first 24 bits are fixed, leaving 8 bits for host addresses. This gives you 256 total addresses (2 to the power of 8) with 254 usable hosts after reserving the network and broadcast addresses.
Cisco wildcard masks work as the bitwise inverse of a subnet mask. Where a subnet mask uses 1s to indicate network bits, a wildcard mask uses 1s to indicate the bits that are free to vary (host bits). A /24 subnet mask is 255.255.255.0 in dotted decimal, which makes the wildcard mask 0.0.0.255. In a Cisco access control list, a wildcard bit of 0 means "must match" and a bit of 1 means "ignore this bit".
This tool converts in both directions. Enter a CIDR prefix and get the wildcard, or enter a wildcard mask and find the CIDR prefix. It also generates ready-to-paste Cisco IOS syntax for standard ACLs, extended ACLs and OSPF network statements, which is particularly useful when configuring routers or switches under time pressure.
Network: 192.168.1.0/24
Subnet mask: 255.255.255.0
Wildcard: 0.0.0.255
Cisco ACL: permit ip 192.168.1.0 0.0.0.255 any
Network: 10.0.0.0/30
Subnet mask: 255.255.255.252
Wildcard: 0.0.0.3
Usable hosts: 2 (point-to-point)
network 10.10.0.0 0.0.255.255 area 0
(matches all /16 addresses in 10.10.x.x)