I have 3 servers with Proxmox installed and a virtual switch with a public subnet.
How can I properly configure this public network for our VDS?
Bellow my network config
Thanks.
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eno1
iface eno1 inet static
address XX.217.84.169/26
gateway XX.217.84.129
up route add -net XX.217.84.128 netmask 255.255.255.192 gw XX.217.84.129 dev eno1
# route XX.217.84.128/26 via XX.217.84.129
iface eno1 inet6 static
address 2a01:4f9:4a:2096::2/64
gateway fe80::1
auto eno1.4000
iface eno1.4000 inet static
address 10.0.0.3/24
auto vmbr0
iface vmbr0 inet static
address XX.217.84.169/26
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
up ip addr add YYY.233.4.226/27 dev eno1.4000
up ip rule add from YYY.233.4.226 lookup vswitch
up ip rule add to YYY.233.4.226 lookup vswitch
up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip addr del YYY.233.4.226/29 dev eno1.4000
down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip rule del to YYY.233.4.226 lookup vswitch
down ip rule del from YYY.233.4.226 lookup vswitch
up ip addr add YYY.233.4.228/27 dev eno1.4000
up ip rule add from YYY.233.4.228 lookup vswitch
up ip rule add to YYY.233.4.228 lookup vswitch
up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip addr del YYY.233.4.228/29 dev eno1.4000
down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip rule del to YYY.233.4.228 lookup vswitch
down ip rule del from YYY.233.4.228 lookup vswitch
How can I properly configure this public network for our VDS?
Bellow my network config
Thanks.
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eno1
iface eno1 inet static
address XX.217.84.169/26
gateway XX.217.84.129
up route add -net XX.217.84.128 netmask 255.255.255.192 gw XX.217.84.129 dev eno1
# route XX.217.84.128/26 via XX.217.84.129
iface eno1 inet6 static
address 2a01:4f9:4a:2096::2/64
gateway fe80::1
auto eno1.4000
iface eno1.4000 inet static
address 10.0.0.3/24
auto vmbr0
iface vmbr0 inet static
address XX.217.84.169/26
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
up ip addr add YYY.233.4.226/27 dev eno1.4000
up ip rule add from YYY.233.4.226 lookup vswitch
up ip rule add to YYY.233.4.226 lookup vswitch
up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip addr del YYY.233.4.226/29 dev eno1.4000
down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip rule del to YYY.233.4.226 lookup vswitch
down ip rule del from YYY.233.4.226 lookup vswitch
up ip addr add YYY.233.4.228/27 dev eno1.4000
up ip rule add from YYY.233.4.228 lookup vswitch
up ip rule add to YYY.233.4.228 lookup vswitch
up ip route add default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip addr del YYY.233.4.228/29 dev eno1.4000
down ip route del default via YYY.233.4.225 dev eno1.4000 table vswitch
down ip rule del to YYY.233.4.228 lookup vswitch
down ip rule del from YYY.233.4.228 lookup vswitch