IP Address Allocation
Example IP address allocation scheme for Pimeleon router deployment
IP Address Allocation
Example IP address allocation scheme for a typical Pimeleon router deployment. Customize these ranges for your specific network requirements.
Network Overview
- Router Model: Raspberry Pi 4 or 3B+
- Domain: Example:
pimeleon.localor your custom domain - Management Interface: LAN interface (eth1 or wlan0)
- Typical Capacity: 100-150 devices depending on hardware
- Architecture: Dual-interface with optional WiFi segmentation
Network Configuration
| Interface | Network | Subnet Mask | Gateway | Purpose | Device Limit |
|---|---|---|---|---|---|
| eth0 | DHCP from ISP | ISP provided | ISP gateway | WAN (Internet) | N/A |
| eth1 | 192.168.76.0/24 | 255.255.255.0 | 192.168.76.1 | Wired LAN (Trusted) | ~150 |
| wlan0 | 192.168.76.0/24 | 255.255.255.0 | 192.168.76.1 | Wireless LAN | ~30 |
Note: In single-subnet mode (default), both eth1 and wlan0 use the same network. For segregated WiFi, use 192.168.77.0/24 for wlan0.
Static IP Reservations
Infrastructure Services
Reserve low IP addresses (x.x.x.1-50) for infrastructure and static devices:
| Hostname | IP Address | MAC Address | Interface | Service | Notes |
|---|---|---|---|---|---|
| pimeleon.local | 192.168.76.1 | b8:27:eb:xx:xx:xx | eth1 | Pimeleon | LAN gateway |
| pimeleon.local | 192.168.76.1 | b8:27:eb:xx:xx:xx | wlan0 | Pimeleon | WiFi gateway (same IP) |
| nas.local | 192.168.76.5 | aa:bb:cc:dd:ee:ff | eth1 | NAS Server | Network storage |
| workstation.local | 192.168.76.10 | 11:22:33:44:55:66 | eth1 | Workstation | Primary computer |
| printer.local | 192.168.76.15 | 00:11:22:33:44:55 | wlan0 | Network Printer | Wireless printer |
Service Ports
All services listen on the Pimeleon router IP address (192.168.76.1):
| Service | Port(s) | Protocol | Access | Notes |
|---|---|---|---|---|
| SSH | 22 | TCP | LAN only | Secure management access |
| DNS | 53 | UDP/TCP | LAN only | DNS resolution |
| DHCP Server | 67 | UDP | LAN only | IP address assignment |
| HTTP | 80 | TCP | LAN only | Pimeleon web interface |
| HTTPS | 443 | TCP | LAN only | Pimeleon web interface (SSL) |
| Proxy (optional) | 3128 | TCP | LAN only | HTTP caching proxy (if enabled) |
Security Note: All management services are only accessible from LAN. WAN access is blocked by firewall rules.
DHCP Address Ranges
Single-Subnet Mode (Default)
Both wired and wireless devices on same network:
- Network: 192.168.76.0/24
- DHCP Range: 192.168.76.100 - 192.168.76.250 (~150 addresses)
- Reserved Static: 192.168.76.1 - 192.168.76.99
- Lease Time: 12 hours (default)
- Max Lease: 7 days
- Gateway: 192.168.76.1
- DNS Servers: 192.168.76.1 (Pimeleon router)
Dual-Subnet Mode (Optional WiFi Segregation)
Separate wireless network for guest/IoT devices:
Wired LAN (Trusted):
- Network: 192.168.76.0/24
- DHCP Range: 192.168.76.100 - 192.168.76.250
- Interface: eth1
Wireless LAN (Guest/IoT):
- Network: 192.168.77.0/24
- DHCP Range: 192.168.77.100 - 192.168.77.250
- Interface: wlan0
- Isolation: Restricted access to wired network
IP Address Planning
Reserved Ranges
| Range | Purpose | Notes |
|---|---|---|
| 192.168.76.1 | Pimeleon router | Gateway, DNS, DHCP server |
| 192.168.76.2-50 | Infrastructure | Servers, NAS, printers, AP |
| 192.168.76.51-99 | Static assignments | Workstations, smart home hubs |
| 192.168.76.100-250 | DHCP pool | Dynamic client devices |
| 192.168.76.251-254 | Future expansion | Reserved for additional services |
Example Static Assignments
Configure these in your router's DHCP reservation settings:
# Infrastructure (2-50)
192.168.76.10 printer.local # Network printer
192.168.76.15 ap.local # WiFi access point (if using external)
# Workstations (51-99)
192.168.76.51 desktop.local # Primary desktop
192.168.76.52 laptop.local # Laptop
192.168.76.60 smarthub.local # Smart home hub
# DHCP Pool (100-250)
# Phones, tablets, IoT devices get dynamic IPs here
WAN/Upstream Network
Pimeleon router's WAN interface connects to your ISP:
| Parameter | Typical Value | Notes |
|---|---|---|
| WAN Interface | eth0 | Primary Ethernet port |
| IP Assignment | DHCP from ISP | Or static if provided by ISP |
| Public IP | Dynamic | Assigned by ISP |
| Upstream DNS | 1.1.1.1, 8.8.8.8 | Fallback if local DNS fails |
| NTP Servers | pool.ntp.org | Time synchronization |
Configuration Files
Key configuration file locations:
- DHCP Server:
/etc/dnsmasq.d/pimeleon-dhcp.conf - Network Interfaces:
/etc/network/interfacesor/etc/systemd/network/ - DNS Configuration:
/etc/dnsmasq.conf - WiFi Access Point:
/etc/hostapd/hostapd.conf - Firewall Rules:
/etc/iptables/rules.v4or equivalent
Best Practices
IP Address Management
- Document all static assignments - Keep a spreadsheet or text file
- Use consistent naming - hostname.local or hostname.domain
- Reserve sufficient space - Don't use entire /24 for DHCP
- Group by function - Infrastructure low, workstations mid, DHCP high
- Plan for growth - Leave room for future devices/services
DHCP Configuration
- Appropriate lease times:
- Mobile devices: 2-4 hours
- Workstations: 12-24 hours
- Servers: Static IPs instead of DHCP
- Enable DHCP reservations for semi-static devices
- Monitor DHCP pool usage to avoid exhaustion
- Use descriptive hostnames for easier identification
Security Considerations
- Disable WAN management access - Only allow from LAN
- Use strong passwords for router access
- Segment guest WiFi if hosting untrusted devices
- Monitor DHCP logs for unauthorized devices
- Keep reserved IPs outside DHCP range
Related Documentation
- Network Topology - Overall network design
- IP Addressing - IP addressing concepts
- DHCP Configuration - DHCP server setup
- Network Interfaces - Interface configuration
← Previous: IP Addressing | [🏠 Documentation Home//) | Next: Network Topology →