Hi there! I'm new in this forum and almost new in the linux world too.
I'm installing a VM of Debian, which I'll need to use in my IT classes, but I'm having troubles to configure a static IP.
I tried to set up a new minimal virtual machine, without any kind of configuration (just defect parameters), and I'm having that same problem. I used the research but any solution worked for me, so here I am looking for it.
If I use my VM in dhcp mode, I don't have any problem with, but our teacher told us to set a static IP, in my case, 192.168.30.27, to don't have problems with users using the same IP asigned by dhcp. And when I change the configuration file "nano /etc/network/interfaces" and put it on static, I cannot acces internet or debian repositories.
This was the default "interfaces" file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
And the only modification that I made in, it's in the last command line:
from "iface eth0 inet dhcp" to "iface eth0 inet static"
and add another line, that's " address 192.168.30.27"
I don't know what's wrong. I tried to adding netmask, broadcast, gateway... but it didn't work, so I put it like I wrote again.
Furthermore, I cannot connect to MV by ssh when IP is static. And I tried the network settings of Virtual Box configured in NAT and Bridged Adapter, with the same result. Don't know if that info could help.
I add a screenshot about the error message, it's in spanish but it just say "Cannot resolve <<ftp.es.debian.org>>" and under that "W: Failed to obtain 'repository_url' "
I'm desesperately trying to fix that, help please
By the way, I'm sorry for my bad english. Just learned some at school and videogames.