How to configure static IP Ubuntu 18.04 server on Virtualbox

preview_player
Показать описание
Ubuntu 18.04 have a change about network config.
in previous LTS (16 or 14), we usually set the network at etc/network/interface,

see this video for details
Рекомендации по теме
Комментарии
Автор

With bridged adapter, the settings you mentioned worked for me. Thanks :)
One thing, on adatper settings to be able to access inet I had to add the nameservers (DNS)
nameservers:
addresses: [<GATEWAY IP>, 8.8.8.8]


Thanks again

samsylvestertty
Автор

sorry tell to me please.. in this video you make ip static 192.168.56.102/24 thats right...?

after you sudo netplan apply why interface that your setting get ip address 192.168.56.104/24..?
is diferent right...? can you tell me please..?
thanks before..

wellyinfosystem
Автор

i hatee a question, after you have changed the enp0s8 net you lose internet in server?, because I'be tried everything as you. but after I change the enp0s8 I can't do ping to 8.8.8.8 for example, thanks

senss
Автор

When I go into preferences there is nothing, not even the NAT network, or the host only adapter, I need to mention that I'm on Ubuntu 18.10

hanps