Static IP on LXC Containers failing

rrusso

New Member
Sep 8, 2022
2
0
1
Hello,

I'd like to have my unifi controller LXC run on a static IP off of a reservation from my external pfsense router. My VMs seem to be able to use static IPs assigned to them via pfsense, but for some reason, I cannot get my Unifi Controller LXC (using: https://github.com/tteck/Proxmox#-select-a-proxmox-helper-below-) to adopt the static IP handed to it by my pfsense box.

The unifi container looks as such:

1662672798263.png
My main pve node has this under `/etc/network/interfaces`
Code:
auto lo
iface lo inet loopback

iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.193/24
        gateway 192.168.1.1
        bridge-ports enp0s31f6
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
Now, I can get to the proxmox management UI at https://192.168.1.193:8006. The unifi controller UI works under https://192.168.1.193:8443

Pinging 192.168.1.195 responds, so something must be running on there.

My pfsense configuration, is using the MAC address for my container:


1662672844922.png
Running nmap on 192.168.1.193 shows me that 8443 is open, which makes sense because the unigi controller is responding there. NMap on 192.168.1.195 only shows port 22 open, which explains the ping response.

Any advice on a direction I should head toward?
 
Why are PVE host and UnifiController LXC using the same IP?
Usually you want different IPs for host and guests.
 
Last edited:
Why are PVE host and UnifiController LXC using the same IP?
Usually you want different IPs for host and guests.
Well that’s the question… I’d like proxmox on .193 and my unifi controller on .195. I must be missing a setting somewhere