OVH 中虚拟机的 Proxmox 公共 IP

OVH 中虚拟机的 Proxmox 公共 IP

我在 OVH 中有一个 Proxmox 设置,我购买了 8 个 IP,其中 6 个可用,因此我希望我的虚拟机可以通过互联网访问。

我购买的IP地址块

53.87.160.116/29

从 OVH 到 Proxmox 机器的 IP

44.63.32.23/24 通过 DHCP 接收

这是我的文件内容

猫/等/网络/接口

# network interfaces
    auto lo
    iface lo inet loopback
    
    iface eno1 inet manual
    
    auto vmbr0
    iface vmbr0 inet dhcp
      bridge-ports eno1
      bridge-stp off
      bridge-fd 0
      post-up echo 1 > /proc/sys/net/ipv4/ip_forward
      post-up echo 1 > /proc/sys/net/ipv4/conf/vmbr0/proxy_arp

    auto vmbr1
    iface vmbr1 inet static
        address  44.63.32.23/24   ## vmbr0 get the same ip/subnet so i placed this
        bridge-ports none
        bridge-stp off
        bridge-fd 0 
        post-up iP route add 53.87.160.116/29 via vmbr1


    auto vmbr2
    iface vmbr2 inet static 
        address 10.0.0.1/24
        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 '10.0.0.0/24' -o vmbr0 -j MASQUERADE

猫/etc/network/interfaces.d/50-cloud-init

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
auto lo
iface lo inet loopback
    dns-nameservers 213.186.33.99

auto eth0
iface eth0 inet dhcp
    mtu 1500

现在,当我创建一台桥接到接口 vmbr1 的新机器时

并向 vm 提供以下详细信息

IP: 53.87.160.117 /29
Gateway: 44.63.32.23
DNS: 8.8.8.8

这不起作用任何建议

谢谢

相关内容