for this section do I need to use just "block ip range" to define a subnet for VM's ?
# Add single additional
up ip route add A.B.C.D/32 dev vmbr0
# Add block IP
up ip route add A.B.C.D/28 dev vmbr0
-------------------------------------------------------------------------------------
how to adapt this for a server with just 2 NIC's ?
auto lo
iface lo inet loopback
# Enable IP forwarding
up echo "1" > /proc/sys/net/ipv4/ip_forward
# Enable proxy-arp only for public bond
up echo "1" > /proc/sys/net/ipv4/conf/bond0/proxy_arp
# public interface 1
auto ens33f0
iface ens33f0 inet manual
bond-master bond0
# public interface 2
auto ens33f1
iface ens33f1 inet manual
bond-master bond0
# private interface 1
auto ens35f0
iface ens35f0 inet manual
# private interface 2
auto ens35f1
iface ens35f1 inet manual
# 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 PUB_IP_DEDICATED_SERVER/24
gateway PUB_GW
bond-slaves ens33f0 ens33f1
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 AB:CD:EF:12:34:56
#Private
auto bond1
iface bond1 inet static
bond-slaves ens35f0 ens35f1
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 GH:IJ:KL:12:34:56
# 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 single additional
up ip route add A.B.C.D/32 dev vmbr0
# Add block IP
up ip route add A.B.C.D/28 dev vmbr0
# 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
any info is highly appreciated.
# Add single additional
up ip route add A.B.C.D/32 dev vmbr0
# Add block IP
up ip route add A.B.C.D/28 dev vmbr0
-------------------------------------------------------------------------------------
how to adapt this for a server with just 2 NIC's ?
auto lo
iface lo inet loopback
# Enable IP forwarding
up echo "1" > /proc/sys/net/ipv4/ip_forward
# Enable proxy-arp only for public bond
up echo "1" > /proc/sys/net/ipv4/conf/bond0/proxy_arp
# public interface 1
auto ens33f0
iface ens33f0 inet manual
bond-master bond0
# public interface 2
auto ens33f1
iface ens33f1 inet manual
bond-master bond0
# private interface 1
auto ens35f0
iface ens35f0 inet manual
# private interface 2
auto ens35f1
iface ens35f1 inet manual
# 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 PUB_IP_DEDICATED_SERVER/24
gateway PUB_GW
bond-slaves ens33f0 ens33f1
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 AB:CD:EF:12:34:56
#Private
auto bond1
iface bond1 inet static
bond-slaves ens35f0 ens35f1
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 GH:IJ:KL:12:34:56
# 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 single additional
up ip route add A.B.C.D/32 dev vmbr0
# Add block IP
up ip route add A.B.C.D/28 dev vmbr0
# 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
any info is highly appreciated.
Last edited: