I am newish to networking and a couple days new to virtualization and I'm having a bit of a hard time wrapping my head around networking, specifically assigning static IPs to my containers.
proxmoxserver has an IP of 192.168.0.170 and I would like to assign ....171 to my first container and 172 to my second. I have read the wiki but am still having a hard time, it seems no matter what I set my options to in the GUI or how I edit config files (following the wiki) it's either ignored (for example, container 100 is on 192.168.0.23) or I lose internet connection and ip address on the container (127.0.0.1).
Here is my current /etc/network/interfaces on my host:
At the moment my container is set to DHCP which at least allows for connection, but the wrong IP. In the GUI if I set it to static and save then it reverts to 192.0.0.1. If I set to static and try to input an IP and Gateway it won't allow me to save. Network name is eth0 and bridge is vmbr0.
What am I doing wrong here?
proxmoxserver has an IP of 192.168.0.170 and I would like to assign ....171 to my first container and 172 to my second. I have read the wiki but am still having a hard time, it seems no matter what I set my options to in the GUI or how I edit config files (following the wiki) it's either ignored (for example, container 100 is on 192.168.0.23) or I lose internet connection and ip address on the container (127.0.0.1).
Here is my current /etc/network/interfaces on my host:
Code:
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.171
netmask 255.255.255.0
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.0.170
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
At the moment my container is set to DHCP which at least allows for connection, but the wrong IP. In the GUI if I set it to static and save then it reverts to 192.0.0.1. If I set to static and try to input an IP and Gateway it won't allow me to save. Network name is eth0 and bridge is vmbr0.
What am I doing wrong here?