Changing VM IP /etc/network/interfaces - blank

voarsh

Active Member
Nov 20, 2020
218
20
38
29
Hi.
I'm not sure how I can modify a VM's IP address, the /etc/network/interfaces is blank, so I don't see a way to change it.

Any pointers?
Thanks.
 
Hi,
Which linux distribution is the VM running? /etc/network/interfaces is mostly only for Debian/Ubuntu network configuration.
 
Last edited:
  • Like
Reactions: voarsh
Oh, the reason is that Ubuntu have been shipping with Netplan [1] as their network configuration tool of choice, rather than ifupdown [2], since version 17.10, so it uses an entirely different configuration system. Apologies for the mixup; I don't really follow/use Ubuntu myself. Configuration settings can also be found at [1].

[1] https://ubuntu.com/blog/ubuntu-bionic-netplan
[2] https://packages.debian.org/buster/ifupdown
i tried to update it to static by watching a netplan ubuntu configuration.
but when i run a test it just tells me that netplan configuration should not be accessible by others

prior detail:
- i didn't had a network config file other than 50-
- i created my own

tutorial link : https://www.youtube.com/watch?v=YZicKxPmCos&t=174s
full error screenshot
1763299273835.png