LINUX.ORG.RU

История изменений

Исправление Marshy, (текущая версия) :

Если я правильно понял, что-то в виде такого

И 2001:41d0:XXX:XXX::1/56 использовать как гейтвей в VM

# LACP aggregate on public interfaces
# configured in static mode on this example
# Has the server's public IP
auto bond0
iface bond0 inet static
    address 141.95.XXX.XXX/32
    gateway XXX.64.0.X
    bond-slaves enp59s0f0np0 ens35f1np1
    bond-mode 4
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200
    bond-lacp-rate 1
    bond-xmit-hash-policy layer3+4
    # Use the mac address of the first public interface
    hwaddress b8:ce:f6:XX:XX:XX

iface bond0 inet6 static
  address 2001:41d0:240:8f00::/56
  gateway fe80::1
  bond-slaves enp59s0f0np0 ens35f1np1
  bond-mode 4
  bond-miimon 100
  bond-downdelay 200
  bond-updelay 200
  bond-lacp-rate 1
  bond-xmit-hash-policy layer3+4
  # Use the mac address of the first public interface
  hwaddress b8:ce:f6:9a:05:06    

#Private
auto bond1
iface bond1 inet static
    bond-slaves ens43f0np0 ens43f1np1
    bond-mode 4
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200
    bond-lacp-rate 1
    bond-xmit-hash-policy layer3+4
    # Use the mac address of the first private interface
    hwaddress b8:ce:f6:XX:XX:XX

# Configure the bridge with a private address and add route(s) to send the Additional IPs to it
# A.B.C.D/X => Subnet of Additional IPs assigned to the server, this can be a host with /32
# By default Proxmox creates vmbr0.
# You can use it or create another one 
auto vmbr0
iface vmbr0 inet dhcp
    # Define a private IP, it should not overlap your existing private networks on the vrack for example 
    address 192.168.0.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    # Add block IP
    up ip route add 92.XXX.XXX.XXX/28 dev vmbr0

iface vmbr0 inet6 static
  address 2001:41d0:XXX:XXX::1/56      

# Bridge used for private networks on vRack
# The VLAN feature is enabled
auto vmbr1
iface vmbr1 inet manual
  bridge-ports bond1
  bridge-stp off
  bridge-fd 0
  bridge-vlan-aware yes
  bridge-vids 2-4094

Исходная версия Marshy, :

Если я правильно понял, что-то в виде такого

И 2001:41d0:XXX:XXX::1/56 использовать как гейтвей в VM

'''

LACP aggregate on public interfaces

configured in static mode on this example

Has the server’s public IP

auto bond0 iface bond0 inet static address 141.95.XXX.XXX/32 gateway XXX.64.0.X bond-slaves enp59s0f0np0 ens35f1np1 bond-mode 4 bond-miimon 100 bond-downdelay 200 bond-updelay 200 bond-lacp-rate 1 bond-xmit-hash-policy layer3+4 # Use the mac address of the first public interface hwaddress b8:ce:f6:XX:XX:XX

iface bond0 inet6 static address 2001:41d0:240:8f00::/56 gateway fe80::1 bond-slaves enp59s0f0np0 ens35f1np1 bond-mode 4 bond-miimon 100 bond-downdelay 200 bond-updelay 200 bond-lacp-rate 1 bond-xmit-hash-policy layer3+4

Use the mac address of the first public interface

hwaddress b8:ce:f6:9a:05:06

#Private auto bond1 iface bond1 inet static bond-slaves ens43f0np0 ens43f1np1 bond-mode 4 bond-miimon 100 bond-downdelay 200 bond-updelay 200 bond-lacp-rate 1 bond-xmit-hash-policy layer3+4 # Use the mac address of the first private interface hwaddress b8:ce:f6:XX:XX:XX

Configure the bridge with a private address and add route(s) to send the Additional IPs to it

A.B.C.D/X => Subnet of Additional IPs assigned to the server, this can be a host with /32

By default Proxmox creates vmbr0.

You can use it or create another one

auto vmbr0 iface vmbr0 inet dhcp # Define a private IP, it should not overlap your existing private networks on the vrack for example address 192.168.0.1/24 bridge-ports none bridge-stp off bridge-fd 0 # Add block IP up ip route add 92.XXX.XXX.XXX/28 dev vmbr0

iface vmbr0 inet6 static address 2001:41d0:XXX:XXX::1/56

Bridge used for private networks on vRack

The VLAN feature is enabled

auto vmbr1 iface vmbr1 inet manual bridge-ports bond1 bridge-stp off bridge-fd 0 bridge-vlan-aware yes bridge-vids 2-4094 '''