← All Subnets • /30 CIDR Guide
Sub-Netted Home/Lab BlockSegmented /30 subnet carved from the standard 192.168.1.0/24 address space.
| CIDR Notation | 192.168.1.0/30 |
|---|---|
| Network ID | 192.168.1.0 |
| First Usable Host IP | 192.168.1.1 |
| Last Usable Host IP | 192.168.1.2 |
| Broadcast Address | 192.168.1.3 |
| Subnet Mask | 255.255.255.252 |
| Wildcard Mask | 0.0.0.3 |
| Total / Usable Addresses | 4 total / 2 usable |
| Binary Network ID | 11000000.10101000.00000001.00000000 |
| Hexadecimal Representation | 0xC0A80100 |
New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "192.168.1.2" -PrefixLength 30 -DefaultGateway "192.168.1.1"
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.252
! Permit traffic from 192.168.1.0/30
access-list 101 permit ip 192.168.1.0 0.0.0.3 any
ip route & iptablesip route add 192.168.1.0/30 via 192.168.1.1 dev eth0
iptables -A INPUT -s 192.168.1.0/30 -j ACCEPT
The usable host IP range for 192.168.1.0/30 is 192.168.1.1 to 192.168.1.2, providing 2 usable host addresses.
A /30 prefix uses the subnet mask 255.255.255.252 and the inverse wildcard mask 0.0.0.3.
The network ID is 192.168.1.0 and the broadcast address is 192.168.1.3.
The 192.168.1.0/30 block contains 4 total IPv4 addresses, of which 2 are assignable to hosts.