Assign static IP in Ubuntu

run ifconfig to find the name of your Interface.  Normally these would be eth0, eth1 etc but in my Virtual Environment they are different

1

cd /etc/network
sudo nano interfaces

2

Make all changes required, including:

  • Change from DHCP to Static
  • Add Address, Netmask and Gateway

3

Write out file using Control + O, Overwrite File and Control-X (to exit)

Restart the network interfaces by:

sudo ifdown ens33 && sudo ifup ens33 (substituting ens33 with your interface)

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s