Configure networking in ubuntu manually


When you deploy ubuntu server, by default the ubuntu server network setup is obtained automatically. As if you deploy in the environment that does not have DHCP server giving up an IP address, you have manually define the network interface. Follow below step to accomplished it.

Step 1 – Edit the interface

Open the ubuntu terminal and write this command

$  sudo nano /etc/network/interfaces

Step 2 – Change the interface script

Change current setting to below but depending on you network ip range and network gateway also the dns server.

  • “iface eth0…” line and change dhcp to static
  • Create address line and put in the static ip address
  • Create netmask line and put in the subnet mask
  • Create network line and put in network ip range
  • Create broadcast line and put in the network subnet broadcast
  • Create gateway line and put in network gateway
  • Create dns-nameservers line and put in (google subnet) or your local dns server as primary
# 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

# The primary network interface
auto eth0
iface eth0 inet static
Step 4 – Restart the network interface

Run below command to restart the network interface

$  sudo /etc/init.d/networking restart

or just reboot the server

$  sudo /sbin/reboot




launching your minimal ubuntu server

Deploy ajenti control panel in ubuntu