I have two different segments of IP addresses,
23.10.6.218/29
23.10.8.1/24
gateway 23.10.6.217
The server network configuration is as follows:
auto lo
iface lo inet loopback
iface enp1s0f0 inet manual
auto vmbr0
iface vmbr0 inet static
address 23.10.6.218
netmask 255.255.255.248
gateway 23.10.6.217
bridge_ports enp1s0f0
bridge_stp off
bridge_fd 0
iface enp1s0f1 inet manual
The VM1 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.6.219
netmask 255.255.255.248
gateway 23.10.6.217
The VM2 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.6.220
netmask 255.255.255.248
gateway 23.10.6.217
The VM3 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.8.3
netmask 255.255.255.0
gateway 23.10.6.217
The VM4 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.8.4
netmask 255.255.255.0
gateway 23.10.6.217
VM1 VM2 network is normal and can connect to the Internet.
VM3 VM4 network is abnormal and Internet connection is not available.
VM3 VM4 can PING each other.
How do I configure to connect vm3 vm4 to the internet?
Thank you.
23.10.6.218/29
23.10.8.1/24
gateway 23.10.6.217
The server network configuration is as follows:
auto lo
iface lo inet loopback
iface enp1s0f0 inet manual
auto vmbr0
iface vmbr0 inet static
address 23.10.6.218
netmask 255.255.255.248
gateway 23.10.6.217
bridge_ports enp1s0f0
bridge_stp off
bridge_fd 0
iface enp1s0f1 inet manual
The VM1 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.6.219
netmask 255.255.255.248
gateway 23.10.6.217
The VM2 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.6.220
netmask 255.255.255.248
gateway 23.10.6.217
The VM3 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.8.3
netmask 255.255.255.0
gateway 23.10.6.217
The VM4 network configuration is as follows:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 23.10.8.4
netmask 255.255.255.0
gateway 23.10.6.217
VM1 VM2 network is normal and can connect to the Internet.
VM3 VM4 network is abnormal and Internet connection is not available.
VM3 VM4 can PING each other.
How do I configure to connect vm3 vm4 to the internet?
Thank you.