I have a server with a /27 IP allocation (100.100.100.128/27 for example). I'd like to setup proxmox for virtual environment. My network model should be like this:
For proxmox host:
And in the ubuntu I add IP like this :
But In VM Guest I can not ping gateway or reach internet
- Gateway: 100.100.100.129
- Main IP for proxmox host: 100.100.100.130
- IP for VMs: 100.100.100.131 ~ 100.100.100.158
For proxmox host:
Code:
auto eno1
iface eno1 inet static
address 100.100.100.130/27
gateway 100.100.100.129
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
auto vmbr0
iface vmbr0 inet static
address 100.100.100.128
netmask 255.255.255.224
bridge-ports none
bridge-stp off
bridge-fd 0
ip up route add 100.100.100.128/27 dev vmbr1
ip up route -A POSTROUTING -o vmbr0 -j MASQUERADE
And in the ubuntu I add IP like this :
Code:
network:
ethernets:
ens18:
addresses:
- 100.100.100.131/32
routes:
- to: default
via: 100.100.100.129
on-link: true
nameservers:
addresses: [8.8.8.8,4.2.2.4]
dhcp4: false
version: 2
Last edited: