title: How to change a DHCP interfaces to STATIC interfaces in OVH VPS on Ubuntu 16.04
body: <p>Im new into LINUX and i need your help for my OVH VPS Ubuntu Server 16.04LTS interface actually on DHCP to STATIC </p>
  
  <p>Actually my /etc/network/interfaces file is : </p>
  
  <pre><code># 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
  auto lo
  iface lo inet loopback
  
  # Source interfaces
  # Please check /etc/network/interfaces.d before changing this file
  # as interfaces may have been defined in /etc/network/interfaces.d
  # See LP: #1262951
  source /etc/network/interfaces.d/*.cfg
  </code></pre>
  
  <p>The source path /etc/network/interfaces.d/*.cfg have only one file named : 50-cloud-init.cfg and this file contain :</p>
  
  <pre><code>auto lo
  iface lo inet loopback
  
  auto ens3
  iface ens3 inet dhcp
  </code></pre>
  
  <p>So my IP address is 149.xxx.xxx.61, I need to transform this to have an iface ens3 static for my IP address.</p>
  
  <p>Actually ifconfig -a is : </p>
  
  <pre><code>ens3      Link encap:Ethernet  HWaddr fa:16:3e:ae:e3:83  
            inet addr:149.xxx.xxx.61  Bcast:149.xxx.xxx.61  Mask:255.255.255.255
            inet6 addr: fe80::xxxx:xxxx:feae:e383/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:894526 errors:0 dropped:0 overruns:0 frame:0
            TX packets:297070 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000 
            RX bytes:102187906 (102.1 MB)  TX bytes:63602471 (63.6 MB)
  
  lo        Link encap:Local Loopback  
            inet addr:127.0.0.1  Mask:255.0.0.0
            inet6 addr: ::1/128 Scope:Host
            UP LOOPBACK RUNNING  MTU:65536  Metric:1
            RX packets:14743 errors:0 dropped:0 overruns:0 frame:0
            TX packets:14743 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1 
            RX bytes:31459525 (31.4 MB)  TX bytes:31459525 (31.4 MB)
  </code></pre>
  
  <p>How can I do this ?</p>