New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
OVH VPS - adding IP to Ubuntu 16.04
anyone done this on Ubuntu 16.04?
I have tried the following /etc/network/interfaces config but only succeeded in locking myself out of the instance 8-}
auto ens3
iface ens3 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.255
broadcast xxx.xxx.xxx.xxx
auto ens3:0
iface ens3:0 inet static
address yyy.yyy.yyy.yyy
netmask 255.255.255.255
broadcast yyy.yyy.yyy.yyy
Comments
I don't think you need to specify the netmask / broadcast, this is what I'm using on my debian machines (where eth0 is my main interface) -
hey Riz,
thanks for the suggestion .. so I've now tried:
but still no joy ens3 is my primary interface btw ..
should I be using the post-up directive perhaps ..?
as far as I recall, it's only possible to add IP with a reinstall
lol that's a bit extreme imo .. ;P
crap OVH documentation is here
I have a support ticket open but who knows when I'll get a reply ...
you follow the guide after IP binds to your vps interface. their information on IP assignment is in the additional IPv4 section, "only available on install". something of that sort, I may be wrong though hehe
How about using "ifdown ens3; ifup ens3;" instead "/etc/init.d/networking restart".
genius! ifup ens3:1 did the trick
Glad it work.