具体教程在这里https://by.cx/2018/05/10/hetzner-proxmox
折腾了2天proxmox,终于弄清楚了,/etc/network/interfaces的配置如下
vmbr0桥接到实体网卡上,有独立ip的就可以直接绑定mac直接dhcp
想要NAT就用vmbr1网桥,ipv6还是需要vmbr0,所以要添加两个网卡
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto enp3s0
iface enp3s0 inet manual
up route add -net 144.76.31.192 netmask 255.255.255.224 gw 144.76.31.193 dev enp3s0
auto vmbr0
iface vmbr0 inet static
address 144.76.31.204
netmask 255.255.255.224
gateway 144.76.31.193
bridge_ports enp3s0
bridge_stp off
bridge_fd 0
# route 144.76.31.192/27 via 144.76.31.193
iface vmbr0 inet6 static
address 2a01:4f8:191:22cb::2
netmask 64
gateway fe80::1
auto vmbr1
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
iface vmbr1 inet6 static
address 2a01:4f8:191:22cb::2
netmask 64