title: Assign Static IP Address in Ubuntu
body: <p>I want to assign a static address to Ubuntu using the command below:</p>
  
  <pre><code>ifconfig eth0 192.168.5.2 netmask 255.255.255.0
  </code></pre>
  
  <p>But it says, </p>
  
  <pre><code>SIOCSIFADDR: No such device
  eth0: ERROR while getting interface flags: No such device
  SIOCSIFNETMASK: No such device
  </code></pre>
  
  <p>How will I fix it?</p>