Hello, I need help, I have a public IP in eno1 and I want to link my IP blocks to my vms, I try to place them in vmbr0 and bmbr1 and it does not route:
my public IP
address 198.51.100.5/29
gateway 198.51.100.1
ip blocks
117.18.34.34
117.18.34.35
117.18.34.36
117.18.34.37
117.18.34.38
Gateway: 117.18.34.33
Netmask: 255.255.255.248
any help send code
---------
car it
iface lo inet loopback
car eno1
#real IP address
iface eno1 inet static
address 198.51.100.5/29
gateway 198.51.100.1
car vmbr0
#private subnetwork
iface vmbr0 inet static
address 117.18.34.34/29
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 '117.18.34.0/29' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '117.18.34.0/29' -o eno1 -j MASQUERADE
my public IP
address 198.51.100.5/29
gateway 198.51.100.1
ip blocks
117.18.34.34
117.18.34.35
117.18.34.36
117.18.34.37
117.18.34.38
Gateway: 117.18.34.33
Netmask: 255.255.255.248
any help send code
---------
car it
iface lo inet loopback
car eno1
#real IP address
iface eno1 inet static
address 198.51.100.5/29
gateway 198.51.100.1
car vmbr0
#private subnetwork
iface vmbr0 inet static
address 117.18.34.34/29
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 '117.18.34.0/29' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '117.18.34.0/29' -o eno1 -j MASQUERADE