Multiple public subnets

Discussion in 'Proxmox VE: Networking and Firewall' started by Paspao, Feb 8, 2019.

  1. Paspao

    Paspao New Member

    Joined:
    Aug 1, 2017
    Messages:
    13
    Likes Received:
    1
    Hello,

    I need to setup a production cluster of 5 nodes.

    I need to configure 4 public IP subnets to assign to LXC.

    I want to be able to migrate any LXC to any node.

    Do I need to create 4 bridges (on all nodes) one for every subnet and assign LXC to them so if container migrate they will find same bridge?

    I would like to use a single NIC for WAN , do I need to add one 1 IP for every subnet to the NIC and define routes?

    I have the option too to use a single larger subnet too and it would be easier but less versatile.

    I Thank you for any suggestion.
    P.
     
  2. Stoiko Ivanov

    Stoiko Ivanov Proxmox Staff Member
    Staff Member

    Joined:
    May 2, 2018
    Messages:
    933
    Likes Received:
    74
    The five nodes need to be in the same layer2 network (you could use a separate one for each of the 4 IP-subnets, but usually, you cannot have 1 IP subnet in multiple layer2 networks).

    If you assign each network to a VLAN of by itself you can use one vlan_aware bridge (getting all VLANS for the networks) and assign the vlan-tag to a container, based on the network.
    (you can also have the 4 networks on one VLAN and not deal with vlan_awareness or tags per interface (although this makes the networks more tightly coupled)

    The PVE-nodes do not need an ip in each of the networks

    Check out the reference documentation for a first overview: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration

    hope this helps!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice