Quantcast
Viewing all articles
Browse latest Browse all 171182

How can I seperate two Public IPs on single NIC

Hi everyone.

For past few days I'm fighting with my proxmox config and cannot figure out how to fix it the way i want. I was trying to find the similar problems/questions people have but I couldn't find anything. If I'm wrong and there is an answer to my question please point me to it.

To the point.
Recently I've installed proxmox. I created five containers under one public ip (according to this tutorial http://www.ameir.net/blog/archives/5...p-address.html ). Now I decided to get second ip address. I would like to point it only to one of the containers. For now with both IPs i can access all the containers and I can't seem to get it right.

Below is my config (changed it milion times, tried a lot of things but nothing works).

Code:

# network interface settings
auto lo
iface lo inet loopback

iface eth5 inet manual

auto eth4
iface eth4 inet manual


auto vmbr0
iface vmbr0 inet static
pre-up iptables-restore < /etc/iptables.rules
        address 192.168.1.229
        netmask 255.255.255.192
        gateway 192.168.1.254
        bridge_ports eth4
        bridge_stp off
        bridge_fd 0


auto vmbr0:0
iface vmbr0:0 inet static
        address 10.0.0.1
        netmask 255.255.255.0
        network 10.0.0.0
        brodcast 10.0.0.255
#pre-up iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j MASQUERADE

I've tried adding vmbr2 with the second IP but did not succeed.

Is there a way to seperate those two IP address? When I add IP address 192.168.1.244 to one of the containers i can ssh to it directly but so i can do it to all the other containers when i specify the port.

Viewing all articles
Browse latest Browse all 171182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>