# IP Assignment Plan - DHCP to Static Conversion

**Generated**: 2026-01-05  
**Starting IP**: 192.168.11.28  
**Purpose**: Assign static IPs to all DHCP containers starting from 192.168.11.28

---

## Assignment Priority

### Priority 1: Critical IP Conflicts (Must Fix First)

| VMID | Name | Host | Current DHCP IP | New Static IP | Reason | Priority |
|------|------|------|----------------|---------------|--------|----------|
| 3501 | ccip-monitor-1 | ml110 | 192.168.11.14 | **192.168.11.28** | 🔴 **CRITICAL**: IP conflict with r630-04 physical server | **HIGHEST** |
| 3500 | oracle-publisher-1 | ml110 | 192.168.11.15 | **192.168.11.29** | 🔴 **CRITICAL**: IP in reserved range (physical servers) | **HIGHEST** |

### Priority 2: Reserved Range Conflicts

| VMID | Name | Host | Current DHCP IP | New Static IP | Reason | Priority |
|------|------|------|----------------|---------------|--------|----------|
| 103 | omada | r630-02 | 192.168.11.20 | **192.168.11.30** | ⚠️ IP in reserved range | **HIGH** |
| 104 | gitea | r630-02 | 192.168.11.18 | **192.168.11.31** | ⚠️ IP in reserved range | **HIGH** |

### Priority 3: Infrastructure Services

| VMID | Name | Host | Current DHCP IP | New Static IP | Reason | Priority |
|------|------|------|----------------|---------------|--------|----------|
| 100 | proxmox-mail-gateway | r630-02 | 192.168.11.4 | **192.168.11.32** | Infrastructure service | Medium |
| 101 | proxmox-datacenter-manager | r630-02 | 192.168.11.6 | **192.168.11.33** | Infrastructure service | Medium |
| 102 | cloudflared | r630-02 | 192.168.11.9 | **192.168.11.34** | Infrastructure service (Cloudflare tunnel) | Medium |

### Priority 4: Application Services

| VMID | Name | Host | Current DHCP IP | New Static IP | Reason | Priority |
|------|------|------|----------------|---------------|--------|----------|
| 6200 | firefly-1 | r630-02 | 192.168.11.7 | **192.168.11.35** | Application service | Medium |
| 7811 | mim-api-1 | r630-02 | N/A (stopped) | **192.168.11.36** | Application service (stopped) | Low |

---

## Complete Assignment Map

| VMID | Name | Host | Current IP | New IP | Status |
|------|------|------|------------|--------|--------|
| 3501 | ccip-monitor-1 | ml110 | 192.168.11.14 | 192.168.11.28 | ⏳ Pending |
| 3500 | oracle-publisher-1 | ml110 | 192.168.11.15 | 192.168.11.29 | ⏳ Pending |
| 103 | omada | r630-02 | 192.168.11.20 | 192.168.11.30 | ⏳ Pending |
| 104 | gitea | r630-02 | 192.168.11.18 | 192.168.11.31 | ⏳ Pending |
| 100 | proxmox-mail-gateway | r630-02 | 192.168.11.4 | 192.168.11.32 | ⏳ Pending |
| 101 | proxmox-datacenter-manager | r630-02 | 192.168.11.6 | 192.168.11.33 | ⏳ Pending |
| 102 | cloudflared | r630-02 | 192.168.11.9 | 192.168.11.34 | ⏳ Pending |
| 6200 | firefly-1 | r630-02 | 192.168.11.7 | 192.168.11.35 | ⏳ Pending |
| 7811 | mim-api-1 | r630-02 | N/A | 192.168.11.36 | ⏳ Pending |

---

## IP Range Summary

- **Starting IP**: 192.168.11.28
- **Ending IP**: 192.168.11.36
- **Total IPs needed**: 9
- **Available IPs in range**: 65 (plenty of room)

---

## Validation

### IP Conflict Check
- ✅ 192.168.11.28 - Available
- ✅ 192.168.11.29 - Available
- ✅ 192.168.11.30 - Available
- ✅ 192.168.11.31 - Available
- ✅ 192.168.11.32 - Available
- ✅ 192.168.11.33 - Available
- ✅ 192.168.11.34 - Available
- ✅ 192.168.11.35 - Available
- ✅ 192.168.11.36 - Available

### Reserved Range Check
- ✅ All new IPs are outside reserved range (192.168.11.10-25)
- ✅ All new IPs are outside already-used static IPs

---

## Execution Order

1. **First**: Fix critical conflicts (3501, 3500)
2. **Second**: Fix reserved range conflicts (103, 104)
3. **Third**: Convert infrastructure services (100, 101, 102)
4. **Fourth**: Convert application services (6200, 7811)

---

## Notes

- **192.168.11.14 conflict**: VMID 3501 must be moved immediately as it conflicts with r630-04 physical server
- **192.168.11.15 conflict**: VMID 3500 is in reserved range and should be moved
- **Service dependencies**: 1536 references found across 374 files - will need comprehensive update
- **Cloudflare tunnel**: VMID 102 (cloudflared) IP change may require tunnel config update
- **Nginx Proxy Manager**: VMID 105 routes may need update if target service IPs change

---

**Last Updated**: 2026-01-05
