Hello,
i'm trying to setup a public IP on my VM and i can't get it to work.
My host interfaces file is:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.131.201
netmask 255.255.248.0
gateway xxx.xxx.128.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
there's only one network interface on host: eth0.
I have also a public IP address:
address xxx.xxx.139.247
netmask 255.255.255.255
which i want to set on my VM.
My VM interfaces file is:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address xxx.xxx.139.247
netmask 255.255.255.255
gateway xxx.xxx.128.1
but this isn't working.
I can connect to host machine using both addresses with configuration:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.131.201
netmask 255.255.248.0
gateway xxx.xxx.128.1
auto eth0:1
iface eth0:1 inet static
address xxx.xxx.139.247
netmask 255.255.255.255
gateway xxx.xxx.128.1
I've tried different configurations, read a lot of threads with similar problems and still don't know how to configure this properly.
Thank you for your help.
i'm trying to setup a public IP on my VM and i can't get it to work.
My host interfaces file is:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.131.201
netmask 255.255.248.0
gateway xxx.xxx.128.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
there's only one network interface on host: eth0.
I have also a public IP address:
address xxx.xxx.139.247
netmask 255.255.255.255
which i want to set on my VM.
My VM interfaces file is:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address xxx.xxx.139.247
netmask 255.255.255.255
gateway xxx.xxx.128.1
but this isn't working.
I can connect to host machine using both addresses with configuration:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.131.201
netmask 255.255.248.0
gateway xxx.xxx.128.1
auto eth0:1
iface eth0:1 inet static
address xxx.xxx.139.247
netmask 255.255.255.255
gateway xxx.xxx.128.1
I've tried different configurations, read a lot of threads with similar problems and still don't know how to configure this properly.
Thank you for your help.
Last edited: