The very first one is the network address
the last one is the broadcast address
take the second address and use that on our bridge.
/etc/network/interfaces
# /etc/network/interfaces
### Hetzner Online GmbH - installimage
# Loopback device:
auto lo
iface lo inet loopback
# device: enp1s0
auto enp1s0
iface enp1s0 inet static
address <main IP>
netmask 255.255.255.255
pointopoint <gateway IP>
gateway <gateway IP>
iface enp1s0 inet6 static
address <address from the IPv6 subnet> #e.g. 2001:db8::2
netmask 128
gateway fe80::1
up sysctl -p
auto vmbr0
iface vmbr0 inet static
address <2nd IP in the list>
netmask <netmask of the subnet eg 255.255.255.248>
bridge_ports none
bridge_stp off
bridge_fd 0
复制代码
虚拟机桥接vmbr0
Address:176.9.y.y -- the IP in the range you want to use for this VM
Subnet: 176.9.x.x/29 -- the first IP of the subnet and the CIDR notation
Gateway: <2nd IP in the list> -- the IP used on vmbr0
Name Servers: 8.8.8.8 and 1.1.1.1