Hello,
I came here for help because I can't seem to properly configure my host and guests from a networking perspective.
So I have a server which has an entire block of ips available xxx.xxx.145.0 - xxx.xxx.145.255.
The ip for the server is xxx.xxx.145.135 ( assigned from the hosting provider ) and the gateway is xxx.xxx.145.1
I managed to create a vm and assign it the ip xxx.xxx.145.5 and I can ssh into the vm and the vm can reach any part of the internet. The problem is that any other vm won't connect to the outside world even though the setup is identical to the virst vm.
I'll leave here my configurations:
Host /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet manual
broadcast xxx.xxx.145.255
network xxx.xxx.145.0
dns-nameservers 62.141.32.5 62.141.32.4 62.141.32.3
dns-search venus.hostingcompany.de
# dns-* options are implemented by the resolvconf package, if installed
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.145.135
netmask 255.255.255.0
gateway xxx.xxx.145.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
VM1 /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.5
netmask 255.255.255.0
gateway xxx.xxx.145.1
VM2 /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.6
netmask 255.255.255.0
gateway xxx.xxx.145.1
So, I can ssh into VM1 from a remote location but I can't ssh into VM2 or reach the internet from it. A more curious thing is that from any machine I can ping any IP from the xxx.xxx.145.0/24 network.
Can you please explain to me what am I missing and how should I tackle this problem ?
Thank you
I came here for help because I can't seem to properly configure my host and guests from a networking perspective.
So I have a server which has an entire block of ips available xxx.xxx.145.0 - xxx.xxx.145.255.
The ip for the server is xxx.xxx.145.135 ( assigned from the hosting provider ) and the gateway is xxx.xxx.145.1
I managed to create a vm and assign it the ip xxx.xxx.145.5 and I can ssh into the vm and the vm can reach any part of the internet. The problem is that any other vm won't connect to the outside world even though the setup is identical to the virst vm.
I'll leave here my configurations:
Host /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet manual
broadcast xxx.xxx.145.255
network xxx.xxx.145.0
dns-nameservers 62.141.32.5 62.141.32.4 62.141.32.3
dns-search venus.hostingcompany.de
# dns-* options are implemented by the resolvconf package, if installed
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.145.135
netmask 255.255.255.0
gateway xxx.xxx.145.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
VM1 /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.5
netmask 255.255.255.0
gateway xxx.xxx.145.1
VM2 /etc/network/interfaces
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens18
iface ens18 inet static
address xxx.xxx.145.6
netmask 255.255.255.0
gateway xxx.xxx.145.1
So, I can ssh into VM1 from a remote location but I can't ssh into VM2 or reach the internet from it. A more curious thing is that from any machine I can ping any IP from the xxx.xxx.145.0/24 network.
Can you please explain to me what am I missing and how should I tackle this problem ?
Thank you