W
W
winbackgo2017-08-23 13:21:26
Computer networks
winbackgo, 2017-08-23 13:21:26

Proxmox - how to add an additional public ip from another visit?

This is what /etc/network/interfaces currently looks like

auto lo
iface lo inet loopback

auto enp5s0
iface enp5s0 inet static
        address  XX.XXX.XX.58
        netmask  255.255.255.252
        gateway  XX.XXX.XX.57

iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  XX.XXX.XX.58
        netmask  255.255.255.252
        bridge_ports none
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address  192.168.99.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.99.0/24' -o enp5s0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.99.0/24' -o enp5s0 -j MASQUERADE

We have allocated one more subnet XX.XXX.XX.8/30 Gateway XX.XXX.XX.9 IP XX.XXX.XX.10 Mask 255.255.255.252.
How can I correctly register this subnet so that I can assign IP XX.XXX.XX.10 to the VM?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-08-23
@opium

same as the previous subnet on vmbr2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question