Problem when changing ip on Ubuntu server

0

I am new in linux and I raise my server apache tomcat in a virtual machine of virtualvox with Ubuntu Server , now I want to access the server from another virtual machine, for that I need to change my ip . Realize this.
1. Sudo nano /etc/network/interfaces

2.

Iface enp0s3 inet static.            
address 192.168.1.15.              
netmask 255.255.255.0.            
gateway 192.168.1.1.           
network 192.168.1.0.          
broadcast 192.168.1.255.            
dns-nameserver 8.8.8.8

3. sudo /etc/init.d/networking restart

Here I get the error I can not restart my ip and when I run ifconfig my ip is the previous one

    
asked by Alexa045 04.09.2018 в 23:05
source

0 answers