I am new into Ubuntu 18.04 and I am trying to make my VPS hosted on dedicated server (VMware) working, I tried the automatic network setup during install, but I got an subnet error, because IP and netmask are not in the same subnet.
Then I read a ton of tutorials how to set static IP in netplan, but I am still not able to make it work; now my broadcast IP and netmask are different then the VPS one should be.
ifconfig looks like this:
As I said, I tried several tutorials and it was a long pain, because in the VM without network hosted on dedicated server, you can't just copy&paste - you need to write everything by hand, now I tried something about 5 configs and I am lost and tired of typing bad configs. Can you help me out please?
Actual config (
50-cloud-init.yaml) looks like this:
Thank you so much for all your help and ideas :)
Thank you for helping me out, unfortunately, I am sure I have my config from ISP right, it's an bridge for OVH failover IP and as you can read here, their configuration seems to need these settings.
It's all described here and I think that I got it right, even Debian 8 has problems with installation because of the gateway out of subnet, but when you will put it directly in the config after installation, it will work. Here is the doc: https://docs.ovh.com/gb/en/dedicated/network-bridging/
So what I get from it:
1) My main server IP is 126.96.36.199, so according to the documentation, I should replace the last number with 254, so the gateway IP will be 188.8.131.52
For example, if your server’s main IP address is: 123.456.789.012. Your gateway address would therefore be: 123.456.789.254 (from OVH documentation linked above)
2) The failover IP I got is 184.108.40.206, so this will be the IP of my VM (I also generated the MAC address in the OVH admin panel and I inserted this MAC address into the VMware settings, so the network card has the right MAC. You can check that the MAC address on the screen here match the IP in ifconfig posted in my previous post)
3) Here you can see config (/etc/network/interfaces) from my different VM on a diferent server running Debian 8. The base IP of the server is 220.127.116.11
auto eth0 iface eth0 inet static address 18.104.22.168 netmask 255.255.255.255 broadcast 22.214.171.124 post-up route add 126.96.36.199 dev eth0 post-up route add default gw 188.8.131.52 post-down route del 184.108.40.206 dev eth0 post-down route del default gw 220.127.116.11 auto eth1 iface eth1 inet dhcp
and here is the ifconfig output:
root@lfcz:~# ifconfig eth0 Link encap:Ethernet HWadr 00:50:56:05:94:73 inet adr:18.104.22.168 Všesměr:22.214.171.124 Maska:255.255.255.255 inet6-adr: fe80::250:56ff:fe05:9473/64 Rozsah:Linka AKTIVOVÁNO VŠESMĚROVÉ_VYSÍLÁNÍ BĚŽÍ MULTICAST MTU:1500 Metrika:1 RX packets:49421930 errors:0 dropped:10407 overruns:0 frame:0 TX packets:37347078 errors:0 dropped:0 overruns:0 carrier:0 kolizí:0 délka odchozí fronty:1000 RX bytes:33409153963 (31.1 GiB) TX bytes:15110079692 (14.0 GiB)
Maybe I am just not getting something, but I really don't know, what I should do with the Ubuntu configuration now. Please don't take this post as an offence or arguing against you, I am just trying to post every important information to make helping me easier as I am lost now. Thank you again for all the help!